/* ==========================================================================
   SOBRE NOSOTROS - ESTILOS
   ========================================================================== */

/* ===== HERO ===== */
.page-hero {
    padding: 140px 0 60px;
    background: radial-gradient(circle at 10% 20%, rgba(0, 139, 153, 0.04) 0%, rgba(255, 255, 255, 1) 90%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 42px;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== HISTORIA ===== */
.nosotros-content {
    padding: 60px 0;
    background-color: var(--white);
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.nosotros-grid .imagen-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.nosotros-grid .imagen-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nosotros-grid .imagen-container:hover img {
    transform: scale(1.04);
}

.nosotros-grid h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.nosotros-grid p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.valores-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.valor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: var(--light);
    border-radius: 8px;
    transition: var(--transition);
}

.valor-item:hover {
    background-color: rgba(var(--primary-rgb), 0.06);
    transform: translateX(4px);
}

.valor-item i {
    color: var(--primary);
    font-size: 20px;
}

/* ===== BARRA DE ESTADÍSTICAS ===== */
.stats-section {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.12) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-item .stat-numero {
    font-family: var(--font-family-title);
    font-size: 42px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    display: block;
}

.stat-item .stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-light);
    margin-top: 8px;
    letter-spacing: 0.3px;
}

/* ===== TECNOLOGÍA ===== */
.tecnologia-section {
    padding: 90px 0;
    background-color: var(--light);
}

.tecnologia-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.tecnologia-visual {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.tecnologia-visual::before {
    content: '';
    position: absolute;
    width: 220%;
    height: 220%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    top: -60%;
    left: -60%;
    animation: spinSlow 30s linear infinite;
}

.tecnologia-visual i {
    font-size: 56px;
    position: relative;
    z-index: 1;
}

.tecnologia-visual h3 {
    color: var(--white);
    font-size: 22px;
    margin: 16px 0 6px;
    position: relative;
    z-index: 1;
}

.tecnologia-visual p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.tecnologia-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tec-feature-item {
    display: flex;
    gap: 16px;
}

.tec-feature-icon {
    width: 48px;
    height: 48px;
    background-color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
    flex-shrink: 0;
}

.tec-feature-text h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.tec-feature-text p {
    font-size: 13.5px;
    margin: 0;
}

/* ===== TRAYECTORIA / TIMELINE ===== */
.trayectoria-section {
    padding: 90px 0;
    background-color: var(--white);
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-wrapper .subtitle {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-family: var(--font-family-title);
    font-weight: 600;
    font-size: 14px;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.section-title-wrapper h2 {
    font-size: 32px;
}

.section-title-wrapper .title-bar {
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
    margin: 16px auto 0;
    border-radius: 2px;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    padding-bottom: 36px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item .timeline-anio {
    font-family: var(--font-family-title);
    font-weight: 800;
    color: var(--primary);
    font-size: 18px;
}

.timeline-item h4 {
    font-size: 16px;
    margin: 4px 0 6px;
}

.timeline-item p {
    font-size: 14px;
    margin: 0;
}

/* ===== DOCTOR ===== */
.doctor-section {
    padding: 90px 0;
    background-color: var(--light);
}

.doctor-card {
    max-width: 460px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.doctor-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.doctor-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin-bottom: 16px;
}

.doctor-card h3 {
    font-size: 22px;
}

.doctor-card .especialidad {
    color: var(--primary);
    font-weight: 600;
}

.doctor-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 12px 0;
}

.doctor-credenciales {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
}

.doctor-credenciales span {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    padding: 6px 12px;
    border-radius: 20px;
}

.btn-doctoralia {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #00C3A5;
    color: #00C3A5;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-doctoralia:hover {
    background: #00C3A5;
    color: white;
}

/* ===== CTA FINAL ===== */
.cta-final-section {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-final-section::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    top: -100px;
    left: -60px;
}

.cta-final-section h2 {
    color: var(--white);
    font-size: 30px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-final-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    max-width: 520px;
    margin: 0 auto 28px;
    position: relative;
    z-index: 1;
}

.cta-final-section .cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-final-section .btn-primary {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-final-section .btn-primary:hover {
    background-color: var(--dark);
    color: var(--white);
}

.cta-final-section .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.cta-final-section .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {

    .nosotros-grid,
    .tecnologia-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 16px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 110px 0 44px;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    .valores-list {
        grid-template-columns: 1fr;
    }

    .stat-item .stat-numero {
        font-size: 32px;
    }

    .timeline {
        padding-left: 26px;
    }

    .cta-final-section .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
