/* ================= VARIABLES Y RESET ================= */
:root {
    --primary: #b8911c;
    --primary-dark: #8a6c15;
    --primary-light: #f8f3e6;
    --secondary:     #fdf8f2;   /* crema suave para tarjetas/paneles */
    --bg-page:       #fdf5e8;   /* crema cálida para el fondo general */
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --white: #ffffff;
    --bg-dark: #121212;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 16px;
    --box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 30px 60px rgba(212, 175, 55, 0.15);

    /* ── Fluid Type Scale (clamp: min, preferred, max) ── */
    --text-xs:   clamp(0.70rem, 1.5vw,  0.80rem);
    --text-sm:   clamp(0.82rem, 1.8vw,  0.92rem);
    --text-base: clamp(0.92rem, 2.0vw,  1.05rem);
    --text-md:   clamp(1.05rem, 2.2vw,  1.20rem);
    --text-lg:   clamp(1.15rem, 2.5vw,  1.40rem);
    --text-xl:   clamp(1.35rem, 3.0vw,  1.75rem);
    --text-2xl:  clamp(1.65rem, 4.0vw,  2.30rem);
    --text-3xl:  clamp(2.00rem, 5.5vw,  3.20rem);
    --text-4xl:  clamp(2.40rem, 7.0vw,  4.50rem);

    /* ── Fluid Spacing ── */
    --space-xs:  clamp(0.50rem, 1.5vw,  0.75rem);
    --space-sm:  clamp(0.75rem, 2.0vw,  1.25rem);
    --space-md:  clamp(1.25rem, 3.0vw,  2.00rem);
    --space-lg:  clamp(2.00rem, 5.0vw,  4.00rem);
    --space-xl:  clamp(3.00rem, 8.0vw,  7.00rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-page);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

/* ================= UTILS & ANIMATIONS ================= */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 1s cubic-bezier(0.5, 0, 0, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 1s cubic-bezier(0.5, 0, 0, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1.2rem 2.8rem;
    background-color: var(--text-dark);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid var(--text-dark);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background-color: var(--primary);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before { width: 100%; }
.btn:hover { color: var(--white); border-color: var(--primary); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); transform: translateY(-3px); }

/* WhatsApp Sticky */
.whatsapp-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25D366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-sticky:hover { transform: scale(1.1) rotate(5deg); }

@media (max-width: 768px) {
    .whatsapp-sticky { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 28px; }
}

/* Testimonials Styles */
.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(212, 175, 55, 0.1);
    height: 100%;
    transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.stars { color: #f59e0b; margin-bottom: 1rem; }
.reviewer { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.reviewer img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.reviewer-info h4 { font-size: 1rem; margin-bottom: 0.1rem; }
.reviewer-info p { font-size: 0.8rem; color: var(--text-light); }

/* ================= NAVEGACIÓN ================= */
/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), #eab308);
    z-index: 10001;
    transition: width 0.1s ease;
}

header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important; /* Valor altísimo para que nada lo tape */
    padding: 0.7rem 0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15) !important;
    border-bottom: 2px solid var(--primary) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

header.scrolled {
    padding: 0.5rem 0 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.25) !important;
}

nav { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-size: 1.8rem;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    line-height: 1;
    position: relative;
    z-index: 1001;
}

.logo span {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--primary);
    text-transform: uppercase;
    margin-top: 5px;
}

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--text-dark); z-index: 1001; }

/* ================= HERO SECTION ================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary) 0%, #fff 100%);
}

.hero-bg-shape {
    position: absolute;
    top: -10%; right: -5%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; z-index: 1; }
.hero-content { padding-right: 2rem; }
.hero-subtitle { font-size: 1rem; text-transform: uppercase; letter-spacing: 3px; color: var(--primary); font-weight: 700; margin-bottom: 1rem; display: block; }
.hero h1 { font-size: clamp(3rem, 5vw, 5rem); line-height: 1.1; margin-bottom: 1.5rem; color: var(--text-dark); }
.hero h1 span { font-style: italic; color: var(--primary); }
.hero p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 2.5rem; max-width: 500px; }
.hero-image { position: relative; }
.hero-image-wrapper {
    position: relative;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    animation: morph 8s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.5);
    aspect-ratio: 4/5;
}

.hero-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 1.5s ease; }
.hero-image:hover img { transform: scale(1.1); }

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 30% 70% / 50% 70% 30% 50%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* ================= ABOUT SECTION ================= */
.about { padding: 8rem 0; background-color: var(--white); position: relative; }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 6rem; align-items: center; }
.about-img { position: relative; }
.about-img::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px; right: 20px; bottom: 20px;
    border: 2px solid var(--primary); border-radius: var(--border-radius);
    z-index: 0; transition: var(--transition);
}

.about-img:hover::before { transform: translate(10px, 10px); }
.about-img img { width: 100%; border-radius: var(--border-radius); position: relative; z-index: 1; box-shadow: var(--box-shadow); aspect-ratio: 3/4; object-fit: cover; }

.floating-badge {
    position: absolute; bottom: -30px; right: -30px; background: var(--white);
    padding: 1.5rem; border-radius: 50%; width: 140px; height: 140px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; box-shadow: var(--box-shadow); z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.floating-badge span { font-size: 2rem; font-weight: 700; color: var(--primary); font-family: 'Playfair Display', serif; line-height: 1; }
.floating-badge p { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; color: var(--text-dark); }

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.section-header { margin-bottom: 2rem; }
.section-subtitle {
    font-family: 'Lato', sans-serif; color: var(--primary); text-transform: uppercase;
    letter-spacing: 2px; font-size: 0.9rem; font-weight: 700; display: block;
    margin-bottom: 1rem; position: relative; padding-left: 50px;
}

.section-subtitle::before { content: ''; position: absolute; left: 0; top: 50%; width: 40px; height: 2px; background: var(--primary); }
.section-title { font-size: clamp(2.5rem, 4vw, 3.5rem); color: var(--text-dark); line-height: 1.2; }
.about-text p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 1.5rem; }

/* ================= SERVICIOS ================= */
.services { padding: 8rem 0; background-color: var(--secondary); position: relative; }
.services-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.services-header .section-subtitle::before { display: none; }
.services-header .section-subtitle { padding-left: 0; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card {
    background: var(--white); padding: 3rem 2rem; border-radius: var(--border-radius);
    text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition); position: relative; overflow: hidden; z-index: 1;
}

.service-card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 0;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0) 100%);
    transition: var(--transition); z-index: -1;
}

.service-card:hover::after { height: 100%; }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--box-shadow-hover); }

.service-icon-wrapper {
    width: 80px; height: 80px; background: var(--secondary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
    color: var(--primary); font-size: 2rem; transition: var(--transition);
}

.service-card:hover .service-icon-wrapper { background: var(--primary); color: var(--white); transform: scale(1.1) rotate(5deg); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-dark); }
.service-card p { color: var(--text-light); font-size: 1rem; }

.service-list { margin-top: 1.5rem; text-align: left; }
.service-list li {
    display: flex; align-items: center; margin-bottom: 0.8rem; color: var(--text-light);
    font-size: 0.95rem; border-bottom: 1px dashed rgba(0, 0, 0, 0.1); padding-bottom: 0.5rem;
}

.service-list li:last-child { border-bottom: none; }
.service-list li i { color: var(--primary); margin-right: 12px; font-size: 0.8rem; }
.service-list li span { margin-left: auto; font-weight: 700; color: var(--text-dark); }

/* ================= GALERÍA (MASONRY LAYOUT) ================= */
.gallery { padding: 8rem 0; background-color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 1.5rem; margin-top: 4rem; }
.gallery-item { position: relative; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.gallery-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(4) { grid-column: span 1; grid-row: span 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.gallery-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; opacity: 0; transition: var(--transition);
}

.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-content { transform: translateY(20px); transition: var(--transition); }
.gallery-item:hover .gallery-overlay-content { transform: translateY(0); }
.gallery-overlay h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 0.5rem; }

.gallery-overlay i {
    color: var(--primary); font-size: 1.5rem; background: var(--white); width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    position: absolute; top: 20px; right: 20px;
}

/* ================= TESTIMONIOS REALES ================= */
.testimonials { padding: 8rem 0; background-color: var(--secondary); position: relative; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; margin-top: 4rem; }
.testimonial-card {
    background: var(--white); padding: 2.5rem; border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05); transition: var(--transition); border-bottom: 4px solid transparent;
}

.testimonial-card:hover { transform: translateY(-10px); border-bottom-color: var(--primary); }
.stars { color: #f59e0b; margin-bottom: 1rem; }
.review-text { font-style: italic; color: var(--text-dark); margin-bottom: 1.5rem; line-height: 1.8; }
.reviewer { display: flex; align-items: center; gap: 1rem; }
.reviewer-avatar { width: 45px; height: 45px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); }
.reviewer-info h4 { font-size: 0.95rem; margin: 0; }
.reviewer-info span { font-size: 0.75rem; color: var(--text-light); }

/* ================= CONTACTO Y MAPA ================= */
.contact { padding: 8rem 0 0 0; background-color: var(--white); }
.contact-wrap {
    background: var(--text-dark); border-radius: var(--border-radius); overflow: hidden;
    display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--box-shadow);
    margin-bottom: 4rem; position: relative; z-index: 10;
}

.contact-info {
    padding: 5rem 4rem; color: var(--white);
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="%23333" stroke-width="1"/></svg>') center/cover;
}

.contact-info .section-title { color: var(--white); }
.contact-info .section-subtitle { color: var(--primary); }
.contact-info-item { display: flex; align-items: flex-start; margin-bottom: 2rem; gap: 20px; }
.contact-info-icon {
    width: 50px; height: 50px; background: rgba(255, 255, 255, 0.05); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--primary);
    font-size: 1.2rem; flex-shrink: 0;
}

.contact-info-text strong { display: block; font-size: 1.2rem; margin-bottom: 0.5rem; font-family: 'Playfair Display', serif; }
.contact-info-text p { color: #ccc; }

.contact-form { padding: 5rem 4rem; background: var(--white); display: flex; flex-direction: column; justify-content: center; }
.contact-form h3 { font-size: 2rem; margin-bottom: 2rem; color: var(--text-dark); }
.form-group { margin-bottom: 1.5rem; }
.form-control {
    width: 100%; padding: 1.2rem 1.5rem; background: var(--secondary);
    border: 1px solid transparent; border-radius: 8px; font-family: inherit;
    font-size: 1rem; transition: var(--transition); color: var(--text-dark);
}

.form-control:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1); }
textarea.form-control { height: 150px; resize: vertical; }

.btn-whatsapp { width: 100%; background-color: #25D366; border-color: #25D366; color: white; font-size: 1.1rem; padding: 1.2rem; }
.btn-whatsapp::before { background-color: #20b858; }
.btn-whatsapp:hover { border-color: #20b858; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); }

.map-wrapper { max-width: 900px; margin: 0 auto 4rem auto; text-align: center; }
.map-container {
    height: 450px; width: 100%; background: #eee; position: relative; z-index: 1;
    border-radius: var(--border-radius); overflow: hidden; border: 8px solid var(--text-dark); box-shadow: var(--box-shadow);
}

/* ================= WHATSAPP FLOTANTE ================= */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; display: none; color: #FFF; border-radius: 50px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); z-index: 9999;
    display: flex; align-items: center; justify-content: center; font-size: 35px; transition: var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1); color: #fff; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4); }

/* ================= FAQ ================= */
.faq { padding: 8rem 0; background-color: var(--white); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.faq-item { background: var(--secondary); padding: 1.5rem 2rem; border-radius: var(--border-radius); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03); border: none; }
.faq-item summary { font-size: 1.2rem; color: var(--text-dark); font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary); transition: transform 0.3s ease; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { color: var(--text-light); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(0, 0, 0, 0.05); }

/* ================= ANTES Y DESPUÉS SLIDER ================= */
.before-after { padding: 8rem 0; background-color: var(--secondary); }
.ba-slider {
    position: relative; max-width: 600px; margin: 4rem auto 0; border-radius: var(--border-radius);
    overflow: hidden; box-shadow: var(--box-shadow); aspect-ratio: 4/5; --pos: 50%;
}

.ba-slider img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; pointer-events: none; }
.ba-img-despues { z-index: 1; }
.ba-img-antes { z-index: 2; clip-path: polygon(0 0, var(--pos) 0, var(--pos) 100%, 0 100%); }

.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 4; cursor: ew-resize; margin: 0; -webkit-appearance: none; }
.ba-slider-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; background: white; z-index: 3; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); }
.ba-slider-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); font-size: 1.2rem; }
.ba-badge { position: absolute; bottom: 20px; padding: 5px 20px; border-radius: 30px; font-weight: bold; letter-spacing: 1px; z-index: 3; color: white; pointer-events: none; }
.antes-badge { left: 20px; background: rgba(0, 0, 0, 0.6); }
.despues-badge { right: 20px; background: var(--primary); }

.map-container::before { content: 'Cargando mapa...'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--text-light); font-weight: bold; font-size: 1.2rem; z-index: -1; }

/* ================= CHATBOT ================= */
.chat-widget { position: fixed; right: 30px; bottom: 100px; z-index: 10001; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chat-toggle-btn {
    width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: white; box-shadow: 0 6px 20px rgba(184, 145, 28, 0.45); transition: var(--transition);
    position: relative; flex-shrink: 0;
}

.chat-toggle-btn:hover { transform: scale(1.1); box-shadow: 0 10px 30px rgba(184, 145, 28, 0.55); }
.chat-toggle-btn::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; animation: chatPulse 2.5s ease-out infinite; }

@keyframes chatPulse { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }

.chat-window {
    width: 340px; max-height: 480px; background: var(--white); border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18); display: none; flex-direction: column;
    overflow: hidden; animation: chatSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both; border: 1px solid rgba(184, 145, 28, 0.15);
}

.chat-window.open { display: flex; }
@keyframes chatSlideIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.chat-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 1rem 1.2rem; display: flex; align-items: center; gap: 12px; position: relative; }
.chat-header-avatar { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.chat-header-info { flex: 1; }
.chat-header-info strong { display: block; color: white; font-size: 0.95rem; font-family: 'Playfair Display', serif; }
.chat-header-info span { color: rgba(255, 255, 255, 0.8); font-size: 0.78rem; display: flex; align-items: center; gap: 5px; }

.chat-online-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.chat-close-btn { background: rgba(255, 255, 255, 0.15); border: none; color: white; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s; flex-shrink: 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 10px; background: #f9f7f4; scroll-behavior: smooth; }
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.chat-bubble { max-width: 82%; padding: 0.65rem 1rem; border-radius: 16px; font-size: 0.88rem; line-height: 1.5; animation: bubblePop 0.25s ease both; }
@keyframes bubblePop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

.chat-bubble.bot { background: var(--white); color: var(--text-dark); border-radius: 4px 16px 16px 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07); align-self: flex-start; }
.chat-bubble.user { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border-radius: 16px 4px 16px 16px; align-self: flex-end; }

.chat-typing { display: flex; gap: 4px; padding: 0.7rem 1rem; background: var(--white); border-radius: 4px 16px 16px 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07); align-self: flex-start; width: fit-content; }
.chat-typing span { width: 7px; height: 7px; background: var(--primary); border-radius: 50%; animation: typingDot 1.2s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-5px); opacity: 1; } }

.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 6px; padding: 0.5rem 1rem; background: #f9f7f4; }
.chat-quick-btn { background: var(--white); border: 1.5px solid var(--primary); color: var(--primary-dark); padding: 0.35rem 0.8rem; border-radius: 20px; font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.chat-quick-btn:hover { background: var(--primary); color: white; }

.chat-input-area { display: flex; padding: 0.75rem; gap: 8px; background: var(--white); border-top: 1px solid #eee; }
.chat-input { flex: 1; padding: 0.6rem 1rem; border: 1.5px solid #eee; border-radius: 25px; font-size: 0.88rem; font-family: inherit; outline: none; transition: border-color 0.2s; background: var(--secondary); color: var(--text-dark); }
.chat-input:focus { border-color: var(--primary); }

.chat-send-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); border: none; color: white; font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); flex-shrink: 0; }
.chat-send-btn:hover { background: var(--primary-dark); transform: scale(1.08); }

@media (max-width: 768px) { .chat-widget { right: 15px; bottom: 155px; } .chat-window { width: calc(100vw - 30px); max-height: 70vh; } }

/* ================= RESPONSIVE ================= */
body { font-size: var(--text-base); }
.hero h1, .hero-title { font-size: var(--text-4xl); }
.section-title, .hero h2 { font-size: var(--text-2xl); }
.service-card h3, .testimonial-card h4, .faq-question, .bono-card h3 { font-size: var(--text-lg); }
.section-subtitle, .hero p, .about-text p, .contact-info p { font-size: var(--text-base); }
.nav-links a { font-size: var(--text-sm); }

@media (min-width: 1440px) { .container { max-width: 1360px; } .hero { padding-top: 160px; } .services-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 1200px) {
    .container { width: 92%; }
    .about-grid { gap: 3rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 250px; }
    .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
    .gallery-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
    .gallery-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
    .gallery-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 992px) {
    .container { width: 93%; }
    .about, .services, .gallery, .testimonials { padding: var(--space-xl) 0; }
    .contact { padding: var(--space-xl) 0 0; }
    .hero { padding-top: 120px; text-align: center; }
    .hero-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .hero-content { padding-right: 0; }
    .hero p { margin: 0 auto 2rem; }
    .hero-image-wrapper { max-width: 480px; margin: 0 auto; aspect-ratio: 1/1; }
    .about-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .about-img { max-width: 560px; margin: 0 auto 2rem; }
    .about-text { text-align: center; }
    .contact-wrap { grid-template-columns: 1fr; margin-bottom: 3rem; }
    .contact-info, .contact-form { padding: var(--space-lg) var(--space-md); }
    .faq-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer-col .logo { align-items: center !important; }
    .footer-col .social-icons { justify-content: center !important; }
    .floating-badge { width: 120px; height: 120px; bottom: -20px; right: -10px; }
    .floating-badge span { font-size: 1.8rem; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background-color: var(--white); flex-direction: column; align-items: center; justify-content: center;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1); transition: 0.5s cubic-bezier(0.77,0,0.175,1); z-index: 1000;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: var(--text-md); padding: 0.75rem 0; }
    .menu-toggle { display: block; position: relative; z-index: 1002; }
}

@media (max-width: 768px) {
    .reveal, .reveal-left, .reveal-right { transform: none !important; opacity: 1 !important; transition: none !important; }
    .hero-image-wrapper { animation: none !important; }
    body { padding-bottom: 70px; }
    .container { width: 94%; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .bono-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-info, .contact-form { padding: var(--space-md) var(--space-sm); }
    .hero-image-wrapper { max-width: 380px; }
}

@media (max-width: 576px) {
    .container { width: 95%; }
    .about, .services, .gallery, .testimonials, .faq, .before-after { padding: var(--space-lg) 0; }
    .contact { padding: var(--space-lg) 0 0; }
    .services-grid, .bono-grid { grid-template-columns: 1fr; }
    .service-card { padding: var(--space-md) var(--space-sm); }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; gap: 0.75rem; }
    .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .contact-info, .contact-form { padding: var(--space-md) var(--space-sm); }
    .contact-info-item { flex-direction: column; gap: 10px; text-align: center; align-items: center; }
    .floating-badge { width: 90px; height: 90px; bottom: -10px; right: -10px; }
    .floating-badge span { font-size: 1.3rem; }
    .floating-badge p { font-size: var(--text-xs); }
}

@media (max-width: 400px) {
    .container { width: 96%; }
    .hero { padding-top: 90px; }
    .nav-links { width: 100%; }
    .service-card { padding: var(--space-sm); }
    .gallery-grid { grid-auto-rows: 200px; }
    input, textarea, select { font-size: 16px !important; }
    .chat-window { width: calc(100vw - 20px) !important; max-height: 80vh !important; }
    .chat-widget { right: 10px !important; }
}

/* ================= EXTRAS ================= */
.mobile-cta-bar { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--white); box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); z-index: 9999; padding: 0.8rem 1rem; align-items: center; justify-content: space-between; gap: 10px; }
.mobile-cta-bar .btn-cta { flex: 1; text-align: center; padding: 0.8rem 0; border-radius: 8px; font-weight: bold; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 5px; }
.mobile-cta-bar .btn-reserva { background: var(--text-dark); color: var(--white); }
.mobile-cta-bar .btn-call { background: var(--secondary); color: var(--text-dark); border: 1px solid #ddd; }

@media (max-width: 768px) { .mobile-cta-bar { display: flex; } .whatsapp-float { bottom: 85px !important; } }

.bonos { padding: 5rem 0; background-color: var(--primary-light); }
.bonos-card { background: var(--white); padding: 2rem; border-radius: var(--border-radius); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); text-align: center; border-top: 4px solid var(--primary); }
.bono-price { font-size: 2rem; color: var(--primary-dark); font-weight: bold; margin: 1rem 0; }

.google-reviews-header { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 2rem; }
.google-reviews-score { font-size: 3rem; font-weight: bold; color: var(--text-dark); line-height: 1; }
.google-reviews-stars { color: #fbbc04; font-size: 1.2rem; margin-bottom: 5px; }
.google-reviews-text { color: var(--text-light); font-size: 0.95rem; }
.review-card { border: 1px solid #eee; box-shadow: none; }
.review-card .stars { color: #fbbc04; }

.urgency-badge { display: inline-flex; align-items: center; gap: 5px; background: #fff3cd; color: #856404; padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.85rem; font-weight: bold; margin-top: 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.nav-cta { background: var(--primary); color: white !important; padding: 8px 16px !important; border-radius: 20px; }
.nav-cta:hover { opacity: 0.9; }
.nav-cta::after { display: none !important; }

.hero-sub-title-small { font-size: 0.7em; }
.hero-lead { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--text-dark); font-weight: bold; }
.hero-benefits { list-style: none; margin-bottom: 2.5rem; font-size: 1.1rem; color: var(--text-light); display: flex; flex-direction: column; gap: 10px; }
.hero-benefits .check-icon { color: var(--primary); margin-right: 10px; }
.hero-cta-group { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-outline, .btn-outline-dark { background: transparent; color: var(--text-dark); border: 2px solid var(--text-dark); }

.about-benefits { list-style: none; margin: 1.5rem 0; font-size: 1.05rem; color: var(--text-dark); display: flex; flex-direction: column; gap: 8px; }
.about-benefits .heart-icon, .about-benefits .check-icon { color: var(--primary); margin-right: 10px; }

.service-card-left { text-align: left; box-shadow: none; border: 1px solid #eaeaea; }
.service-icon-left { margin: 0 0 1rem 0; }
.service-price { font-weight: bold; color: var(--primary); font-size: 1.2rem; margin-bottom: 0.5rem; }
.service-price-meta { font-size: 0.8rem; color: #999; font-weight: normal; }
.service-benefit { color: var(--text-dark); font-weight: 500; font-size: 0.95rem; margin-bottom: 0.5rem; }
.service-desc { color: var(--text-light); margin-bottom: 1.5rem; font-size: 0.9rem; }
.btn-service { padding: 0.8rem; font-size: 0.85rem; width: 100%; text-align: center; }

.bonos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.bono-desc { color: var(--text-light); margin-bottom: 1.5rem; }
.btn-full { width: 100%; }

.instagram-section { padding: 5rem 0; background: var(--secondary); }
.instagram-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; }
.instagram-lead { color: var(--text-light); margin-bottom: 2rem; }

.footer-logo { color: var(--white); display: flex; align-items: center; gap: 10px; font-size: 1.5rem; margin-bottom: 1rem; text-decoration: none; }
.footer-logo-sub { color: var(--primary); font-size: 1rem; }
.footer-tagline { color: #aaa; margin-bottom: 1.5rem; }
.footer-rating { color: #aaa; font-size: 0.9rem; }
.footer-stars { color: #fbbc04; margin-bottom: 0.5rem; }
.footer-h4 { font-size: 1.2rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--primary); padding-bottom: 0.5rem; display: inline-block; }
.footer-list { list-style: none; color: #ccc; display: flex; flex-direction: column; gap: 12px; padding: 0; }
.footer-list a { color: #ccc; text-decoration: none; transition: color 0.3s; }
.footer-list a:hover { color: var(--primary); }
.footer-icon { width: 20px; color: var(--primary); }

.footer-bottom-inner { max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; color: #777; font-size: 0.9rem; flex-wrap: wrap; gap: 15px; }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { color: #777; text-decoration: none; transition: color 0.3s; }
.footer-legal-links a:hover { color: var(--primary); }

.footer-grid-new { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer-bottom-bar { background: #0a0a0a; padding: 1.5rem 0; border-top: 1px solid #222; }

#lead-form-success { display: none; text-align: center; padding: 1rem 0; color: var(--primary); font-weight: bold; font-size: 1rem; }

img.emoji { height: 1.2em; width: 1.2em; margin: 0 0.05em 0 0.1em; vertical-align: -0.2em; display: inline-block; }
.chat-bubble img.emoji { height: 1.25em; width: 1.25em; vertical-align: -0.25em; }
.chat-toggle-btn img.emoji { height: 1.8rem; width: 1.8rem; vertical-align: middle; pointer-events: none; }
.chat-header-avatar img.emoji { height: 1.8rem; width: 1.8rem; vertical-align: middle; }
