/* ============== Ventana Sobre Mí ============== */

/* Contenedor principal con encapsulamiento */
#about-me-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: 'Tahoma', sans-serif;
}

/* Barra de menú estilo Windows XP */
#about-me-window .about-me-menu-bar {
    display: flex;
    padding: 4px 8px;
    background: #ECE9D8;
    border-bottom: 1px solid #ACA899;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    flex-shrink: 0;
}

#about-me-window .about-me-menu-bar span {
    margin-right: 15px;
    padding: 2px 8px;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.2s;
}

#about-me-window .about-me-menu-bar span:hover {
    background: #D4D0C8;
}

#about-me-window .about-me-menu-bar span u {
    text-decoration: underline;
}

/* Ajustar el contenedor principal para que ocupe el resto del espacio */
#about-me-window .about-me-container {
    flex: 1;
    overflow-y: auto;
}

.about-me-container {
    padding: 0;
    font-family: 'Segoe UI', 'Tahoma', sans-serif;
    height: 100%;
    overflow-y: auto;
    background:
        radial-gradient(circle at 88% 8%, rgba(135, 187, 255, 0.46), transparent 28%),
        linear-gradient(145deg, #d9e9ff 0%, #eef5ff 48%, #dcead4 100%);
    position: relative;
}

.about-profile {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 18px 0;
    padding: 22px;
    border: 1px solid #285a9f;
    border-radius: 10px;
    background: linear-gradient(135deg, #123f82, #2768b8 58%, #78a4df);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 10px 24px rgba(23, 67, 127, 0.2);
    animation: fadeInUp 0.42s var(--xp-ease-out) both;
}

.about-profile img {
    width: 112px;
    height: 112px;
    flex: 0 0 auto;
    border: 3px solid rgba(255,255,255,0.92);
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(6, 25, 55, 0.32);
}

.about-profile h2 {
    margin: 2px 0 7px;
    font: 700 clamp(22px, 4vw, 33px)/1.08 'Segoe UI', Tahoma, sans-serif;
    letter-spacing: -0.02em;
}

.about-profile p {
    max-width: 620px;
    margin: 0;
    color: #edf5ff;
    font-size: 13px;
    line-height: 1.45;
}

.about-profile .about-kicker {
    color: #cfe2ff;
    font: 700 10px Tahoma, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-sections {
    padding: 24px 18px;
}

.about-section {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.8) inset, 0 8px 18px rgba(0, 0, 0, 0.16);
    border: 1px solid #6b8ec6;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.about-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.8) inset, 0 12px 24px rgba(0, 0, 0, 0.2);
}

.about-section:nth-child(even) {
    flex-direction: row-reverse;
}

.about-section:last-child {
    margin-bottom: 0;
}

/* Sin números de sección */

.about-image {
    position: relative;
    flex-shrink: 0;
    padding: 20px;
}

.about-image img {
    width: 136px;
    height: 136px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease;
    border: 2px solid #ffffff;
}

.about-section:hover .about-image img {
    transform: scale(1.03);
}

.about-text {
    flex: 1;
    padding: 22px;
    color: #2c3e50;
}

.about-text p {
    margin: 0;
    text-align: left;
    font-size: 15px;
    line-height: 1.62;
    font-weight: 400;
    color: #1f2f46;
}

.about-text h3 {
    margin: 0 0 8px;
    color: #174f9f;
    font: 700 18px/1.2 'Segoe UI', Tahoma, sans-serif;
}

.about-text strong {
    color: #174f9f;
    font-weight: 600;
}

.about-text em {
    color: #2b6b34;
    font-style: italic;
    font-weight: 500;
}

/* Animaciones y efectos especiales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-section {
    animation: fadeInUp 0.36s var(--xp-ease-out) both;
}

.about-section:nth-child(1) { animation-delay: 0.03s; }
.about-section:nth-child(2) { animation-delay: 0.06s; }
.about-section:nth-child(3) { animation-delay: 0.09s; }
.about-section:nth-child(4) { animation-delay: 0.12s; }
.about-section:nth-child(5) { animation-delay: 0.15s; }
.about-section:nth-child(6) { animation-delay: 0.18s; }

.about-section-education {
    min-height: 150px;
    border-left: 6px solid #2f67b2;
    background: linear-gradient(135deg, #edf4ff, #ffffff 62%);
}

.about-me-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 700px) {
    .about-profile {
        align-items: flex-start;
        margin: 12px 10px 0;
        padding: 16px;
    }

    .about-profile img {
        width: 78px;
        height: 78px;
    }

    .about-profile h2 {
        font-size: 22px;
    }

    .about-section, .about-section:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        padding: 20px 30px 10px 30px;
    }
    
    .about-image img {
        width: 132px;
        height: 132px;
    }
    
    .about-text {
        padding: 10px 30px 30px 30px;
        text-align: left;
    }
    
    .about-sections { padding: 18px 12px; }
}

@media (max-width: 470px) {
    .about-profile {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-profile,
    .about-section,
    .about-section:hover,
    .about-section:hover .about-image img {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* Scroll bar moderno */
.about-me-container::-webkit-scrollbar {
    width: 8px;
}

.about-me-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.about-me-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: background-color var(--xp-motion-fast) var(--xp-ease-out);
}

.about-me-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
