:root {
    --navy: #0D1B3E;
    --navy-light: #1a2d5a;
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --teal: #1B7A8A;
    --white: #F8F6F2;
    --text-dark: #333333;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--navy);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== SCROLL REVEAL ====== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(13, 27, 62, 0.97);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo img {
    height: 45px;
    width: auto;
    border-radius: 5px;
}

.nav-logo span {
    font-family: 'Great Vibes', cursive;
    font-size: 1.6rem;
    color: var(--gold-light);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--gold-light);
    background: rgba(255,255,255,0.08);
}

.nav-cta {
    font-size: 0.9rem;
    padding: 10px 20px;
    white-space: nowrap;
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    font-weight: 700;
}

.nav-cta:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--navy);
    color: var(--white);
    border: 2px solid var(--navy);
}

.btn-primary:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13,27,62,0.3);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.2);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: 2px solid #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    transform: translateY(-2px);
}

/* ====== SECTION TITLES ====== */
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* ====== HERO ====== */
.hero-modern {
    position: relative;
    background-color: var(--navy);
    background: linear-gradient(135deg, var(--navy) 0%, #050a17 100%);
    padding: 130px 0 60px;
    text-align: center;
    overflow: hidden;
}

.hero-container-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.brand-text {
    color: var(--gold);
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    display: inline-block;
    margin-right: 15px;
    text-shadow: 0 2px 10px rgba(201,168,76,0.3);
}

.hero-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Hero Grid */
.hero-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.grid-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.grid-item {
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-tall {
    width: 160px;
    height: 260px;
}

.item-short {
    width: 160px;
    height: 190px;
}

.col-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-center {
    width: 280px;
    height: 400px;
}

.item-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====== MARQUEE ====== */
.treatments {
    background-color: var(--gold);
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    will-change: transform;
    animation: scroll 30s linear infinite;
}

.marquee-content span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ====== TREATMENT CARDS ====== */
.treatments-cards {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f6f2 0%, #eef0f5 100%);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.treatment-card {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--gold);
}

.treatment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
}

.treatment-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.treatment-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ====== DOCTOR PROFILE ====== */
.doctor-profile {
    padding: 100px 0;
    background-color: var(--white);
}

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

.doctor-image {
    position: relative;
}

.doctor-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.doctor-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--gold);
    border-radius: 20px;
    z-index: -1;
}

.doctor-info h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.doctor-info .specialty {
    color: var(--teal);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.doctor-info p {
    margin-bottom: 15px;
    color: #555;
}

/* Clinic Stats */
.clinic-stats {
    display: flex;
    gap: 30px;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    font-family: 'Cormorant Garamond', serif;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ====== REVIEWS ====== */
.reviews {
    padding: 100px 0;
    background-color: var(--navy);
    color: var(--white);
    text-align: center;
}

.reviews h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.google-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-bottom: 50px;
}

.stars {
    color: #FFD700;
}

.reviews-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
    scroll-behavior: smooth;
    cursor: grab;
}

.reviews-carousel:active {
    cursor: grabbing;
}

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

.review-card {
    position: relative;
    min-width: 340px;
    background-color: #ffffff;
    color: var(--navy);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

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

.google-g {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 24px;
    height: 24px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
}

.reviewer-details strong {
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--navy);
}

.review-date {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 3px;
}

.stars-card {
    color: #fbbc04;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: normal;
    color: #444;
    opacity: 1;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-top: 5px;
}

/* ====== APPOINTMENT ====== */
.appointment {
    padding: 100px 0;
    background-color: var(--white);
    text-align: center;
}

.appointment h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.calendar-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    min-height: 300px;
}

/* ====== LOCATION ====== */
.location {
    padding: 0;
    display: flex;
    height: 500px;
}

.map-container {
    flex: 2;
}

.contact-info {
    flex: 1;
    background-color: var(--navy);
    color: var(--white);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.contact-info h3 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
}

.info-item i {
    color: var(--gold);
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ====== FOOTER ====== */
footer {
    background-color: #081127;
    color: var(--white);
    padding: 35px 0;
}

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

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

.footer-logo span {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    color: var(--gold-light);
}

footer p {
    font-size: 0.85rem;
    opacity: 0.7;
}

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* ====== FLOATING WHATSAPP ====== */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

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

/* ====== FLOATING FACEBOOK ====== */
.floating-fb {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #1877F2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(24, 119, 242, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.floating-fb:hover {
    transform: scale(1.1);
    background-color: #0d65d9;
}

@keyframes pulse {
    0%   { transform: scale(1);   opacity: 1; }
    70%  { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1);   opacity: 0; }
}

/* ====== SECCIÓN REDES SOCIALES ====== */
.social-section {
    padding: 90px 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.social-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.05);
    pointer-events: none;
}

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

.social-text h2 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.social-text h2 span {
    color: #1877F2;
}

.social-text p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 35px;
    font-family: 'Inter', sans-serif;
}

.btn-facebook {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #1877F2;
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.35);
    font-family: 'Inter', sans-serif;
}

.btn-facebook:hover {
    background: #0d65d9;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(24, 119, 242, 0.5);
}

/* Tarjeta preview de Facebook */
.fb-preview-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.fb-card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.fb-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.fb-page-info {
    flex: 1;
}

.fb-page-info strong {
    display: block;
    color: #1c1e21;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.fb-page-info span {
    color: #65676b;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
}

.fb-follow-btn {
    background: #e7f3ff;
    color: #1877F2;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    white-space: nowrap;
}

.fb-follow-btn:hover {
    background: #1877F2;
    color: white;
}

.fb-card-body {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.fb-card-body p {
    color: #1c1e21;
    font-size: 0.9rem;
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}

.fb-card-footer {
    padding: 14px 20px;
    background: #f7f8fa;
}

.fb-card-footer span {
    color: #65676b;
    font-size: 0.83rem;
    font-family: 'Inter', sans-serif;
}

.fb-card-footer i {
    color: #1877F2;
    margin-right: 6px;
}

/* Footer social icons */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .social-inner {
        grid-template-columns: 1fr;
    }
    .social-text h2 {
        font-size: 2rem;
    }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-grid {
        flex-wrap: wrap;
    }
    .grid-col {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .item-short, .item-tall {
        width: calc(50% - 10px);
        max-width: 200px;
        height: 200px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .brand-text {
        font-size: 3rem;
    }
    .doctor-grid {
        grid-template-columns: 1fr;
    }
    .location {
        flex-direction: column;
        height: auto;
    }
    .map-container {
        height: 350px;
    }
    .clinic-stats {
        gap: 20px;
    }
    .nav-links, .nav-cta {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 27, 62, 0.98);
        padding: 20px;
        gap: 5px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.open .nav-cta-mobile {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .hero-modern {
        padding: 100px 0 40px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .brand-text {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .doctor-info h2 {
        font-size: 2.2rem;
    }
    .reviews h2 {
        font-size: 2.2rem;
    }
    .appointment h2 {
        font-size: 2.2rem;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .contact-info {
        padding: 40px 25px;
    }
    .clinic-stats {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .brand-text {
        font-size: 2rem;
    }
    .gold-cursive {
        font-size: 2.2rem;
    }
    .endo-content h2 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

/* ====== POR QUÉ ELEGIRNOS ====== */
.why-us {
    background-color: #EEF3FA;
    padding: 90px 0;
}

.why-us-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.why-us-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-us-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.why-us-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    color: var(--navy);
    line-height: 1.2;
}

.why-us-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.why-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(13, 27, 62, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(13, 27, 62, 0.12);
}

.why-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.3rem;
}

.why-text h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 5px;
}

.why-text p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .why-us-container {
        grid-template-columns: 1fr;
    }
    .why-us-left {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 500px) {
    .why-us-right {
        grid-template-columns: 1fr;
    }
}

/* ====== TECNOLOGÍA EN ENDODONCIA ====== */
.endo-tech {
    padding: 100px 0;
    background-color: var(--white);
    overflow: hidden;
}

.endo-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.endo-image-wrapper {
    position: relative;
    border-radius: 20px;
}

.endo-image-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid var(--gold);
    border-radius: 20px;
    z-index: 0;
}

.endo-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.endo-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--navy);
    color: var(--white);
    padding: 20px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(13, 27, 62, 0.3);
    z-index: 2;
}

.endo-badge i {
    font-size: 2rem;
    color: var(--gold);
}

.endo-badge strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
}

.endo-badge span {
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.endo-content .section-label {
    color: var(--teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.endo-content h2 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.gold-cursive {
    color: var(--gold);
    font-family: 'Great Vibes', cursive;
    font-size: 3.8rem;
    display: block;
    margin-top: 5px;
    font-weight: 400;
}

.endo-description {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 35px;
    line-height: 1.8;
}

.endo-features {
    list-style: none;
    margin-bottom: 40px;
}

.endo-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--navy);
    line-height: 1.5;
}

.endo-features i {
    color: var(--gold);
    font-size: 1.3rem;
    margin-top: 3px;
}

@media (max-width: 992px) {
    .endo-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .endo-image-wrapper {
        max-width: 500px;
        margin: 0 auto 30px;
    }
    .endo-badge {
        right: 20px;
    }
    .endo-content h2 {
        font-size: 2.5rem;
    }
    .gold-cursive {
        font-size: 3rem;
    }
}

/* ====== ESTRELLAS Y RESPLANDOR (HERO) ====== */
.stars-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Twinkling Stars (Resplandor) */
.twinkle-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--gold-light);
    border-radius: 50%;
    box-shadow: 0 0 10px 3px rgba(201, 168, 76, 0.8);
    opacity: 0;
    animation: twinkle 6s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.5); box-shadow: 0 0 20px 6px rgba(201, 168, 76, 1); }
}

/* Shooting Stars (Estrellas Fugaces) */
.shooting-star {
    position: absolute;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0), var(--gold-light), rgba(255,255,255,0));
    opacity: 0;
    transform: rotate(-45deg);
    animation: shooting 15s infinite ease-in;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 60%;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.9);
    transform: translateX(-50%);
}

@keyframes shooting {
    0% {
        opacity: 0;
        transform: rotate(-45deg) translateX(-200px);
    }
    3% {
        opacity: 1;
    }
    10% {
        opacity: 0;
        transform: rotate(-45deg) translateX(1200px);
    }
    100% {
        opacity: 0;
    }
}

/* ====== FAQ SECTION ====== */
.faq-section {
    padding: 100px 0;
    background: #F8F6F0; /* Fondo crema suave y lujoso */
    position: relative;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background: #FFFFFF;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.15);
    transform: translateY(-2px);
    border-color: var(--gold);
}

.faq-item[open] {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(13, 27, 62, 0.08);
}

.faq-item summary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 24px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--navy);
    cursor: pointer;
    list-style: none; /* Firefox */
}

/* Ocultar el marcador nativo en Chrome/Safari */
.faq-item summary::-webkit-details-marker { 
    display: none; 
}

.faq-item summary i {
    color: var(--gold);
    font-size: 1.3rem;
    width: 25px;
    text-align: center;
    flex-shrink: 0;
}

.faq-item summary::after {
    content: '\f078'; /* FontAwesome chevron-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 1rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 30px 25px 70px;
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    animation: faqFadeIn 0.4s ease-out forwards;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .faq-item summary {
        padding: 20px;
        font-size: 1rem;
    }
    .faq-item p {
        padding: 0 20px 25px 20px;
    }
    .faq-item summary i {
        display: none;
    }
}

/* ====== EXIT INTENT POPUP ====== */
.exit-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 27, 62, 0.85); /* Navy transparent */
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

.exit-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.exit-popup-content {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    overflow: hidden;
}

.exit-popup-overlay.show .exit-popup-content {
    transform: translateY(0) scale(1);
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.exit-popup-close:hover {
    background: rgba(255,255,255,0.4);
}

.exit-popup-header {
    background: var(--navy);
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.exit-img-container {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid var(--gold);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.exit-popup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exit-popup-body {
    padding: 30px;
    text-align: center;
}

.exit-popup-body h3 {
    color: var(--navy);
    font-size: 1.8rem;
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 12px;
}

.exit-popup-body p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-whatsapp-popup {
    background: #25D366;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
}

.btn-whatsapp-popup:hover {
    background: #1ebe5d;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}
