/* ============================================================
   about-us.css - Página "About Us" / "Quienes Somos"
   Estilos responsive (mobile-first) para mobile y desktop
   ============================================================ */

/* ========== 1. VARIABLES CSS (Design Tokens) ========== */

:root {
    /* ===== Colores Principal ===== */
    --color-primary: #02478c;           /* Azul principal INDESmed */
    --color-primary-light: #0e92c6;     /* Azul claro */
    --color-primary-dark: #023a73;      /* Azul oscuro */
    
    /* ===== Colores Secundarios ===== */
    --color-secondary: #00a86b;          /* Verde salud (HealthTech) */
    --color-accent: #f77f00;            /* Naranja acento */
    --color-accent-light: #ffa64d;      /* Naranja claro */
    
    /* ===== Colores de Texto ===== */
    --color-text: #2d3748;              /* Texto principal */
    --color-text-secondary: #4a5568;     /* Texto secundario */
    --color-text-muted: #6c757d;        /* Texto atenuado */
    --color-text-light: #a0aec0;        /* Texto claro */
    
    /* ===== Colores de Fondo ===== */
    --color-bg: #ffffff;                /* Fondo principal */
    --color-bg-light: #f8f9fa;          /* Fondo claro */
    --color-bg-section: #f5f7fa;        /* Fondo de secciones */
    
    /* ===== Espaciado (Sistema 8px) ===== */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 1rem;      /* 16px */
    --spacing-md: 1.5rem;    /* 24px */
    --spacing-lg: 2rem;      /* 32px */
    --spacing-xl: 3rem;      /* 48px */
    --spacing-xxl: 5rem;     /* 80px */
    --spacing-xxxl: 6rem;    /* 96px */
    
    /* ===== Tipografía ===== */
    --font-family-primary: 'Ubuntu', 'Verdana', system-ui, sans-serif;
    --font-family-heading: 'Ubuntu', system-ui, sans-serif;
    
    --font-size-xs: 0.75rem;     /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-lg: 1.125rem;    /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;   /* 30px */
    --font-size-4xl: 2.25rem;    /* 36px */
    --font-size-5xl: 3rem;       /* 48px */
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* ===== Bordes y Radios ===== */
    --border-radius-sm: 0.5rem;      /* 8px */
    --border-radius-md: 0.75rem;    /* 12px */
    --border-radius-lg: 1rem;       /* 16px */
    --border-radius-xl: 1.5rem;      /* 24px */
    --border-radius-full: 9999px;    /* Circular */
    
    --border-width: 1px;
    --border-color: #e5e7eb;
    
    /* ===== Sombras ===== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* ===== Transiciones ===== */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    --transition-slower: 800ms ease-out;
    
    /* ===== Z-index ===== */
    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    
    /* ===== Breakpoints (para referencia en JS) ===== */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* ========== 2. RESET Y BASE ========== */

/* Reset mínimo para About Us */
.about-us-page *,
.about-us-page *::before,
.about-us-page *::after {
    box-sizing: border-box;
}

/* Contenedor principal */
.about-us-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    background-color: var(--color-bg);
}

.about-us-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Mobile: padding reducido */
@media (max-width: 767px) {
    .about-us-page {
        padding: var(--spacing-md) var(--spacing-sm);
    }
}

/* ========== 3. SECCIÓN HERO / INTRO ========== */

.about-hero-section {
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.about-hero-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
    width: 100%;
}

.about-hero-title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin: 0 auto var(--spacing-md) auto;
    line-height: var(--line-height-tight);
    text-align: center;
    width: 100%;
}

.about-hero-subtitle {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    margin: 0 auto var(--spacing-md) auto;
    line-height: var(--line-height-normal);
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.about-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.about-hero-intro {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text);
    margin: 0;
    text-align: justify;
}

/* Mobile: ajustes de tipografía */
@media (max-width: 767px) {
    .about-hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .about-hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .about-hero-intro {
        font-size: var(--font-size-base);
        text-align: left;
    }
    
    .about-hero-content {
        padding: 0 var(--spacing-sm);
    }
}

/* ========== 4. SECCIÓN DE HISTORIA ========== */

.about-history-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
}

.about-section-title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    text-align: center;
    margin: 0 0 var(--spacing-xxl) 0;
    line-height: var(--line-height-tight);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.about-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    margin: var(--spacing-md) auto 0;
    border-radius: var(--border-radius-full);
}

.about-history-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.about-history-paragraph {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
    text-align: justify;
}

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

/* Mobile: ajustes de tipografía */
@media (max-width: 767px) {
    .about-section-title {
        font-size: var(--font-size-3xl);
    }
    
    .about-history-paragraph {
        font-size: var(--font-size-base);
        text-align: left;
    }
    
    .about-history-content {
        padding: 0 var(--spacing-sm);
    }
}

/* ========== 5. SECCIÓN VISIÓN / TECNOLOGÍA ========== */

.about-vision-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-section) 100%);
    border-radius: var(--border-radius-xl);
}

.about-vision-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.about-vision-paragraph {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
    text-align: justify;
}

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

/* Mobile: ajustes */
@media (max-width: 767px) {
    .about-vision-paragraph {
        font-size: var(--font-size-base);
        text-align: left;
    }
    
    .about-vision-content {
        padding: 0 var(--spacing-sm);
    }
}

/* ========== 6. SECCIÓN SALUD 360° ========== */

.about-360-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.about-360-intro {
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
    padding: 0 var(--spacing-md);
}

.about-360-concept {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text);
    text-align: justify;
    margin: 0;
}

/* Grid de cards 360° */
.about-360-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Tablet: 2 columnas */
@media (min-width: 768px) {
    .about-360-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 4 columnas */
@media (min-width: 1024px) {
    .about-360-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md);
    }
}

/* Card individual 360° */
.about-360-card {
    background: var(--color-bg);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-360-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.about-360-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.about-360-card:hover::before {
    transform: scaleX(1);
}

.about-360-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.about-360-card-title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    margin: 0 0 var(--spacing-sm) 0;
    transition: color var(--transition-base);
}

.about-360-card:hover .about-360-card-title {
    color: var(--color-primary-light);
}

.about-360-card-text {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    margin: 0;
}

/* Mobile: ajustes */
@media (max-width: 767px) {
    .about-360-concept {
        font-size: var(--font-size-base);
        text-align: left;
    }
    
    .about-360-intro {
        padding: 0 var(--spacing-sm);
    }
    
    .about-360-cards {
        padding: 0 var(--spacing-sm);
    }
}

/* ========== 7. SECCIÓN DEL EQUIPO ========== */

.about-team-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-section) 100%);
    border-radius: var(--border-radius-xl);
}

/* Grid de miembros del equipo */
.about-team-members {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Tablet: 2 columnas */
@media (min-width: 768px) {
    .about-team-members {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Desktop: 2 columnas (mantener para CEO y Asesor) */
@media (min-width: 1024px) {
    .about-team-members {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
        max-width: 1000px;
    }
}

/* Tarjeta de miembro del equipo */
.about-team-member {
    background: var(--color-bg);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.about-team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.about-team-member:hover::before {
    transform: scaleX(1);
}

/* Contenedor de foto */
.about-team-member-photo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--color-bg-light);
}

.about-team-member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-team-member:hover .about-team-member-photo {
    transform: scale(1.1);
}

/* Nombre del miembro */
.about-team-member-name {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    margin: 0 0 var(--spacing-xs) 0;
    transition: color var(--transition-base);
}

.about-team-member:hover .about-team-member-name {
    color: var(--color-primary-light);
}

/* Descripción del miembro */
.about-team-member-description {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
}

.about-team-member-description p {
    margin: 0;
    color: var(--color-text-secondary);
}

/* Mobile: ajustes de tarjeta */
@media (max-width: 767px) {
    .about-team-member-photo-wrapper {
        width: 160px;
        height: 160px;
    }
    
    .about-team-member-name {
        font-size: var(--font-size-lg);
    }
    
    .about-team-member-description {
        font-size: var(--font-size-sm);
    }
    
    .about-team-members {
        padding: 0 var(--spacing-sm);
    }
}

/* ========== 8. ANIMACIONES ========== */

/* Animación de entrada para secciones */
.about-hero-section,
.about-history-section,
.about-vision-section,
.about-360-section,
.about-team-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.about-hero-section {
    animation-delay: 0.1s;
}

.about-history-section {
    animation-delay: 0.2s;
}

.about-vision-section {
    animation-delay: 0.3s;
}

.about-360-section {
    animation-delay: 0.4s;
}

.about-team-section {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación escalonada para cards */
.about-360-card,
.about-team-member {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpCard 0.6s ease-out forwards;
}

.about-360-card:nth-child(1),
.about-team-member:nth-child(1) { 
    animation-delay: 0.1s; 
}

.about-360-card:nth-child(2),
.about-team-member:nth-child(2) { 
    animation-delay: 0.2s; 
}

.about-360-card:nth-child(3) { 
    animation-delay: 0.3s; 
}

.about-360-card:nth-child(4) { 
    animation-delay: 0.4s; 
}

@keyframes fadeInUpCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desactivar animaciones si el usuario prefiere movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .about-hero-section,
    .about-history-section,
    .about-vision-section,
    .about-360-section,
    .about-team-section,
    .about-360-card,
    .about-team-member {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ========== 9. MEDIA QUERIES (Desktop y Tablets) ========== */

/* Tablet (768px y superior) */
@media (min-width: 768px) {
    .about-us-page {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .about-hero-title,
    .about-section-title {
        font-size: var(--font-size-5xl);
    }
}

/* Desktop (1024px y superior) */
@media (min-width: 1024px) {
    .about-us-page {
        padding: var(--spacing-xxl) var(--spacing-xl);
    }
    
    .about-hero-content,
    .about-history-content,
    .about-vision-content,
    .about-360-intro {
        padding: 0 var(--spacing-xl);
    }
    
    .about-360-cards,
    .about-team-members {
        padding: 0 var(--spacing-xl);
    }
}

/* Desktop grande (1280px y superior) */
@media (min-width: 1280px) {
    .about-us-page {
        max-width: 1400px;
    }
}

/* ========== 10. UTILIDADES ========== */

/* Clases de utilidad para espaciado */
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* Clases de utilidad para texto */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }

/* Clases de utilidad para visibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
