/* ========== ESTILOS PRINCIPALES ========== */
:root {
    --primary: #d4788c;
    --primary-light: #e8a4b8;
    --primary-dark: #b85c74;
    --secondary: #7ba58b;
    --secondary-light: #9bc0ab;
    --brand-green-dark: #2f6b3f;
    --brand-ink: #171717;
    --brand-gold: #ffe6a3;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
    --gray-dark: #6b6b6b;
    --text-dark: #2c2c2c;
    --text-muted: #666666;
    --white: #ffffff;
    --black: #1a1a1a;
    --color-background-primary: #f8f3ee;
    --color-background-secondary: #fbf5ef;
    --color-border-tertiary: #dcd1ca;
    --color-text-primary: #1f1a16;
    --color-text-secondary: #5c5349;
    --color-text-tertiary: #7d7166;
    --border-radius-lg: 32px;
    --border-radius-md: 16px;
}

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


body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========== ANIMACIONES DE TRANSICIÓN (Desactivado para evitar conflictos con GSAP) ========== 
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}
*/

/* ========== SECCIONES FULL HEIGHT ========== */
.hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about {
    min-height: 100vh;
    padding: 80px 0;
    background: var(--white);
    display: flex;
    align-items: center;
}

.services {
    min-height: 100vh;
    padding: 80px 0;
    position: relative;
    background-image: url('../assets/images/charlas-corporativas.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
}

.services .container {
    position: relative;
    z-index: 2;
}

.services .section-title {
    color: var(--white);
}

.services .section-title:after {
    background: var(--white);
}

.why-us {
    min-height: 100vh;
    padding: 80px 0;
    background: linear-gradient(135deg, #faf5f7 0%, #f0e6ea 100%);
    display: flex;
    align-items: center;
}

.testimonials {
    min-height: 100vh;
    padding: 80px 0;
    background: linear-gradient(135deg, #faf5f7 0%, #f0e6ea 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.blog {
    min-height: 100vh;
    padding: 80px 0;
    background: linear-gradient(135deg, #faf5f7 0%, #f0e6ea 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Banner y footer NO tienen full height */
.banner-cita {
    padding: 80px 0;
    background: linear-gradient(135deg, #e78a9e 0%, #e8a4b8 50%, #f0c4d0 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer {
    background: var(--brand-ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

/* ========== NAVBAR ========== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 25px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.body-con-fondo {
    background: 
        linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.45)),
        url('https://images.unsplash.com/photo-1533090161767-e6ffed986c88?q=80&w=2000') no-repeat center center fixed;
    background-size: cover;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-link {
    color: inherit;
    text-decoration: none;
}

.logo-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.logo-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-text p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.navbar.scrolled .logo-text h1 {
    color: var(--primary);
    text-shadow: none;
}

.navbar.scrolled .logo-text p {
    color: var(--gray-dark);
}

.navbar.scrolled .logo-img {
    border-color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark);
    text-shadow: none;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.btn-cita {
    background: var(--white);
    color: var(--primary);
    padding: 10px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .btn-cita {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(212, 120, 140, 0.3);
}

.btn-cita:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.navbar.scrolled .btn-cita:hover {
    background: var(--primary-dark);
}

/* ========== HERO SECTION (ACTUALIZADO) ========== */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/dra-wandy-profile.jpeg') center 15%/cover no-repeat;
    animation: zoomBg 15s infinite alternate ease-in-out;
    transform-origin: center 15%;
    z-index: 0;
}

/* ========== BLUR ROSA HERO (CITA Y SERVICIOS) ========== */
.hero-pink-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/healthy-wellness.jpg') center/cover no-repeat;
    animation: zoomBg 15s infinite alternate ease-in-out;
    z-index: 0;
}

.hero-overlay-pink {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 120, 140, 0.75);
    /* Rosa translúcido */
    backdrop-filter: blur(8px);
    /* Desenfoque */
    z-index: 1;
}

@keyframes zoomBg {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay oscuro para que resalte el texto */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h5 {
    color: white;
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h1 span {
    color: var(--primary-light);
}

.hero:not(#inicio) .hero-content h1 span {
    color: var(--brand-gold);
    -webkit-text-stroke: 0.35px rgba(66, 38, 18, 0.45);
    text-shadow: 0 3px 8px rgba(55, 28, 18, 0.7);
}

.hero#inicio .hero-content h1 span {
    color: var(--brand-gold);
    -webkit-text-stroke: 0.35px rgba(66, 38, 18, 0.45);
    text-shadow: 0 3px 8px rgba(55, 28, 18, 0.7);
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 35px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.hero-content .btn-primary:hover {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.logo-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-text p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.navbar.scrolled .logo-text h1 {
    color: var(--primary);
    text-shadow: none;
}

.navbar.scrolled .logo-text p {
    color: var(--gray-dark);
}

.navbar.scrolled .logo-img {
    border-color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark);
    text-shadow: none;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.btn-cita {
    background: var(--white);
    color: var(--primary);
    padding: 10px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .btn-cita {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(212, 120, 140, 0.3);
}

.btn-cita:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.navbar.scrolled .btn-cita:hover {
    background: var(--primary-dark);
}

/* ========== HERO SECTION (ACTUALIZADO) ========== */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/dra-wandy-profile.jpeg') center 15%/cover no-repeat;
    animation: zoomBg 15s infinite alternate ease-in-out;
    transform-origin: center 15%;
    z-index: 0;
}

/* ========== BLUR ROSA HERO (CITA Y SERVICIOS) ========== */
.hero-pink-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/healthy-wellness.jpg') center/cover no-repeat;
    animation: zoomBg 15s infinite alternate ease-in-out;
    z-index: 0;
}

.hero-overlay-pink {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 120, 140, 0.75);
    /* Rosa translúcido */
    backdrop-filter: blur(8px);
    /* Desenfoque */
    z-index: 1;
}

@keyframes zoomBg {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay oscuro para que resalte el texto */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: min(100%, 1280px);
    flex: 0 1 1280px;
    display: flex;
    justify-content: center;
}

.hero-content {
    width: min(100%, 800px);
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}

.hero-content h5 {
    color: white;
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h1 span {
    color: var(--primary-light);
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

/* ========== BOTONES ========== */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    font-size: 0.85rem;
}

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

/* ========== ABOUT SECTION ========== */
.about {
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
    width: 100%;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 120, 140, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.profile-section {
    display: flex;
    gap: 0;
    min-height: 540px;
    background: linear-gradient(90deg, #fbf5f0 0%, #fff 100%);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(186, 148, 142, 0.14);
    overflow: hidden;
    margin: 0 auto;
    max-width: 1360px;
    box-shadow: 0 35px 80px rgba(30, 20, 24, 0.08);
}

.photo-side {
    flex: 0 0 42%;
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.photo-side:hover .photo-image {
    transform: scale(1.03);
}

.photo-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(22, 10, 23, 0.18) 100%);
    pointer-events: none;
}

.photo-overlay {
    position: absolute;
    bottom: 28px;
    left: 24px;
    right: auto;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
    border-radius: 26px;
    padding: 18px 18px 16px;
    z-index: 2;
}

.photo-tag {
    margin: 0;
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-dark);
    line-height: 1.5;
    font-weight: 700;
}

.accent-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--primary);
}

.info-side {
    flex: 1;
    padding: 3rem 3rem 3rem 2.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}

.info-top {
    display: grid;
    gap: 14px;
}

.eyebrow {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.name-block {
    border-left: 4px solid var(--primary);
    padding-left: 18px;
}

.doctor-name {
    font-size: 46px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 8px;
    letter-spacing: -0.6px;
}

.doctor-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.bio-text {
    font-size: 15px;
    color: #4a4540;
    line-height: 1.9;
    margin: 0;
    max-width: 680px;
}

.quote-card {
    background: rgba(230, 208, 202, 0.35);
    border-left: 4px solid var(--primary);
    padding: 18px 20px;
    border-radius: 22px;
    color: #3e3330;
    font-size: 0.98rem;
    line-height: 1.8;
    font-style: italic;
    max-width: 720px;
}

.specialties {
    display: grid;
    gap: 14px;
    margin-top: 4px;
}

.specialty-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    color: #4a4540;
    line-height: 1.8;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary);
    flex-shrink: 0;
    margin-top: 6px;
}

.credentials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.credentials .badge {
    font-size: 12px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #4a4540;
    border: 1px solid rgba(211, 182, 172, 0.45);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    width: fit-content;
    border: none;
    box-shadow: 0 18px 40px rgba(212, 120, 140, 0.24);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(212, 120, 140, 0.34);
}

.divider {
    height: 0.5px;
    background: var(--color-border-tertiary);
    width: 100%;
}

@media (max-width: 1024px) {
    .profile-section {
        flex-direction: column;
        min-height: auto;
    }

    .photo-side,
    .info-side {
        width: 100%;
    }

    .photo-side {
        min-height: 420px;
    }

    .info-side {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .info-side {
        padding: 1.5rem 1rem;
    }

    .doctor-name {
        font-size: 28px;
    }

    .bio-text,
    .specialty-item,
    .credentials .badge {
        font-size: 13px;
    }
}

.about-text {
    padding-left: 40px;
}

.about-image {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    min-height: 720px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.about-image-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.about-text .badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    border: 1px solid rgba(200, 200, 200, 0.55);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.about-text h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-text p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-muted);
    line-height: 1.75;
}

.about-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.about-list li {
    position: relative;
    padding-left: 26px;
    color: var(--text-dark);
    line-height: 1.7;
}

.about-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-size: 1.2rem;
    line-height: 1;
}

.about-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.about-cta-group .btn-primary,
.about-cta-group .btn-outline {
    min-width: 180px;
}

.about-highlight-card h4 {
    font-size: 1.7rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.about-highlight-card p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
}

.about-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.98rem;
}

.about-list li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    position: absolute;
    left: 0;
    top: 8px;
}

/* ========== SERVICES SECTION CON EFECTO PARALLAX ========== */
.services {
    min-height: 100vh;
    padding: 80px 0;
    position: relative;
    background-image: url('../assets/images/charlas-corporativas.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
}

.services .container {
    position: relative;
    z-index: 2;
}

.services .section-title {
    color: var(--white);
    margin-bottom: 20px;
}

.services .section-title:after {
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    position: relative;
}

.section-description {
    font-size: 1rem;
    max-width: 720px;
    margin: 0 auto 45px;
    color: rgba(44, 44, 44, 0.8);
    line-height: 1.8;
}

.services .section-description {
    color: rgba(255, 255, 255, 0.92);
}

.services-header,
.blog-header {
    max-width: 820px;
    margin: 0 auto 30px;
    text-align: center;
}

.services-header .small-title,
.blog-header .small-title {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.certifications {
    padding: 80px 0;
    background: #fff8f7;
}

.certifications .section-header {
    max-width: 560px;
    margin: 0 auto 40px;
    text-align: center;
}

.certifications-title {
    font-size: 3rem;
    letter-spacing: 0.2em;
    color: #d4788c;
    text-transform: uppercase;
    margin: 0;
    position: relative;
}

.certifications-title::after {
    content: '';
    display: block;
    width: 90px;
    height: 4px;
    margin: 20px auto 0;
    background: #d4788c;
    border-radius: 3px;
}

.certifications .swiper {
    padding-bottom: 10px;
}

.cert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(212, 120, 140, 0.18);
    border-radius: 26px;
    padding: 30px 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    min-height: 280px;
    text-align: center;
}

.cert-card img {
    width: 150px;
    height: 120px;
    object-fit: cover;
    border-radius: 18px;
}

.cert-logo {
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #d4788c;
    font-weight: 700;
    background: rgba(212, 120, 140, 0.08);
    border-radius: 24px;
}

.cert-card p {
    max-width: 220px;
    margin: 0;
    color: #5e5e5e;
    line-height: 1.6;
    font-size: 0.95rem;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .cert-card {
        min-height: auto;
        padding: 24px 20px;
    }

    .cert-card img,
    .cert-logo {
        width: 140px;
        height: 100px;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.service-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 45px 35px;
    border-radius: 32px;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.1);
    transition: all 0.35s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.16);
}

.service-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--primary);
    font-size: 1rem;
    transition: transform 0.3s ease;
    background: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
    line-height: normal;
    box-shadow: none;
}

.service-card:hover i {
    transform: translateY(-1px);
}

.service-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    font-weight: 700;
    border: 1px solid rgba(212, 120, 140, 0.16);
    box-shadow: 0 12px 28px rgba(212, 120, 140, 0.08);
    margin-bottom: 22px;
}

.service-card h3 {
    margin-bottom: 18px;
    font-size: 1.45rem;
    color: var(--text-dark);
}

.service-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
    min-height: 85px;
}

.service-card .btn-outline {
    transition: all 0.3s ease;
}

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

/* ========== SERVICIOS PAGE DETAILS ========== */
.servicios-detalle-page {
    /* Eliminamos el padding top bottom general para usar secciones separadas */
    background: #faf5f7;
    overflow: hidden;
}

.servicio-alt-row {
    padding: 80px 0;
    position: relative;
    background: var(--white);
}

.servicio-alt-row:nth-child(even) {
    background: #faf5f7;
}

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


.servicio-alt-row.reverse .row-image {
    order: 2;
}

.servicio-alt-row.reverse .row-text {
    order: 1;
}

/* Cambios en móvil para que siempre esté imagen arriba y texto abajo */
@media (max-width: 900px) {
    .servicio-alt-row .row-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .servicio-alt-row.reverse .row-image {
        order: 1;
    }

    .servicio-alt-row.reverse .row-text {
        order: 2;
    }
}

.row-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.row-image img.doctor-face {
    object-position: 50% 30%;
}

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

.row-text {
    position: relative;
    z-index: 2;
}

.row-text .servicio-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(212, 120, 140, 0.3);
}

.row-text h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.row-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.servicios-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.servicio-detalle {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.servicio-detalle:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 120, 140, 0.2);
}

.servicio-detalle .servicio-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    color: var(--white);
    font-size: 2rem;
    transition: transform 0.5s ease;
}

.servicio-detalle:hover .servicio-icon {
    transform: scale(1.1) rotate(5deg);
}

.servicio-detalle h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.servicio-detalle p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* ========== CONFERENCIAS SECTION ========== */
.conf-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
    transition: all 0.4s ease;
}

.conf-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(212, 120, 140, 0.25);
}

.conf-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.conf-card:hover img {
    transform: scale(1.1);
}

/* ========== WHY US SECTION ========== */
.why-us {
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 80%;
    height: 160%;
    background: radial-gradient(circle, rgba(212, 120, 140, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 30px;
}

.feature {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 28px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(212, 120, 140, 0.2);
}

.feature i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.feature:hover i {
    transform: scale(1.1);
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========== BANNER PROGRAMA TU CITA ========== */
.banner-cita {
    background: linear-gradient(135deg, #e78a9e 0%, #e8a4b8 50%, #f0c4d0 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-cita::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.banner-cita::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.banner-cita .container {
    position: relative;
    z-index: 2;
}

.banner-cita h2 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.banner-cita p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.banner-cita .btn-banner {
    background: var(--white);
    color: var(--primary);
    padding: 15px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.banner-cita .btn-banner:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ========== TESTIMONIALS & BLOGS ========== */
.testimonials {
    padding: 100px 0;
    text-align: center;
    background: #f8f4ef;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -18%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(123, 165, 139, 0.45));
    filter: blur(60px);
    opacity: 0.7;
    animation: floatSlow 20s ease-in-out infinite;
    pointer-events: none;
}

.testimonials::after {
    content: '';
    position: absolute;
    bottom: -22%;
    right: -12%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(212, 120, 140, 0.16), rgba(212, 120, 140, 0));
    filter: blur(45px);
    opacity: 0.55;
    animation: floatSlowReverse 24s ease-in-out infinite;
    pointer-events: none;
}

.testimonials > .container {
    position: relative;
    z-index: 1;
}

.testimonials .section-title {
    color: #d4788c;
    text-shadow: none;
}

.testimonials .section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    margin: 18px auto 0;
    background: #d4788c;
    border-radius: 3px;
}

@keyframes floatSlow {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(0, 18px);
    }
}

@keyframes floatSlowReverse {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-12px, -20px);
    }
}

.testimonials-subtitle {
    color: #555;
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 40px;
    text-shadow: none;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}



.testimonials .section-title {
    color: var(--primary);
    text-shadow: none;
}

.testimonials-subtitle {
    color: #555;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 50px;
    text-shadow: none;
}

.testimonial-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.testimonial-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0 30px;
    scroll-snap-type: x mandatory;
}

.testimonial-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #fef8f9 100%);
    padding: 28px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(212, 120, 140, 0.12);
    border: 1px solid rgba(212, 120, 140, 0.15);
}

/* Desktop */
@media (min-width: 1025px) {
    .testimonial-card {
        width: calc(33.333% - 17px);
        min-width: calc(33.333% - 17px);
    }

    .testimonial-carousel-container {
        padding: 0 40px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .testimonial-card {
        width: calc(50% - 13px);
        min-width: calc(50% - 13px);
        padding: 22px;
    }

    .testimonial-card p {
        font-size: 0.9rem;
    }

    .testimonial-carousel-container {
        padding: 0 30px;
    }
}

/* Móvil */
@media (max-width: 768px) {
    .testimonial-card {
        width: 280px;
        min-width: 280px;
        max-width: 300px;
        padding: 18px;
    }

    .testimonial-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .testimonial-stars i {
        font-size: 0.8rem;
    }

    .testimonial-card .quote-icon {
        font-size: 2.5rem;
        top: 10px;
        right: 12px;
    }

    .testimonial-author {
        font-size: 0.9rem;
    }

    .testimonial-role {
        font-size: 0.7rem;
        margin-left: 22px;
    }

    .testimonial-carousel-container {
        padding: 0 15px;
    }
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 120, 140, 0.15) 0%, transparent 75%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(212, 120, 140, 0.25);
    border-color: var(--primary-light);
}

.testimonial-card .quote-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.3;
    font-family: serif;
    pointer-events: none;
}

.testimonial-stars {
    margin-bottom: 18px;
}

.testimonial-stars i {
    color: #ffc107;
    font-size: 1rem;
    margin-right: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.testimonial-card p {
    color: var(--text-dark);
    line-height: 1.65;
    margin-bottom: 22px;
    font-style: normal;
    font-weight: 400;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonial-author i {
    font-size: 1rem;
    color: var(--primary-light);
}

.testimonial-role {
    font-size: 0.75rem;
    color: var(--gray-dark);
    display: block;
    margin-top: 5px;
    margin-left: 26px;
}

/* Flechas Testimonios - Desktop */
@media (min-width: 769px) {
    .carousel-btn-testi {
        position: absolute;
        top: 45%;
        transform: translateY(-50%);
        background: var(--primary);
        color: white;
        border: none;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10;
        box-shadow: 0 4px 15px rgba(212, 120, 140, 0.3);
    }

    .carousel-btn-testi.prev-testi {
        left: -10px;
    }

    .carousel-btn-testi.next-testi {
        right: -10px;
    }
}

/* Flechas Testimonios - Móvil */
@media (max-width: 768px) {
    .carousel-btn-testi {
        position: absolute;
        top: 45%;
        transform: translateY(-50%);
        background: var(--primary);
        color: white;
        border: none;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .carousel-btn-testi.prev-testi {
        left: 5px;
    }

    .carousel-btn-testi.next-testi {
        right: 5px;
    }
}

.carousel-btn-testi:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 120, 140, 0.4);
}

/* ========== BLOG SECTION ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.blog-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.blog-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0 30px;
    scroll-snap-type: x mandatory;
}

.blog-carousel::-webkit-scrollbar {
    display: none;
}

.blog-card {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    scroll-snap-align: start;
    border: 1px solid rgba(212, 120, 140, 0.12);
}

/* Desktop */
@media (min-width: 1025px) {
    .blog-card {
        width: calc(33.333% - 17px);
        min-width: calc(33.333% - 17px);
    }

    .blog-carousel-container {
        padding: 0 40px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .blog-card {
        width: calc(50% - 13px);
        min-width: calc(50% - 13px);
    }

    .blog-carousel-container {
        padding: 0 30px;
    }
}

/* Móvil */
@media (max-width: 768px) {
    .blog-card {
        width: 270px;
        min-width: 270px;
        max-width: 290px;
    }

    .blog-img {
        height: 150px;
    }

    .blog-content {
        padding: 15px;
    }

    .blog-content h3 {
        font-size: 0.9rem;
    }

    .blog-content p {
        font-size: 0.75rem;
    }

    .blog-carousel-container {
        padding: 0 15px;
    }
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(212, 120, 140, 0.25);
}

.blog-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-content {
    padding: 28px;
}

.blog-tag {
    display: inline-block;
    background: rgba(212, 120, 140, 0.12);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-dark);
    line-height: 1.4;
}

.blog-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.75;
}

.blog-content .btn-outline {
    padding: 10px 18px;
    font-size: 0.85rem;
    border-width: 2px;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.15);
}

.blog-card .blog-img {
    position: relative;
}

.blog-card .blog-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.16) 100%);
    opacity: 0.35;
}

.blog-content {
    background: transparent;
}

/* Flechas Blog - Desktop */
@media (min-width: 769px) {
    .carousel-btn {
        position: absolute;
        top: 45%;
        transform: translateY(-50%);
        background: var(--primary);
        color: white;
        border: none;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10;
        box-shadow: 0 4px 15px rgba(212, 120, 140, 0.3);
    }

    .carousel-btn.prev {
        left: -10px;
    }

    .carousel-btn.next {
        right: -10px;
    }
}

/* Flechas Blog - Móvil */
@media (max-width: 768px) {
    .carousel-btn {
        position: absolute;
        top: 45%;
        transform: translateY(-50%);
        background: var(--primary);
        color: white;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }
}

.carousel-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 120, 140, 0.4);
}

/* ========== CONSULTORIOS ========== */
.consultorios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin: 50px 0;
}

.consultorio-card {
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.consultorio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(212, 120, 140, 0.2);
}

.consultorio-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.consultorio-card:hover .consultorio-img {
    transform: scale(1.03);
}

.consultorio-info {
    padding: 28px;
}

.consultorio-info h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.consultorio-info p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.consultorio-info .horario {
    background: var(--gray-light);
    padding: 12px 18px;
    border-radius: 20px;
    margin: 18px 0;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.consultorio-card:hover .horario {
    background: var(--primary-light);
}

/* ========== FORMULARIO ========== */
.form-card {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(212, 120, 140, 0.1);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid #f0e6e8;
    background: #fdfafb;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(212, 120, 140, 0.15);
}

.form-card .btn-primary {
    font-size: 1.1rem;
    padding: 18px;
    border-radius: 12px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(212, 120, 140, 0.3);
}

.form-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 120, 140, 0.4);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--brand-ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.footer-logo-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.footer-logo-text h3 {
    font-size: 1.3rem;
    color: var(--primary-light);
    margin-bottom: 0;
}

.footer-logo-text p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-about p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 15px;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--white);
    letter-spacing: 1px;
    position: relative;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(6px);
}

.footer-contact p {
    margin-bottom: 14px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    width: 25px;
    color: var(--primary-light);
    font-size: 0.9rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 4px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    cursor: pointer;
}

.consent-check input {
    accent-color: var(--primary);
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.consent-check a,
.legal-section a {
    color: var(--primary-dark);
    font-weight: 700;
}

.legal-page {
    min-height: 100vh;
    padding: 60px 0;
    background: linear-gradient(135deg, #fff 0%, #faf5f7 100%);
}

.legal-container {
    max-width: 860px;
    background: var(--white);
    border-top: 5px solid var(--primary);
    border-radius: 20px;
    padding: 42px clamp(24px, 5vw, 70px);
    box-shadow: 0 24px 60px rgba(30, 20, 24, 0.1);
}

.legal-back {
    display: inline-block;
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 28px;
}

.legal-logo {
    display: block;
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 22px;
    border: 2px solid var(--primary-light);
}

.legal-container h1 {
    color: var(--brand-ink);
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 8px;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 42px;
}

.legal-section {
    border-top: 1px solid rgba(212, 120, 140, 0.18);
    padding: 24px 0;
}

.legal-section h2 {
    color: var(--primary-dark);
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.legal-section p {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.legacy-payment-simulation {
    display: none !important;
}

.real-payment-card {
    display: block;
}

.payment-security-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.payment-security-note i {
    color: var(--secondary);
    margin-top: 3px;
}

.payment-provider-status {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
    margin-top: 18px;
}

/* ========== MENÚ HAMBURGUESA PARA MÓVIL ========== */
.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.navbar.scrolled .menu-btn span {
    background: var(--primary);
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

.nav-links-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 40px 30px 30px;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinear elementos del menú a la derecha */
    gap: 20px;
    list-style: none;
    text-align: right;
}

.nav-links-mobile.active {
    right: 0;
}

/* Encabezado del menú móvil */
.menu-mobile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    text-align: right;
    width: 100%;
    margin-bottom: 5px;
}

.menu-mobile-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid rgba(212, 120, 140, 0.15);
    background: #fff;
    padding: 2px;
}

.menu-mobile-title {
    display: flex;
    flex-direction: column;
}

.menu-mobile-title h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
    margin: 0;
    line-height: 1.2;
}

.menu-mobile-title p {
    font-size: 0.58rem;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin: 3px 0 0;
    text-transform: uppercase;
}

.menu-mobile-divider {
    border: none;
    border-top: 1px solid var(--gray);
    width: 100%;
    margin: 0 0 10px 0;
}

.nav-links-mobile li {
    width: 100%;
    text-align: right;
}

.nav-links-mobile li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
    display: block;
    padding: 10px 0;
    text-align: right;
}

.nav-links-mobile li a:hover {
    color: var(--primary);
}

.nav-links-mobile .btn-cita-mobile {
    background: var(--primary);
    color: var(--white) !important;
    text-align: center;
    padding: 12px 24px;
    border-radius: 40px;
    margin-top: 15px;
    display: inline-block; /* Se comporta según la alineación derecha */
    width: auto;
}

.nav-links-mobile .btn-cita-mobile:hover {
    background: var(--primary-dark);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* ========== SCROLL SMOOTH ========== */
html {
    scroll-behavior: smooth;
}

/* ========== BOTÓN VER MÁS ========== */
.btn-ver-mas {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 14px 38px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.btn-ver-mas:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.mt-5 {
    margin-top: 50px;
}

/* ========== MEDIA QUERIES ========== */

/* Tablet (landscape) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .consultorios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .btn-cita {
        display: none;
    }
}

/* Móvil */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 20px;
    }

    /* NAVBAR */
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .btn-cita {
        display: none;
    }

    .nav-container {
        padding: 0 20px;
    }

    /* HERO */
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero:not(#inicio) {
        min-height: 520px;
        padding: 0;
    }

    .hero:not(#inicio) > .container {
        padding: 88px 24px 34px;
    }

    .hero:not(#inicio) > .container > .hero-content {
        max-width: 620px;
    }

    .hero:not(#inicio) .hero-content h5 {
        margin-bottom: 14px;
        font-size: 0.72rem;
        letter-spacing: 2px;
    }

    .hero:not(#inicio) .hero-content h1 {
        max-width: 100%;
        margin-bottom: 16px;
        font-size: clamp(2.1rem, 9vw, 3rem);
        line-height: 1.08;
    }

    .hero:not(#inicio) .hero-content p {
        max-width: 34rem;
        margin: 0 auto;
        font-size: 0.98rem;
        line-height: 1.5;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero-image img {
        max-width: 280px;
        margin: 0 auto;
    }

    /* ABOUT */
    .about {
        padding: 60px 0;
        min-height: auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .about-image::before {
        display: none;
    }

    /* SERVICES */
    .services {
        padding: 60px 0;
        min-height: auto;
        background-attachment: scroll;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-card i {
        font-size: 2.5rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    /* WHY US */
    .why-us {
        padding: 60px 0;
        min-height: auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature {
        padding: 25px 20px;
    }

    .feature i {
        font-size: 2.5rem;
    }

    .feature h3 {
        font-size: 1.2rem;
    }

    /* BANNER */
    .banner-cita {
        padding: 50px 0;
    }

    .banner-cita h2 {
        font-size: 1.6rem;
    }

    .banner-cita p {
        font-size: 0.85rem;
        padding: 0 15px;
    }

    .banner-cita .btn-banner {
        padding: 12px 30px;
        font-size: 0.85rem;
    }

    /* CONSULTORIOS */
    .consultorios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .consultorio-img {
        height: 170px;
    }

    .consultorio-info {
        padding: 18px;
    }

    .consultorio-info h3 {
        font-size: 1.2rem;
    }

    .consultorio-info p {
        font-size: 0.85rem;
    }

    /* FORMULARIO */
    .form-card {
        padding: 20px 15px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    /* FOOTER */
    .footer {
        padding: 50px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    /* TÍTULOS GENERALES */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }

    .section-title:after {
        width: 50px;
        height: 2px;
    }

    /* BOTONES */
    .btn-primary {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-card i {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .feature {
        padding: 20px 15px;
    }

    .feature i {
        font-size: 2rem;
    }

    .banner-cita h2 {
        font-size: 1.4rem;
    }

    .form-card {
        padding: 20px 15px;
    }
}

/* Styles from cita.html */
.cita-header {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
}

.cita-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(212, 120, 140, 0.08) 0%, rgba(212, 120, 140, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.cita-header .container {
    position: relative;
    z-index: 2;
}

.cita-header h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
}

.cita-header p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.cita-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 0;
}

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

    .cita-header h1 {
        font-size: 2rem;
    }

    .cita-header {
        padding: 120px 0 40px;
    }
}

.consultorio-mini-card {
    background: var(--gray-light);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    transition: background 0.3s ease;
    border: 1px solid rgba(212, 120, 140, 0.1);
}

.consultorio-mini-card:hover {
    background: var(--white);
}

.consultorio-mini-card h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.consultorio-mini-card p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.consultorio-mini-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s;
}

.consultorio-mini-card a:hover {
    color: var(--primary-dark);
}

.contacto-info {
    margin-top: 50px;
    padding: 42px 24px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f9eef2 100%);
    border-radius: 32px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 120, 140, 0.18);
}

.contacto-info h4 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #1e2022; /* Color de letra cambiado a un tono oscuro elegante */
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.contacto-info h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
}

.contacto-info .contacto-subtitle {
    margin: 16px auto 0;
    max-width: 680px;
    color: #4f4f4f;
    font-size: 1rem;
    line-height: 1.7;
}

.contacto-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 10px;
}

/* Elegantes botones de icono para contacto directo */
.contacto-icons-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 25px;
}

.contacto-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: #ffffff;
    border: 1px solid rgba(212, 120, 140, 0.15);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.6rem;
    box-shadow: 0 8px 25px rgba(212, 120, 140, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
}

.contacto-icon-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 15px 30px rgba(212, 120, 140, 0.3);
    border-color: var(--primary);
}

.contacto-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #ffffff;
    border: 1px solid rgba(212, 120, 140, 0.15);
    border-radius: 18px;
    padding: 22px 24px;
    text-decoration: none;
    color: #1e2022; /* Color de letra por defecto elegante */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    min-height: 110px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.contacto-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contacto-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.contacto-text span {
    font-size: 0.8rem;
    color: #6b6b6b; /* Muted slate gray */
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.contacto-text strong {
    font-size: 1.05rem;
    color: #1e2022; /* Color de letra cambiado a un tono oscuro elegante */
    transition: color 0.3s ease;
    word-break: break-all;
}

/* WhatsApp Card Specific Styles */
.contacto-card:nth-child(1) .contacto-icon-wrapper {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}
.contacto-card:nth-child(1):hover {
    border-color: rgba(37, 211, 102, 0.4);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.15);
    transform: translateY(-5px);
}
.contacto-card:nth-child(1):hover strong {
    color: #25d366;
}
.contacto-card:nth-child(1):hover .contacto-icon-wrapper {
    background: #25d366;
    color: var(--white);
}

/* Email Card Specific Styles */
.contacto-card:nth-child(2) .contacto-icon-wrapper {
    background: rgba(212, 120, 140, 0.1);
    color: var(--primary);
}
.contacto-card:nth-child(2):hover {
    border-color: rgba(212, 120, 140, 0.4);
    box-shadow: 0 12px 30px rgba(212, 120, 140, 0.15);
    transform: translateY(-5px);
}
.contacto-card:nth-child(2):hover strong {
    color: var(--primary);
}
.contacto-card:nth-child(2):hover .contacto-icon-wrapper {
    background: var(--primary);
    color: var(--white);
}

/* Instagram Card Specific Styles */
.contacto-card:nth-child(3) .contacto-icon-wrapper {
    background: rgba(225, 48, 108, 0.1);
    color: #e1306c;
}
.contacto-card:nth-child(3):hover {
    border-color: rgba(225, 48, 108, 0.4);
    box-shadow: 0 12px 30px rgba(225, 48, 108, 0.15);
    transform: translateY(-5px);
}
.contacto-card:nth-child(3):hover strong {
    color: #e1306c;
}
.contacto-card:nth-child(3):hover .contacto-icon-wrapper {
    background: #e1306c;
    color: var(--white);
}

/* Responsive Rules for Contacto Cards */
@media (max-width: 992px) {
    .contacto-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contacto-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contacto-card {
        padding: 16px 20px;
    }
}

.hero-content p.hero-quote {
    margin-bottom: 10px;
    font-size: 1.22rem;
    font-weight: 500;
}

.hero-content p.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-top: 6px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.98);
}

.consultorio-mini-card img.doctor-face {
    object-position: 50% 22%;
}


/* ========================================= */
/* FIXES DE RESPONSIVE - AÑADIDOS AL FINAL   */
/* ========================================= */

html,
body {
    overflow-x: hidden;
    width: 100%;
}

* {
    max-width: 100vw;
}

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

/* Tablet (hasta 1024px) */
@media (max-width: 1024px) {

    /* Mantenemos 2 columnas solo para los grids fijos, no carruseles */
    .services-grid,
    .features-grid,
    .consultorios-grid,
    .cita-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

/* Móvil (hasta 768px) */
@media (max-width: 768px) {

    /* 1 columna solo para grids estáticos */
    .services-grid,
    .features-grid,
    .consultorios-grid,
    .cita-grid {
        grid-template-columns: 1fr !important;
    }

    /* NO TOCAMOS EL ANCHO DE LAS TARJETAS (testimonial/blog) PARA QUE FUNCIONE EL SCROLL/CARRUSEL ORIGINAL */

    /* Solo ajustamos el contenedor del carrusel para que no empuje el viewport hacia la derecha */
    .testiSwiper,
    .blogSwiper {
        padding: 0 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }

    /* Evitar que estas flechas se salgan de la pantalla */
    .carousel-btn-testi.prev-testi,
    .carousel-btn.prev {
        left: 0px !important;
    }

    .carousel-btn-testi.next-testi,
    .carousel-btn.next {
        right: 0px !important;
    }

    /* Evitar desbordes de otras áreas estáticas */
    .about-image img,
    .hero-image img,
    .consultorio-card,
    .form-card,
    .servicio-detalle {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ========================================= */
/* SWIPER CAROUSEL CUSTOMIZATIONS            */
/* ========================================= */

.swiper-container-custom {
    padding-bottom: 50px !important;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 auto;
    width: 100%;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary) !important;
}

.swiper-pagination-bullet {
    background: var(--text-muted) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.swiper-slide>div {
    width: 100%;
}

/* ========================================= */
/* HOVER EFFECTS FOR TESTIMONIALS (FADE)     */
/* ========================================= */

[class*=" imghvr-"],
[class^="imghvr-"] {
    position: relative;
    display: inline-block;
    margin: 0;
    max-width: 100%;
    background-color: var(--white);
    color: var(--text-color);
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[class*=" imghvr-"] img,
[class^="imghvr-"] img {
    vertical-align: top;
    max-width: 100%;
    border-radius: 20px;
    object-fit: cover;
    height: 350px;
    width: 100%;
}

[class*=" imghvr-"] figcaption,
[class^="imghvr-"] figcaption {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

[class*=" imghvr-"],
[class*=" imghvr-"] *,
[class*=" imghvr-"] :after,
[class*=" imghvr-"] :before,
[class^="imghvr-"],
[class^="imghvr-"] * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

/* EL EFECTO FADE ESPECÍFICO */
.imghvr-fade figcaption,
.imghvr-fade:hover img {
    opacity: 0;
}

.imghvr-fade:hover figcaption {
    opacity: 1;
}

/* Para en moviles permitir el click/tap facilmente */
@media (max-width: 768px) {
    .imghvr-fade figcaption {
        background-color: rgba(255, 255, 255, 0.85);
        /* Un poco mas visible para dar la idea */
    }
}

/* ========== VIDEO BACKGROUNDS & WIX STUDIO EFFECTS ========== */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center center;
    transition: transform 0.1s ease-out; /* Smooth transition for scale */
    will-change: transform;
}

@media (max-width: 768px) {
    .video-container {
        min-height: 100%;
    }

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

/* Overlays con Blur Dinámico y Glassmorphism */
.hero-overlay-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 29, 0.55); /* Tono oscuro elegante */
    backdrop-filter: blur(10px);
    transition: backdrop-filter 0.3s ease, background-color 0.3s ease;
    z-index: 1;
    will-change: backdrop-filter;
}

.services-overlay-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 29, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1;
    transition: backdrop-filter 0.3s ease;
    will-change: backdrop-filter;
}

.banner-overlay-pink {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 120, 140, 0.65) 0%, rgba(184, 92, 116, 0.72) 100%);
    backdrop-filter: blur(4px);
    z-index: 1;
    transition: backdrop-filter 0.3s ease;
    will-change: backdrop-filter;
}

/* Ajustes de Sección para Video */
.hero, .services, .banner-cita {
    position: relative;
    overflow: hidden;
}

.hero .container, .services .container, .banner-cita .container {
    position: relative;
    z-index: 2;
}

/* La portada usa video a pantalla completa: su contenido debe centrarse en el viewport. */
#inicio > .container {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    max-width: none;
    display: grid;
    place-items: center;
}

#inicio > .container > .hero-content {
    width: min(100%, 800px);
    margin: 0 auto;
    text-align: center;
}

.page-header-servicios > .container {
    position: absolute !important;
    inset: 0;
    z-index: 2 !important;
    width: 100%;
    max-width: none;
    display: grid;
    place-items: center;
}

.page-header-servicios > .container > .hero-content {
    width: min(100%, 800px);
    margin: 0 auto !important;
    text-align: center;
}

.hero:not(#inicio):not(.page-header-servicios) > .container {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    max-width: none;
    display: grid;
    place-items: center;
}

.hero:not(#inicio):not(.page-header-servicios) > .container > .hero-content {
    width: min(100%, 800px);
    margin: 0 auto;
    text-align: center;
}

/* CTA Group layouts */
.about-cta-group, .banner-cta-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.collaborate-cta {
    display: flex;
    justify-content: center;
    margin: -12px auto 42px;
}

.btn-collaborate {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 280px;
    justify-content: center;
    padding: 16px 30px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background: linear-gradient(135deg, #b85c74 0%, #d4788c 55%, #e8a4b8 100%);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(184, 92, 116, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.btn-collaborate span {
    font-size: 1.2rem;
    line-height: 1;
}

.btn-collaborate:hover {
    color: var(--white);
    filter: saturate(1.1) brightness(1.04);
    transform: translateY(-3px);
    box-shadow: 0 17px 34px rgba(184, 92, 116, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

@media (max-width: 768px) {
    .about-cta-group, .banner-cta-group, .collaborate-cta {
        justify-content: center;
    }
}

/* Botones Adicionales */
.btn-banner-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 15px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.btn-banner-outline:hover {
    background: var(--white);
    color: var(--primary-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Estilo premium para las tarjetas de servicios y blogs */
.service-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(212, 120, 140, 0.4) !important;
}

.feature {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.feature:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(212, 120, 140, 0.25);
}

/* ========== SCROLL REVEAL SYSTEM WITH GSAP ========== */
/* Pre-reveal states (only active when JS is enabled and element is not yet revealed) */
html.js-enabled .reveal-on-scroll:not(.revealed) {
    opacity: 0;
    transform: translateY(35px);
    transition: none !important; /* Disable CSS transition to let GSAP handle the tween smoothly */
    will-change: opacity, transform;
}

/* Helpers for custom directions and scales (only active before reveal) */
html.js-enabled .reveal-on-scroll.reveal-left:not(.revealed) {
    transform: translateX(-40px) translateY(0);
}

html.js-enabled .reveal-on-scroll.reveal-right:not(.revealed) {
    transform: translateX(40px) translateY(0);
}

html.js-enabled .reveal-on-scroll.reveal-scale:not(.revealed) {
    transform: scale(0.95) translateY(0);
}

/* ========== GLOW BLOBS INTERACTIVOS EN TESTIMONIOS (WIX STUDIO STYLE) ========== */
.testi-interactive-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.testi-glow-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    will-change: left, top, opacity;
}

#testiGlowBlob1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(212, 120, 140, 0.38) 0%, rgba(212, 120, 140, 0.08) 50%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    opacity: 0.4;
    transition: opacity 0.5s ease;
    left: 50%;
    top: 50%;
}

#testiGlowBlob2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 180, 248, 0.32) 0%, rgba(138, 180, 248, 0.06) 50%, rgba(0, 0, 0, 0) 70%);
    filter: blur(85px);
    opacity: 0.5;
    transition: opacity 0.5s ease;
    left: 50%;
    top: 50%;
}

.testimonials {
    background: #0d0d14 !important; /* Fondo ultra oscuro premium */
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.testimonials .section-title {
    color: #ffffff !important;
}

.testimonials-subtitle {
    color: #a0a0b8 !important;
}

/* Tarjetas de testimonios más premium con dark glassmorphism */
.testimonial-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(212, 120, 140, 0.35) !important;
}

.testimonial-card p {
    color: #e2e2ec !important;
    text-align: justify !important;
    text-justify: inter-word !important;
}

.testimonial-author {
    color: #ff99ad !important; /* Rosa más pastel/visible en fondo oscuro */
}

.testimonial-role {
    color: #9898a8 !important;
}

.testimonial-card .quote-icon {
    color: rgba(255, 255, 255, 0.06) !important;
}

/* Ajustes de Swiper para que resalte en oscuro */
.testimonials .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.25) !important;
}

.testimonials .swiper-pagination-bullet-active {
    background: #ff99ad !important;
}

.testimonials .swiper-button-next,
.testimonials .swiper-button-prev {
    color: #ff99ad !important;
}

/* Asegurar que el contenido de la tarjeta esté sobre el spotlight */
.testimonial-card * {
    position: relative;
    z-index: 2;
}

/* ======================================================= */
/* AJUSTES ADICIONALES DE RESPONSIVIDAD Y TIPOGRAFÍA       */
/* ======================================================= */

/* Contenedor y Grid de Contacto (contacto.html) */
.contacto-container {
    max-width: 1100px;
    margin: 50px auto;
    padding: 50px 30px;
    background: #fdfafb;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(212, 120, 140, 0.08);
}

.consultorios-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .contacto-container {
        margin: 30px 15px;
        padding: 35px 20px;
        border-radius: 16px;
    }
    .consultorios-grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* ALTURA DEL HERO PARA TELEFONO Y TABLETA (ocupa la pantalla) */
    .hero {
        min-height: 100vh !important;
        min-height: 100dvh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 120px 0 60px !important;
    }

    /* AJUSTE DE CERTIFICACIONES PARA TELEFONO */
    .certifications-title {
        font-size: 1.8rem !important;
        letter-spacing: 0.12em !important;
    }
    .certifications .swiper-container-custom {
        padding-bottom: 60px !important;
    }

    /* Ajustar tamaño de textos del Hero en contacto.html y registro.html */
    .hero-content p.hero-quote {
        font-size: 1.05rem !important;
        line-height: 1.6;
    }
    .hero-content p.hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
        line-height: 1.5;
    }
    
    /* Botones que deben ajustarse en tableta/móvil */
    .btn-banner-outline {
        padding: 12px 30px;
        font-size: 0.85rem;
    }

    /* Evitar desbordes de subtítulos en tabletas */
    .testimonials-subtitle,
    .section-description {
        max-width: 100% !important;
        padding: 0 20px !important;
        font-size: 0.95rem !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    /* Logo adaptable para que no empuje el menú hamburguesa */
    .logo-img {
        width: 42px !important;
        height: 42px !important;
    }
    .logo-text h1 {
        font-size: 1.05rem !important;
    }
    .logo-text p {
        font-size: 0.58rem !important;
        letter-spacing: 0.5px !important;
    }

    /* Párrafos del Hero en móviles pequeños */
    .hero-content p.hero-quote {
        font-size: 0.95rem !important;
    }
    .hero-content p.hero-subtitle {
        font-size: 0.85rem !important;
    }

    /* Título de Certificaciones en móviles pequeños */
    .certifications-title {
        font-size: 1.4rem !important;
        letter-spacing: 0.06em !important;
    }

    /* Cita en Sobre Mí */
    .quote-card {
        font-size: 0.88rem !important;
        padding: 15px !important;
        line-height: 1.6 !important;
    }

    /* Ajustar el botón 'Ver Más' y otros botones grandes */
    .btn-ver-mas {
        padding: 10px 24px !important;
        font-size: 0.85rem !important;
        margin-top: 20px !important;
    }

    /* Evitar que se corte el texto de enlaces y textos largos */
    .contacto-text strong {
        font-size: 0.95rem !important;
    }

    /* Ajustar el padding de las tarjetas de consultorios */
    .consultorio-mini-card {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    /* Evitar desbordes de subtítulos en celulares pequeños */
    .testimonials-subtitle,
    .section-description {
        max-width: 100% !important;
        padding: 0 15px !important;
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
        margin-bottom: 30px !important;
        box-sizing: border-box !important;
    }

    /* Ocultar las flechas de navegación del Swiper en pantallas táctiles para ganar espacio y evitar desbordes */
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }

    /* Hacer tarjetas de testimonios y blogs más anchas y proporcionadas (menos altura) */
    .testimonial-card {
        width: 300px !important;
        min-width: 300px !important;
        max-width: 86vw !important;
        padding: 18px !important;
    }
    
    .testimonial-card p {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
        margin-bottom: 8px !important;
    }

    .blog-card {
        width: 300px !important;
        min-width: 300px !important;
        max-width: 86vw !important;
    }

    .blog-img {
        height: 110px !important; /* Imagen más baja para reducir la altura total */
    }

    .blog-content {
        padding: 14px 16px !important;
    }

    .blog-content h3 {
        font-size: 0.92rem !important;
        margin-bottom: 8px !important;
        line-height: 1.35 !important;
    }

    .blog-content p {
        font-size: 0.78rem !important;
        line-height: 1.45 !important;
        margin-bottom: 12px !important;
    }
}

.testimonials .container,
.blog .container {
    width: 100%;
}

/* ========== SELECTOR DE IDIOMAS ========== */
.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
}
.lang-selector i {
    color: var(--white);
    font-size: 0.95rem;
    transition: color 0.3s;
}
.navbar.scrolled .lang-selector i {
    color: var(--primary);
}
.lang-btn {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    padding: 2px 6px;
    border-radius: 4px;
}
.navbar.scrolled .lang-btn {
    color: var(--text-muted);
}
.lang-btn:hover, .lang-btn.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}
.navbar.scrolled .lang-btn.active {
    color: var(--white);
    background: var(--primary);
}
.navbar.scrolled .lang-btn:hover {
    color: var(--primary-dark);
}
.lang-separator {
    color: rgba(255, 255, 255, 0.4);
}
.navbar.scrolled .lang-separator {
    color: var(--gray);
}
.lang-selector-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    margin-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.08);
    list-style: none;
}
.lang-selector-mobile a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}
.lang-selector-mobile a.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ========== TARJETAS DE CONTACTO REDISEÑADAS ========== */
.contacto-grid-visual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 50px;
}
.contacto-card-visual {
    background: var(--white);
    border: 1px solid rgba(212, 120, 140, 0.15);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(212, 120, 140, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 340px;
}
.contacto-card-visual:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(212, 120, 140, 0.15);
    border-color: var(--primary-light);
}
.contacto-card-visual .card-icon-container {
    width: 75px;
    height: 75px;
    background: #fdf5f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}
.contacto-card-visual:hover .card-icon-container {
    background: var(--primary);
    transform: scale(1.1) rotate(5deg);
}
.contacto-card-visual .card-icon-container i {
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.4s ease;
}
.contacto-card-visual:hover .card-icon-container i {
    color: var(--white);
}
.contacto-card-visual h4 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}
.contacto-card-visual p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}
.contacto-card-visual .card-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
    word-break: break-all;
}
.contacto-card-visual .btn-card-action {
    width: 100%;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* ========== FAQ CHATBOT FLOTANTE ========== */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'DM Sans', sans-serif;
}
.chatbot-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 10px 30px rgba(212, 120, 140, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--white);
    font-size: 1.5rem;
    position: relative;
}
.chatbot-bubble:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-dark);
}
.chatbot-bubble .badge-notify {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: bounceNotify 2.5s infinite;
}
@keyframes bounceNotify {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.chatbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    height: 480px;
    max-height: calc(100vh - 140px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}
.chatbot-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.chatbot-header {
    background: var(--primary);
    color: var(--white);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(212, 120, 140, 0.12);
}
.chatbot-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}
.chatbot-info-text h4 {
    font-size: 0.95rem;
    margin: 0;
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
}
.chatbot-info-text p {
    font-size: 0.72rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 4px;
}
.chatbot-info-text p::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #2ed573;
    border-radius: 50%;
}
.chatbot-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.chatbot-close:hover {
    opacity: 1;
}
.chatbot-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(253, 245, 247, 0.4);
    scroll-behavior: smooth;
}
.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.85rem;
    line-height: 1.45;
    animation: msgFadeIn 0.3s ease forwards;
}
@keyframes msgFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
    background: white;
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(212,120,140,0.08);
}
.chat-msg.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 10px rgba(212, 120, 140, 0.15);
}
.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
    align-self: flex-start;
    width: 100%;
}
.chat-option-btn {
    background: white;
    border: 1px solid var(--primary-light);
    color: var(--primary-dark);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    font-family: 'DM Sans', sans-serif;
}
.chat-option-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}
.chatbot-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    gap: 10px;
    align-items: center;
}
.chatbot-input {
    flex: 1;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50px;
    padding: 10px 16px;
    font-size: 0.85rem;
    outline: none;
    transition: border 0.2s;
    font-family: 'DM Sans', sans-serif;
}
.chatbot-input:focus {
    border-color: var(--primary);
}
.chatbot-send {
    background: var(--primary);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.chatbot-send:hover {
    background: var(--primary-dark);
}
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: white;
    border-radius: 18px;
    align-self: flex-start;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(212,120,140,0.08);
}
.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
}

/* ========== PÁGINA DE CHECKOUT / PAGO ========== */
.checkout-section {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #fdf8f5 0%, #faedf0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}
.checkout-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(212, 120, 140, 0.05);
    border: 1px solid rgba(212, 120, 140, 0.08);
}
.checkout-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
    border-bottom: 2px solid #fdf5f7;
    padding-bottom: 15px;
    font-family: 'Playfair Display', serif;
}
.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}
.payment-tab-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--gray);
    border-radius: 14px;
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
}
.payment-tab-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: #fdf5f7;
    box-shadow: 0 6px 15px rgba(212, 120, 140, 0.08);
}
.payment-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.payment-content.active {
    display: block;
}
.card-inputs-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}
.summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffbfd 100%);
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: 0 15px 40px rgba(212, 120, 140, 0.06);
    border: 1px solid rgba(212, 120, 140, 0.25);
    position: sticky;
    top: 100px;
}
.summary-title {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.summary-row.total {
    border-top: 2px dashed var(--gray);
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-dark);
}
.summary-row.total span:last-child {
    color: var(--primary-dark);
}
.bank-instructions {
    background: #f9fbf9;
    border: 1px solid #d4ecd9;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}
.bank-instructions h5 {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 10px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
}
.bank-account-box {
    background: white;
    border: 1px solid #e2efe6;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 0.82rem;
}
.card-preview {
    background: linear-gradient(135deg, #32252a, #160f12);
    border-radius: 18px;
    padding: 25px;
    color: white;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
    border: 1px solid rgba(255,255,255,0.08);
}
.card-preview::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(212,120,140,0.12) 0%, transparent 70%);
    top: -80px;
    right: -80px;
}
.card-preview-chip {
    width: 42px;
    height: 32px;
    background: linear-gradient(135deg, #f3d47a, #cf9d3c);
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.5);
}
.card-preview-number {
    font-size: 1.25rem;
    letter-spacing: 2.5px;
    margin: 18px 0 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.card-preview-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.paypal-mock-btn {
    background: #ffc439;
    color: #003087;
    border: none;
    border-radius: 50px;
    padding: 15px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    font-family: 'DM Sans', sans-serif;
}
.paypal-mock-btn:hover {
    background: #f2ba36;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 196, 57, 0.25);
}
.payment-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
}
.payment-loading.active {
    display: flex;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 120, 140, 0.15);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.payment-success {
    display: none;
    text-align: center;
    animation: scaleUp 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}
.payment-success.active {
    display: block;
}
@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.success-icon {
    width: 70px;
    height: 70px;
    background: #2ed573;
    color: white;
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(46, 213, 115, 0.25);
}
.success-title {
    font-size: 2rem;
    color: #2ed573;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}
.success-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
}
.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .checkout-section {
        padding-top: 100px;
    }
}
@media (max-width: 480px) {
    .chatbot-widget {
        bottom: 15px;
        right: 15px;
    }
    .chatbot-window {
        width: calc(100vw - 30px);
        height: calc(100vh - 120px);
        bottom: 70px;
        right: 0;
    }
    .checkout-card {
        padding: 24px;
    }
    .card-inputs-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== EXPERIENCIA DE AGENDAMIENTO ========== */
.appointment-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 0 28px;
    padding: 4px;
    background: #fdf5f7;
    border: 1px solid rgba(212, 120, 140, 0.18);
    border-radius: 14px;
}

.appointment-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 5px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.appointment-step b {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    font-size: 0.72rem;
}

.appointment-step.is-active {
    border-radius: 10px;
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 5px 16px rgba(184, 92, 116, 0.12);
    transform: translateY(-1px);
}

.form-card {
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.8;
}

.form-card .form-group {
    animation: appointment-field-in 0.5s both;
}

.form-card .form-group:nth-of-type(2) { animation-delay: 0.05s; }
.form-card .form-group:nth-of-type(3) { animation-delay: 0.1s; }
.form-card .form-group:nth-of-type(4) { animation-delay: 0.15s; }
.form-card .form-group:nth-of-type(5) { animation-delay: 0.2s; }
.form-card .form-group:nth-of-type(6) { animation-delay: 0.25s; }
.form-card .form-group:nth-of-type(7) { animation-delay: 0.3s; }

.form-card .btn-primary {
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.form-card .btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(212, 120, 140, 0.34) !important;
}

.form-card .btn-primary:disabled {
    cursor: wait;
    opacity: 0.72;
}

.appointment-status,
.appointment-note {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    text-align: center;
}

.appointment-status {
    background: #fff8e8;
    color: #795d1e;
}

.appointment-status.is-loading {
    animation: appointment-pulse 1.2s ease-in-out infinite;
}

.appointment-status.is-success {
    background: #edf8f0;
    color: #28633a;
}

.appointment-status.is-error {
    background: #fff0f0;
    color: #9c3d47;
}

.appointment-status-action {
    display: inline-block;
    margin-top: 8px;
    color: #168c4e;
    font-weight: 700;
    text-decoration: none;
}

.appointment-note {
    color: var(--text-muted);
    background: #fdf5f7;
}

.appointment-note i {
    margin-right: 5px;
    color: var(--primary);
}

@keyframes appointment-field-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes appointment-pulse {
    50% { opacity: 0.62; }
}

@media (prefers-reduced-motion: reduce) {
    .form-card .form-group,
    .appointment-status.is-loading {
        animation: none;
    }
}

@media (max-width: 560px) {
    .appointment-steps {
        gap: 3px;
    }

    .appointment-step {
        display: block;
        padding: 8px 2px;
        font-size: 0.65rem;
    }

    .appointment-step b {
        margin: 0 auto 3px;
    }
}

