/* =====================================================
   SERVIDENT - Estilos Principales OPTIMIZADOS
   Versión: 2.0
   ===================================================== */

/* ===== VARIABLES CSS ===== */
:root {
    /* Colores principales */
    --primary-color: #00B4D8;
    --primary-dark: #0077B6;
    --secondary-color: #48CAE4;
    --accent-color: #90E0EF;
    --success-color: #52b788;
    --warning-color: #f77f00;
    --error-color: #d62828;
    
    /* Colores neutros */
    --text-dark: #212529;
    --text-gray: #6c757d;
    --text-light: #adb5bd;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    
    /* Tipografía */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Transiciones */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.2);
    
    /* Breakpoints */
    --mobile: 480px;
    --tablet: 768px;
    --desktop: 1024px;
    --wide: 1200px;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mejora de rendimiento para animaciones */
body.loaded * {
    transition-duration: var(--transition-fast) !important;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== TIPOGRAFÍA RESPONSIVE ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { 
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem); 
}

h2 { 
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem); 
}

h3 { 
    font-size: clamp(1.25rem, 2vw + 0.5rem, 2rem); 
}

h4 { 
    font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.5rem); 
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== UTILIDADES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===== BOTONES RESPONSIVE ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 50px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    text-align: center;
    white-space: normal;
    min-width: fit-content;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.btn-block {
    width: 100%;
}

.btn .btn-subtitle,
.btn small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.2;
}

/* Botón hero especial */
.btn-hero {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-3px) scale(1.02);
}

/* Mobile button adjustments */
@media (max-width: 480px) {
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn .btn-subtitle {
        font-size: 0.7rem;
    }
}

/* ===== ANIMACIÓN PULSE MEJORADA ===== */
@keyframes pulse {
    0% { 
        box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3),
                    0 0 0 0 rgba(0, 180, 216, 0.7); 
    }
    70% { 
        box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3),
                    0 0 0 15px rgba(0, 180, 216, 0); 
    }
    100% { 
        box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3),
                    0 0 0 0 rgba(0, 180, 216, 0); 
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== WHATSAPP FLOTANTE RESPONSIVE ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition-fast);
}

@media (min-width: 768px) {
    .whatsapp-float {
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ===== HEADER RESPONSIVE ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 999;
    transition: var(--transition-fast);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

@media (min-width: 768px) {
    .logo-img {
        height: 50px;
    }
}

.nav-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        gap: 2rem;
        align-items: center;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition-fast);
    display: block;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.cta-nav {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
}

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

/* Mobile menu toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* Mobile menu active state */
@media (max-width: 767px) {
    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: var(--shadow-md);
        flex-direction: column;
        padding: 1rem;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Hamburger animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HERO SECTION RESPONSIVE ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 60px;
}

@media (min-width: 768px) {
    .hero {
        margin-top: 70px;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.85), rgba(0, 119, 182, 0.85));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem 0;
}

.hero-pretitle {
    font-size: clamp(0.875rem, 2vw, 1rem);
    margin-bottom: 1rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 5vw + 1rem, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Hero benefits responsive */
.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-benefits {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.875rem, 2vw, 1rem);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.benefit-item i {
    color: var(--accent-color);
    font-size: 1.125rem;
}

/* Trust badges responsive */
.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

@media (min-width: 480px) {
    .trust-badges {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    font-size: clamp(0.875rem, 2vw, 1rem);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.badge-item i {
    font-size: 1.125rem;
    color: var(--accent-color);
}

/* Urgency text */
.urgency-text {
    margin-top: 1rem;
    font-size: clamp(0.875rem, 2vw, 1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.urgency-text i {
    color: var(--warning-color);
    animation: fire-bounce 1s ease-in-out infinite;
}

@keyframes fire-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-3px) scale(1.1); }
    75% { transform: translateY(-1px) scale(1.05); }
}

.spots-left {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.25rem;
    animation: spots-pulse 1.5s ease-in-out infinite;
}

@keyframes spots-pulse {
    0%, 100% { transform: scale(1); }
    50% { 
        transform: scale(1.1);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== SECTIONS GENERAL ===== */
section {
    padding: var(--spacing-xl) 0;
}

@media (min-width: 768px) {
    section {
        padding: var(--spacing-xxl) 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 3rem;
    }
}

.section-pretitle {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-title {
        margin-bottom: 2rem;
    }
}

.section-title .highlight {
    color: var(--primary-color);
    display: block;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 2rem;
}

@media (min-width: 768px) {
    .section-subtitle {
        margin-bottom: 3rem;
    }
}

/* ===== PROBLEM SECTION RESPONSIVE ===== */
.problem-section {
    background-color: var(--bg-light);
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .problems-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-bottom: 3rem;
    }
}

.problem-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-fast);
}

@media (min-width: 768px) {
    .problem-card {
        padding: 2rem;
    }
}

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

.problem-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .problem-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }
}

.problem-icon i {
    font-size: 1.5rem;
    color: white;
}

@media (min-width: 768px) {
    .problem-icon i {
        font-size: 2rem;
    }
}

.problem-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
}

.problem-card p {
    color: var(--text-gray);
    margin-bottom: 0;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.connection-story {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .connection-story {
        padding: 3rem;
    }
}

.connection-story blockquote {
    position: relative;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--text-gray);
}

.connection-story blockquote i {
    position: absolute;
    top: -15px;
    left: -15px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
}

@media (min-width: 768px) {
    .connection-story blockquote i {
        top: -20px;
        left: -20px;
        font-size: 3rem;
    }
}

.connection-story cite {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-style: normal;
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== SOLUTION SECTION RESPONSIVE ===== */
.method-steps {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .method-steps {
        margin-bottom: 3rem;
    }
}

.step-item {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .step-item {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
        margin-bottom: 4rem;
        padding: 2rem 0;
    }
}

.step-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .step-left {
        flex-direction: row;
        gap: 2rem;
        text-align: left;
    }
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: var(--font-secondary);
    line-height: 1;
    flex-shrink: 0;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .step-number {
        font-size: 4rem;
        margin: 0;
    }
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.step-content p {
    color: var(--text-gray);
    margin-bottom: 1.25rem;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.step-features {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .step-features {
        max-width: none;
        margin: 0;
    }
}

.step-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.step-features i {
    color: var(--success-color);
    flex-shrink: 0;
}

.step-image {
    flex: 1;
    max-width: 100%;
}

@media (min-width: 768px) {
    .step-image {
        max-width: 500px;
    }
}

.step-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

/* Reverse layout for desktop */
@media (min-width: 768px) {
    .step-item.reverse {
        flex-direction: row-reverse;
    }
    
    .step-item.reverse .step-left {
        text-align: right;
        flex-direction: row-reverse;
    }
    
    .step-item.reverse .step-content h3,
    .step-item.reverse .step-content p {
        text-align: right;
    }
    
    .step-item.reverse .step-features {
        text-align: right;
    }
    
    .step-item.reverse .step-features li {
        justify-content: flex-end;
    }
}

/* Section CTA */
.section-cta {
    text-align: center;
}

.cta-subtitle {
    margin-top: 1rem;
    color: var(--text-gray);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* ===== DOCTOR SECTION RESPONSIVE ===== */
.doctor-section {
    background-color: var(--bg-light);
}

.doctor-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .doctor-wrapper {
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
    }
}

.doctor-image {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .doctor-image {
        max-width: 100%;
    }
}

.doctor-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: auto;
}

.doctor-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background-color: white;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

@media (min-width: 768px) {
    .doctor-badge {
        bottom: 20px;
        left: 20px;
        right: auto;
        padding: 1rem 1.5rem;
    }
}

.doctor-badge i {
    color: var(--primary-color);
}

.doctor-content .subtitle {
    display: block;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

.doctor-bio {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .doctor-bio {
        margin-bottom: 2rem;
    }
}

.doctor-bio p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.doctor-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

@media (min-width: 480px) {
    .doctor-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .doctor-stats {
        gap: 2rem;
        margin-bottom: 2rem;
        padding: 2rem;
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

.stat-label {
    color: var(--text-gray);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}

.doctor-credentials {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .doctor-credentials {
        margin-bottom: 2rem;
    }
}

.doctor-credentials h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
}

.doctor-credentials ul {
    list-style: none;
}

.doctor-credentials li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-gray);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.doctor-credentials i {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-top: 0.125rem;
}

.doctor-quote {
    background-color: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    position: relative;
}

@media (min-width: 768px) {
    .doctor-quote {
        padding: 2rem;
    }
}

.doctor-quote i {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.2;
}

@media (min-width: 768px) {
    .doctor-quote i {
        top: 20px;
        left: 20px;
        font-size: 2rem;
    }
}

.doctor-quote p {
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.8;
    padding-left: 1.5rem;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

@media (min-width: 768px) {
    .doctor-quote p {
        padding-left: 2rem;
    }
}

/* ===== BENEFITS SECTION RESPONSIVE ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 480px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.benefit-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-fast);
}

@media (min-width: 768px) {
    .benefit-card {
        padding: 2rem;
    }
}

.benefit-card:hover {
    background-color: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .benefit-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }
}

.benefit-icon i {
    font-size: 1.75rem;
    color: white;
}

@media (min-width: 768px) {
    .benefit-icon i {
        font-size: 2rem;
    }
}

.benefit-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
}

.benefit-card p {
    color: var(--text-gray);
    margin-bottom: 0;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* ===== TESTIMONIALS SECTION RESPONSIVE ===== */
.testimonials-section {
    background-color: var(--bg-light);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto 2rem;
}

@media (min-width: 768px) {
    .testimonials-slider {
        margin-bottom: 3rem;
    }
}

.testimonial-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: none;
}

@media (min-width: 768px) {
    .testimonial-card {
        padding: 3rem;
    }
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (min-width: 480px) {
    .testimonial-header {
        flex-direction: row;
        text-align: left;
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .testimonial-header {
        margin-bottom: 2rem;
    }
}

.testimonial-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .testimonial-image {
        width: 80px;
        height: 80px;
    }
}

.testimonial-info h3 {
    margin-bottom: 0.25rem;
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
}

.testimonial-info p {
    color: var(--text-gray);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    margin-bottom: 0.5rem;
}

.testimonial-stars {
    color: var(--warning-color);
}

.testimonial-card blockquote {
    position: relative;
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--text-gray);
}

.testimonial-card blockquote i {
    position: absolute;
    top: -15px;
    left: -10px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.1;
}

@media (min-width: 768px) {
    .testimonial-card blockquote i {
        top: -20px;
        left: -20px;
        font-size: 3rem;
    }
}

.testimonial-card blockquote p {
    padding-left: 1.5rem;
}

@media (min-width: 768px) {
    .testimonial-card blockquote p {
        padding-left: 2rem;
    }
}

.testimonial-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--success-color);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}

/* Testimonial controls */
.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .testimonial-controls {
        gap: 2rem;
    }
}

.control-prev,
.control-next {
    background-color: white;
    border: 2px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

@media (min-width: 768px) {
    .control-prev,
    .control-next {
        width: 50px;
        height: 50px;
    }
}

.control-prev:hover,
.control-next:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    padding: 0;
}

@media (min-width: 768px) {
    .dot {
        width: 10px;
        height: 10px;
    }
}

.dot.active {
    background-color: var(--primary-color);
    width: 24px;
    border-radius: 5px;
}

@media (min-width: 768px) {
    .dot.active {
        width: 30px;
    }
}

/* Video testimonial */
.video-testimonial {
    text-align: center;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .video-testimonial {
        margin-top: 3rem;
    }
}

.video-testimonial h3 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.video-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-thumbnail {
    width: 100%;
    height: auto;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 180, 216, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

@media (min-width: 768px) {
    .play-button {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

.play-button:hover {
    background-color: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===== FAQ SECTION RESPONSIVE ===== */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background-color: transparent;
    border: none;
    text-align: left;
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-fast);
}

@media (min-width: 768px) {
    .faq-question {
        padding: 1.5rem;
    }
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-question.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.faq-question i {
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer[aria-hidden="false"] {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-gray);
    line-height: 1.8;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

@media (min-width: 768px) {
    .faq-answer p {
        padding: 0 1.5rem 1.5rem;
    }
}

/* ===== CONTACT SECTION RESPONSIVE ===== */
.contact-section {
    background-color: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.contact-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .contact-description {
        margin-bottom: 2rem;
    }
}

.contact-benefits {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .contact-benefits {
        margin-bottom: 3rem;
    }
}

.contact-benefits .benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-gray);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.contact-benefits i {
    color: var(--success-color);
    font-size: 1.125rem;
}

.clinic-info h3 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-top: 0.125rem;
}

.info-item div {
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.info-item a {
    color: var(--text-gray);
    text-decoration: none;
}

.info-item a:hover {
    color: var(--primary-color);
}

/* Contact form responsive */
.contact-form-wrapper {
    background-color: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

@media (min-width: 480px) {
    .contact-form-wrapper {
        padding: 2rem;
    }
}

@media (min-width: 768px) {
    .contact-form-wrapper {
        padding: 3rem;
    }
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.form-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

@media (min-width: 768px) {
    .form-subtitle {
        margin-bottom: 2rem;
    }
}

.form-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: clamp(0.875rem, 2vw, 1rem);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error-color);
}

.field-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group i {
    position: absolute;
    right: 1rem;
    top: 2.5rem;
    color: var(--text-light);
    pointer-events: none;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-group.checkbox input {
    width: auto;
    margin-top: 0.25rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}

.form-group.checkbox label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-note {
    text-align: center;
    color: var(--text-gray);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    margin-top: 1rem;
}

.form-success {
    text-align: center;
    padding: 2rem;
}

@media (min-width: 768px) {
    .form-success {
        padding: 3rem;
    }
}

.form-success i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .form-success i {
        font-size: 4rem;
    }
}

.form-success h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.form-success p {
    color: var(--text-gray);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* ===== MAP SECTION RESPONSIVE ===== */
.map-full-section {
    position: relative;
    width: 100%;
    background-color: #f8f9fa;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.map-container {
    position: relative;
    width: 100%;
    height: 350px;
}

@media (min-width: 768px) {
    .map-container {
        height: 400px;
    }
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(30%) brightness(0.95);
    transition: filter var(--transition-fast);
}

.map-container:hover iframe {
    filter: grayscale(0%) brightness(1);
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 1.25rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: calc(100% - 40px);
    max-width: 320px;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
    .map-overlay {
        left: 30px;
        bottom: 30px;
        transform: none;
        padding: 2rem;
        width: auto;
        animation: slideInLeft 0.6s ease-out;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.map-overlay h3 {
    color: var(--primary-color);
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.map-overlay p {
    margin-bottom: 0.5rem;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-overlay p i {
    color: var(--primary-color);
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.map-overlay .fa-whatsapp {
    color: #25D366;
}

.map-overlay a {
    color: var(--text-gray);
    text-decoration: none;
}

.map-overlay a:hover {
    color: var(--primary-color);
}

.map-overlay .directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 25px;
    font-weight: 500;
    margin-top: 0.75rem;
    transition: all var(--transition-fast);
    text-decoration: none;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

@media (min-width: 768px) {
    .map-overlay .directions-btn {
        padding: 0.75rem 1.5rem;
        margin-top: 1rem;
    }
}

.map-overlay .directions-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.3);
    color: white;
}

/* ===== FOOTER RESPONSIVE ===== */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0 1rem;
}

@media (min-width: 768px) {
    .footer {
        padding: 3rem 0 1rem;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 2fr;
        text-align: left;
    }
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin: 0 auto 1rem;
}

@media (min-width: 768px) {
    .footer-logo {
        height: 60px;
        margin: 0 0 1rem 0;
    }
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .social-links {
        justify-content: flex-start;
    }
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul a {
    opacity: 0.8;
    transition: var(--transition-fast);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.footer-section ul a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        padding-top: 2rem;
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    margin-bottom: 0;
    opacity: 0.8;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-links {
        gap: 2rem;
        justify-content: flex-end;
    }
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition-fast);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .whatsapp-float,
    .video-testimonial,
    .contact-form,
    .footer,
    .map-full-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Will-change for animated elements */
.animate-fade-up,
.reveal,
.pulse,
.hover-float:hover {
    will-change: transform, opacity;
}

/* Loading state */
body:not(.loaded) * {
    transition: none !important;
}