/* --- VARIABLES & RESET --- */
:root {
    /* Paleta Corporativa */
    --primary-color: #0099A8; /* El color principal exacto del logo */
    --primary-dark: #007F8C;  /* Un tono más oscuro para cuando pasas el mouse */
    --primary-light: #E6F5F6;
    --secondary-color: #1a1a1a; /* Negro suave */
    --text-color: #4a4a4a;
    --white: #ffffff;
    --bg-gray: #f8f9fa;
    --border-color: #e1e4e8;
    
    /* Tipografía */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Espaciado y Layout */
    --header-height: 4.5rem;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 10px 30px rgba(0, 102, 204, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* --- CLASES UTILITARIAS --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.section {
    padding: 5rem 0;
}

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

.bg-gray {
    background-color: var(--bg-gray);
}

/* --- BOTONES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn--outline-light {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

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

.btn--sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn--block {
    width: 100%;
}

/* --- HEADER --- */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 100;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header__container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 5px 0; /* Un poco de aire vertical */
}

/* Control de la imagen del logo */
.logo__img {
    height: 50px; /* Altura ideal para desktop */
    width: auto;  /* Mantiene la proporción original, no se estira */
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease; /* Pequeña animación suave */
}

/* Efecto Hover sutil (UX Exquisito) */
.logo:hover .logo__img {
    transform: scale(1.03); 
    opacity: 0.9;
}

/* --- RESPONSIVE (Mobile First) --- */
@media screen and (max-width: 768px) {
    .logo__img {
        height: 40px; /* Un poco más pequeño en celulares para que no descuadre el header */
    }
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-weight: 500;
    color: var(--secondary-color);
    transition: color 0.3s;
}

.nav__link:hover, .active-link {
    color: var(--primary-color);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__toggle, .nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 2rem); /* Deja espacio para el menú fijo */
    padding-bottom: 3rem;
    background: url('img/banner.webp') no-repeat center center/cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 153, 168, 0.9) 0%, rgba(0, 127, 140, 0.8) 100%);
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    color: var(--white);
    width: 100%; /* Asegura que tome el ancho disponible */
}

.hero__content {
    max-width: 800px; /* Aumentamos el max-width para darle más respiro al texto y al video */
    margin: 0 auto; /* Centramos el contenido en pantallas grandes */
    text-align: center; /* Centramos el texto para una composición más equilibrada con el video */
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Texto fluido: se adapta al tamaño de la pantalla */
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero__title .highlight {
    color: #8cc6ff; /* Azul claro para contraste */
    font-style: italic;
}

.hero__description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center; /* Centrar botones */
}

.hero__trust {
    display: flex;
    justify-content: center; /* Centrar insignias */
    gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
    flex-wrap: wrap; /* Permitir que bajen de línea en móviles muy pequeños */
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item i {
    font-size: 1.5rem;
    color: #8cc6ff;
}

/* --- SECTION HEADERS --- */
.section__header {
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section__tag {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* --- CARDS (Problema) --- */
.problem__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card__icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card__title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

/* --- METODO --- */
.method__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.steps {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 1.5rem;
}

.step__number {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
}

.step__info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.method__image-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.method__image-placeholder .big-icon {
    font-size: 8rem;
    color: rgba(0, 102, 204, 0.1);
}

.image-overlay {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    font-weight: 600;
    color: var(--primary-color);
}

/* --- VIDEO PLAYER --- */
.video-player-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-controls {
    background: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.video-nav-btn {
    background: var(--bg-gray);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary-color);
    transition: 0.3s;
}

.video-nav-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.video-info {
    text-align: center;
}

#current-video-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-indicators {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* --- ESPECIALISTAS --- */
.specialists__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.doctor-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: 0.3s;
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor__img-box {
    height: 250px;
    background-color: #d1e3f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor__img-box i {
    font-size: 5rem;
    color: rgba(255,255,255,0.7);
}

.doctor__content {
    padding: 1.5rem;
    text-align: center;
}

.specialty {
    display: block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0.3rem 0 1rem;
}

.doctor__content p {
    font-size: 0.9rem;
    color: #666;
}

/* --- CONTACTO --- */
.contact__container {
    grid-template-columns: 1fr 1.5fr;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.contact__info {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem 2rem;
}

.contact__title, .contact__info h3 {
    color: var(--white);
}

.contact__description {
    color: #aaa;
    margin-bottom: 2rem;
}

.contact__item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.contact__item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact__item p {
    color: #ccc;
    font-size: 0.9rem;
}

.contact__form {
    padding: 3rem 2rem;
    background: var(--white);
}

.contact__form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form__group input, .form__group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.form__group input:focus, .form__group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #f8fbff;
}

.phone-input {
    display: flex;
    gap: 0.5rem;
}

#country-code {
    width: 110px;
}

.privacy-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 1rem;
    text-align: center;
}

/* --- FOOTER --- */
.footer {
    background-color: #111;
    color: #999;
    padding: 3rem 0 1rem;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #222;
}

.footer__logo {
    color: var(--white);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.footer__logo-badge {
    display: inline-block;
    background-color: #ffffff; /* Fondo blanco para que el logo resalte */
    padding: 12px 20px;        /* Espacio interno para que respire */
    border-radius: 8px;        /* Bordes redondeados acorde al diseño */
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer__logo-img {
    height: 45px;       /* Altura controlada */
    width: auto;        /* Proporción automática */
    display: block;     /* Elimina espacios extra debajo de la imagen */
    object-fit: contain;
}

/* Efecto Hover sutil */
.footer__logo-badge:hover {
    transform: translateY(-3px); /* Se eleva un poco */
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15); /* Resplandor suave */
}

/* Ajuste Mobile */
@media screen and (max-width: 576px) {
    .footer__logo-img {
        height: 35px; /* Un poco más pequeño en celular */
    }
}

.social-link {
    width: 35px;
    height: 35px;
    background: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    margin-left: 0.5rem;
    transition: 0.3s;
}

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

.copyright {
    font-size: 0.85rem;
}

/* --- WHATSAPP WIDGET --- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media screen and (max-width: 968px) {
    .hero__title {
        font-size: 2.2rem;
    }
    
    .method__container, .contact__container {
        grid-template-columns: 1fr;
    }
    
    .nav__list {
        display: none; /* Simplificación para móvil */
    }
    
    /* Menu Móvil Lógica CSS simplificada */
    .nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 1rem;
        box-shadow: 0 -1px 10px rgba(0,0,0,0.1);
        display: none; /* Toggle via JS */
    }
}

@media screen and (max-width: 576px) {
    .header__actions .btn {
        display: none; /* Ocultar botón en pantallas muy pequeñas */
    }
    
    .hero__buttons {
        flex-direction: column;
    }
    
    .footer__container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* =========================================
   WIDGET WHATSAPP UX/UI (Mobile First)
   ========================================= */

/* --- Contenedor Principal --- */
.wa-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

/* --- Botón Flotante --- */
.wa-toggle {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: white;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.wa-toggle:hover {
    transform: scale(1.1);
}

.wa-toggle:active {
    transform: scale(0.95);
}

.wa-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff3b30;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* --- Ventana del Chat --- */
.wa-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px; /* Ancho estándar */
    max-width: calc(100vw - 40px); /* Mobile safe */
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    visibility: hidden;
}

.wa-window.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

/* --- Header --- */
.wa-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.wa-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wa-status-dot {
    width: 10px;
    height: 10px;
    background-color: #25D366;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid #005bb5;
}

.wa-info {
    display: flex;
    flex-direction: column;
}

.wa-name {
    font-weight: 700;
    font-size: 16px;
}

.wa-status {
    font-size: 12px;
    opacity: 0.9;
}

.wa-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    padding: 5px;
}

/* --- Body & Form --- */
.wa-body {
    padding: 20px;
    background-color: #f0f2f5;
    background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png"); /* Fondo sutil de WA */
    background-blend-mode: soft-light;
}

.wa-message-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 0 12px 12px 12px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    line-height: 1.5;
}

.wa-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Inputs con estilo flotante para mejor UX */
.input-group {
    position: relative;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    transition: border-color 0.2s;
}

.input-group:focus-within {
    border-color: #0066CC;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.input-group input {
    width: 100%;
    padding: 24px 12px 8px 12px; /* Espacio para label flotante */
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 15px;
    outline: none;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
    transition: all 0.2s ease;
    pointer-events: none;
}

/* Animación label flotante */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: 8px;
    font-size: 11px;
    color: #0066CC;
    transform: translateY(0);
}

.input-row {
    display: flex;
    gap: 10px;
}

.input-row .shrink {
    flex: 0 0 90px;
}
.input-row .grow {
    flex: 1;
}

.wa-select {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 10px;
    font-size: 14px;
    outline: none;
}

/* Botón Submit */
.btn-wa-submit {
    background: #0066CC;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    margin-top: 5px;
}

.btn-wa-submit:hover {
    background: #005bb5;
}

.wa-privacy {
    text-align: center;
    font-size: 11px;
    color: #999;
}

/* --- Estado de Éxito --- */
.wa-success {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.4s ease;
}

.success-animation {
    font-size: 50px;
    color: #25D366;
    margin-bottom: 15px;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wa-success h3 {
    margin-bottom: 8px;
    color: #333;
}

.wa-success p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.btn-wa-final {
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s;
}

.btn-wa-final:hover {
    transform: translateY(-2px);
}

/* Animaciones */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bounceIn { from { transform: scale(0); } to { transform: scale(1); } }

/* =========================================
   ESTILO REELS (Videos Verticales)
   ========================================= */

.reel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    position: relative;
}

/* Marco del "Teléfono" */
.reel-phone-frame {
    width: 100%;
    max-width: 360px; /* Ancho estándar de móvil */
    aspect-ratio: 9 / 16; /* Formato Vertical Instagram/TikTok */
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border: 4px solid #fff; /* Borde blanco elegante */
}

/* Iframe Container */
.reel-video-container, 
.reel-video-container iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

/* Capa Superior (Controles y Texto) */
.reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Deja pasar clicks al video si es necesario */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 40%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

/* Botones Interactivos */
.reel-btn {
    pointer-events: auto; /* Reactivar clicks en botones */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Posición: Mute */
.reel-btn.top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 18px;
}

/* Posición: Play Central */
.reel-btn.center-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    font-size: 28px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255,255,255,0.5);
    opacity: 0; /* Oculto mientras reproduce */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Mostrar botón play si está pausado (clase controlada por JS) */
.reel-overlay.paused .center-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Info del Video */
.reel-info-content {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    pointer-events: auto;
}

.reel-info-content h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-weight: 600;
}

/* Indicadores (Dots) */
.reel-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.reel-indicators .dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.reel-indicators .dot.active {
    background: white;
    width: 18px;
    border-radius: 10px;
}

/* Botones de Navegación Laterales */
.reel-nav-side {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 5;
}

.reel-nav-side:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Responsive Mobile */
@media screen and (max-width: 576px) {
    .reel-wrapper {
        gap: 0; /* Pegar flechas o superponerlas */
    }
    
    .reel-nav-side {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(5px);
    }
    
    .reel-nav-side.prev { left: 10px; }
    .reel-nav-side.next { right: 10px; }
    
    .reel-phone-frame {
        border-width: 0; /* Sin borde en mobile para inmersión */
        border-radius: 16px;
        max-width: 100%; /* Ocupar ancho disponible */
        aspect-ratio: 9/15; /* Ligeramente más corto para pantallas pequeñas */
    }
}

/* =========================================
   INTL TEL INPUT (BANDERAS Y PAISES)
   ========================================= */

/* Ajuste general para que ocupe todo el ancho */
.iti {
    width: 100%;
    display: block;
}

/* Estilo del Input Principal para que coincida con tu tema */
.iti__flag-container {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.iti input {
    width: 100%;
    height: 50px; /* Altura cómoda para dedos */
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding-left: 90px !important; /* Espacio para la bandera y código */
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.iti input:focus {
    border-color: #0066CC;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    outline: none;
}

/* Ajustes específicos para el Widget de WhatsApp (Estilo flotante) */
#wa-form .iti input {
    background-color: transparent;
    border: none; /* El borde lo da el .input-group padre */
    padding-top: 24px;      /* Para alinear con los otros inputs flotantes */
    padding-bottom: 8px;
    height: auto;
}

/* Dropdown de países (Lista) */
.iti__country-list {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: none;
    font-family: 'Inter', sans-serif;
    z-index: 10000; /* Siempre encima */
}

.iti__country-name {
    color: #333;
    font-size: 14px;
}

/* Mensajes de validación (Opcional pero recomendado) */
#valid-msg-main {
    color: #25D366;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}
.hide { display: none; }

/* =========================================
   SECCIÓN PERFIL PROFESIONAL (NUEVA)
   ========================================= */

.profile {
    padding: 4rem 0;
    background-color: var(--white);
}

/* --- PARTE 1: BIO GRID --- */
.profile__bio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
    align-items: center;
}



/* Placeholder para simular la imagen "Tu Peso Ideal" - Bórralo cuando pongas la imagen real */
.slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Controles Slider */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: 0.3s;
}
.slider-arrow:hover { background: rgba(255,255,255,0.6); }
.prev { left: 10px; }
.next { right: 10px; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}
.slider-dot.active { background: white; }

/* Texto Bio */
.text-left { text-align: left; }

.bio-divider {
    width: 100%;
    height: 2px;
    background: #e1e4e8;
    margin: 1rem 0 1.5rem;
    position: relative;
}
.bio-divider::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100px; /* Línea de acento color teal */
    height: 2px;
    background: var(--primary-color);
}

.bio-text {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    text-align: justify;
}

/* --- PARTE 2: SERVICIOS GRID --- */
.profile__services-container {
    background-color: var(--primary-light); /* Fondo muy suave */
    padding: 3rem;
    border-radius: 16px;
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.services__img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    object-fit: cover;
}

/* Lista de Chequeo */
.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #555;
    font-size: 0.95rem;
}

.check-list li::before {
    content: '•'; /* Bullet simple o icono */
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Acordeón */
.accordion-box {
    margin: 1.5rem 0;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    background: #e8e8e8;
}

.accordion-header {
    width: 100%;
    padding: 1rem;
    background: #e0e0e0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    cursor: pointer;
    color: #333;
    font-family: var(--font-body);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
    padding: 0 1rem;
}

.accordion-content p {
    padding: 1rem 0;
    margin: 0;
    font-size: 0.9rem;
}

.services__cta {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive Desktop */
@media (min-width: 992px) {
    .profile__bio-grid {
        grid-template-columns: 1fr 1fr; /* 2 columnas slider/texto */
    }
    .services__grid {
        grid-template-columns: 0.8fr 1.2fr; /* Foto más pequeña que texto */
    }
}

/* Ajuste para el video de la sección de servicios */
.services__image-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-video-frame {
    /* Hereda estilos de .reel-phone-frame pero aseguramos el tamaño */
    width: 100%;
    max-width: 320px; /* Un poco más compacto que los testimonios para equilibrar con el texto */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Sombra suave */
}

/* Estilo para la imagen principal del perfil (Izquierda) */
.profile__image-wrapper {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    /* Opcional: Borde sutil con el color corporativo */
    border: 1px solid var(--primary-light);
}

.profile__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la foto llene el espacio sin deformarse */
    display: block;
    transition: transform 0.3s ease;
}

.profile__main-img:hover {
    transform: scale(1.02); /* Efecto zoom muy sutil al pasar el mouse */
}

/* =========================================
   REELS DUAL VIEW (Responsive)
   ========================================= */

.reels-grid {
    display: grid;
    grid-template-columns: 1fr; /* Móvil: 1 Columna */
    gap: 20px;
    width: 100%;
    max-width: 800px; /* Ancho máximo para 2 celulares */
    justify-items: center;
}

/* Ocultar Slot 2 en móviles */
.desktop-only {
    display: none;
}

/* RESPONSIVE: PC / Tablet Grande */
@media (min-width: 768px) {
    .reels-grid {
        grid-template-columns: 1fr 1fr; /* PC: 2 Columnas */
    }
    
    .desktop-only {
        display: block; /* Mostrar Slot 2 */
    }

    .reel-wrapper.dual-view {
        gap: 40px; /* Más espacio para las flechas */
    }
}

/* =========================================
   PÁGINA DE AGRADECIMIENTO (gracias.html)
   ========================================= */

.thank-you-section {
    min-height: 80vh; /* Ocupa casi toda la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light); /* Fondo suave */
    padding: 80px 0 40px; /* Espacio para el header fijo */
}

.success-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 153, 168, 0.1); /* Sombra con tono Teal */
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    animation: slideUpFade 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Animación del Icono */
.success-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 153, 168, 0.1);
    border-radius: 50%;
    animation: pulseTeal 2s infinite;
}

.success-check {
    font-size: 3rem;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

/* Tipografía */
.success-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.success-message {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Bloque "Qué sigue" */
.next-steps {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.next-steps h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.next-steps p {
    font-size: 0.95rem;
    margin: 0;
    color: #555;
}

/* Botones */
.success-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn--large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0, 153, 168, 0.2);
}

.btn--text {
    background: transparent;
    color: #888;
    font-weight: 500;
    padding: 0.5rem;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.btn--text:hover {
    color: var(--primary-color);
}

/* Animaciones Keyframes */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseTeal {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 153, 168, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(0, 153, 168, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 153, 168, 0); }
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .success-card {
        padding: 2rem 1.5rem;
    }
    .success-title {
        font-size: 2rem;
    }
}

/* =========================================
   MODAL PRIVACIDAD & CHECKBOXES
   ========================================= */

/* --- Modal (Popup) --- */
.modal-privacy {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-privacy.active {
    opacity: 1;
    visibility: visible;
}

.modal-privacy__content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh; /* Máximo 80% de la altura de la pantalla */
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-privacy.active .modal-privacy__content {
    transform: translateY(0);
}

.modal-privacy__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.modal-privacy__header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.modal-privacy__body {
    padding: 30px;
    overflow-y: auto; /* Scroll interno si el texto es largo */
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.modal-privacy__body h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-privacy__body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.modal-privacy__footer {
    padding: 15px 30px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* --- Checkboxes Personalizados --- */
.checkbox-group {
    display: flex;
    align-items: flex-start; /* Alineación superior por si el texto es largo */
    gap: 10px;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--primary-color); /* Color corporativo en el check */
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-group a, 
.checkbox-group-wa a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

/* Ajuste específico para Widget WhatsApp */
.checkbox-group-wa {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -10px; /* Pegarlo un poco más a los inputs */
    padding: 0 5px;
}

.checkbox-group-wa input {
    width: 16px !important;
    height: 16px !important;
    padding: 0 !important;
}

.checkbox-group-wa label {
    font-size: 12px !important;
    color: #666;
    position: static !important; /* Resetear posición absoluta del input flotante */
    transform: none !important;
}

/* =========================================
   INTERACCIÓN Y MODAL DE MAPA (UX)
   ========================================= */

/* Efecto Clickable en la Ubicación */
.location-trigger {
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.location-trigger:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Brillo suave sobre el fondo oscuro */
    border-color: rgba(0, 153, 168, 0.3); /* Borde color Teal */
    transform: translateX(5px);
}

.view-map-text {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-top: 5px;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.location-trigger:hover .view-map-text {
    opacity: 1;
}

/* Modal Estilos */
.modal-map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fondo más oscuro para resaltar el mapa */
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-map.active {
    opacity: 1;
    visibility: visible;
}

.modal-map__content {
    background: white;
    width: 90%;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal-map.active .modal-map__content {
    transform: scale(1); /* Efecto pop */
}

.modal-map__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f1f1;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s, color 0.3s;
}

.modal-map__close:hover {
    background: var(--primary-color);
    color: white;
}

.modal-map__header {
    padding: 20px;
    text-align: center;
    background-color: var(--primary-light);
}

.modal-map__body {
    padding: 20px;
    background-color: white;
}

@media (max-width: 576px) {
    .modal-map__body {
        padding: 10px;
    }
    .modal-map__body iframe {
        height: 350px; /* Un poco más pequeño en celular */
    }
}

/* =========================================
   HERO VIDEO BANNER
   ========================================= */
.hero__video-banner {
    width: 100%;
    max-width: 800px; /* Aumentamos significativamente el tamaño máximo */
    margin: 0 auto 2rem auto; /* Centrado horizontalmente y con margen inferior */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 255, 255, 0.15);
    aspect-ratio: 16 / 9;
    background: #000;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video-container > div,
.hero-video-container iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none; /* Permite que la capa superior reciba los clicks */
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    cursor: pointer;
}

/* Oscurecer un poco si está pausado */
.hero-video-overlay.paused {
    background: rgba(0, 0, 0, 0.4);
}

.hero-control-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    pointer-events: auto; /* Reactivar clicks en el botón */
}

.hero-control-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.hero-control-btn.top-right {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5); /* Un poco más oscuro para que resalte */
}

.hero-control-btn.center-play {
    width: 70px;
    height: 70px;
    font-size: 26px;
    background: rgba(0, 153, 168, 0.8); /* Color Teal corporativo */
    border-color: rgba(255, 255, 255, 0.6);
    opacity: 0; /* Oculto mientras reproduce */
    transform: scale(0.8);
}

/* Mostrar botón Play solo cuando está pausado */
.hero-video-overlay.paused .hero-control-btn.center-play {
    opacity: 1;
    transform: scale(1);
}