/* ===== Variables base (tema classic, claro) ===== */
:root {
  --brand-primary: #015843;
  --brand-accent: #eb6435;

  --green-900: #013a2c;
  --green-800: #004d36;
  --green-100: #eff4f2;
  --green-50: #f6faf8;
  --accent-dark: #d2511f;

  --bg: #ffffff;
  --bg-alt: var(--green-50);
  --surface: #ffffff;
  --text: #14201c;
  --muted: #5d6f69;
  --border: #e3ece8;
  --header-bg: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 40px -18px rgba(1, 58, 44, 0.35);
  --radius: 18px;
  --maxw: 1180px;
  --font-head: "Poppins", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ===== Modo oscuro ===== */
[data-mode="dark"] {
  --bg: #0f1714;
  --bg-alt: #131e1a;
  --surface: #18241f;
  --text: #e8efec;
  --muted: #9bb0a9;
  --border: #26342e;
  --header-bg: rgba(15, 23, 20, 0.9);
  --green-100: #1c2a25;
  --green-50: #131e1a;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; transition: background 0.3s, color 0.3s; }
h1, h2, h3, .brand { font-family: var(--font-head); line-height: 1.15; }
img { max-width: 100%; display: block; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
video { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; font-weight: 600; color: var(--brand-accent); margin-bottom: 10px; }

/* ===== Botones ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--brand-accent); color: #fff; box-shadow: 0 10px 22px -10px var(--brand-accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--brand-primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--green-100); color: var(--brand-primary); }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand-logo { height: 46px; width: auto; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.94rem; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--brand-accent); transition: width 0.2s; }
.nav-links a:hover::after { width: 100%; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; }
.icon-btn:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.icon-btn svg { width: 18px; height: 18px; }
.i-moon { display: none; }
[data-mode="dark"] .i-sun { display: none; }
[data-mode="dark"] .i-moon { display: block; }
.nav-cta { padding: 10px 20px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 10px; }
.nav-toggle:hover { background: var(--green-100); }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { display: none; }

/* ===== Hero ===== */
.hero { background: radial-gradient(1200px 500px at 80% -10%, color-mix(in srgb, var(--brand-primary) 18%, transparent), transparent 60%), linear-gradient(160deg, var(--bg-alt), var(--bg)); padding-top: 54px; }
.hero-text { max-width: 760px; }
.hero-text h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; color: var(--brand-primary); }
[data-mode="dark"] .hero-text h1 { color: var(--text); }
.hero-text p { margin-top: 16px; font-size: 1.1rem; color: var(--muted); max-width: 620px; }
.hero-actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Carrusel ===== */
.carousel-wrap { padding-top: 40px; padding-bottom: 70px; }
.mainSwiper { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 88vh; }

/* --- Modo: carrusel como fondo del inicio --- */
.hero.has-bg { position: relative; min-height: 88vh; display: flex; align-items: center; padding-top: 0; overflow: hidden; }
.hero.has-bg .carousel-wrap { position: absolute; inset: 0; padding: 0; max-width: none; width: 100%; z-index: 0; }
.hero.has-bg .mainSwiper { border-radius: 0; height: 100% !important; box-shadow: none; }
.hero.has-bg .carousel-wrap::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, rgba(1,40,30,0.82) 0%, rgba(1,40,30,0.55) 45%, rgba(1,40,30,0.15) 100%); }
.hero.has-bg .hero-content { position: relative; z-index: 3; padding-top: 40px; padding-bottom: 40px; }
.hero.has-bg .hero-text h1 { color: #fff; }
.hero.has-bg .hero-text p { color: rgba(255,255,255,0.92); }
.hero.has-bg .eyebrow { color: #ffd9c7; }
.hero.has-bg .hero-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero.has-bg .hero-actions .btn-ghost:hover { background: rgba(255,255,255,0.12); }
.hero.has-bg .slide-caption { display: none; }
.hero.has-bg .swiper-pagination { bottom: 18px; }
[data-theme="apple"] .hero.has-bg { text-align: left; }
[data-theme="apple"] .hero.has-bg .hero-text { margin: 0; }

.mainSwiper .swiper-slide { position: relative; background: var(--green-100); }
.slide-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-img.contain { object-fit: contain; background: var(--green-900); }
.slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 28px 22px; background: linear-gradient(transparent, rgba(1, 58, 44, 0.78)); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.mainSwiper .swiper-button-prev, .mainSwiper .swiper-button-next { color: #fff; }
.mainSwiper .swiper-pagination-bullet-active { background: var(--brand-accent); }

/* ===== Secciones ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--brand-primary); }
[data-mode="dark"] .section-head h2 { color: var(--text); }
.section-head p { margin-top: 10px; color: var(--muted); }

/* ===== Servicios ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: transform 0.18s, box-shadow 0.2s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--green-100); color: var(--brand-primary); display: grid; place-items: center; margin-bottom: 18px; }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.18rem; color: var(--brand-primary); margin-bottom: 8px; }
[data-mode="dark"] .service-card h3 { color: var(--text); }
.service-card p { color: var(--muted); font-size: 0.97rem; }

/* ===== Planes ===== */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.plan-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 26px; display: flex; flex-direction: column; gap: 14px; transition: transform 0.18s, box-shadow 0.2s; }
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan-card.featured { border-color: var(--brand-accent); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -14px; right: 22px; background: var(--brand-accent); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.plan-card h3 { color: var(--brand-primary); font-size: 1.3rem; }
[data-mode="dark"] .plan-card h3 { color: var(--text); }
.plan-price { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--text); }
.plan-price small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.plan-card ul { list-style: none; display: grid; gap: 10px; margin: 6px 0 auto; }
.plan-card li { padding-left: 26px; position: relative; color: var(--muted); }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-accent); font-weight: 700; }
.plan-card .btn { justify-content: center; }

/* ===== Antes y despues ===== */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.ba-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ba-compare { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; user-select: none; }
.ba-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { z-index: 1; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; z-index: 2; }
.ba-handle::after { content: "⟺"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: var(--brand-primary); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 0.9rem; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.ba-label { position: absolute; top: 12px; z-index: 2; padding: 4px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; color: #fff; background: rgba(0,0,0,0.55); }
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }
.ba-caption { padding: 14px 18px; color: var(--muted); }

/* ===== Quienes somos ===== */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.about-media { background: var(--surface); border-radius: var(--radius); padding: 48px; display: grid; place-items: center; box-shadow: var(--shadow); border: 1px solid var(--border); }
.about-media img { max-height: 220px; }
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--brand-primary); }
[data-mode="dark"] .about-text h2 { color: var(--text); }
.about-text p { margin-top: 14px; color: var(--muted); }
.about-highlights { list-style: none; margin: 22px 0; display: grid; gap: 12px; }
.about-highlights li { position: relative; padding-left: 30px; font-weight: 500; }
.about-highlights li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2l-3.5-3.5L4 14.2 9 19l11-11-1.4-1.4z'/%3E%3C/svg%3E"); background-size: 14px; background-repeat: no-repeat; background-position: center; }

/* ===== Testimonios ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.stars { color: #f5a623; display: flex; gap: 2px; }
.testimonial-text { color: var(--text); font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-author img, .avatar-fallback { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { background: var(--brand-primary); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.testimonial-author strong { display: block; color: var(--text); }
.testimonial-author span { font-size: 0.85rem; color: var(--muted); }

/* ===== Clientes ===== */
.clients-title { text-align: center; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; margin-bottom: 26px; }
.clients-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 38px; }
.client-logo { height: 56px; display: grid; place-items: center; filter: grayscale(1); opacity: 0.7; transition: 0.2s; }
.client-logo:hover { filter: grayscale(0); opacity: 1; }
.client-logo img { max-height: 56px; max-width: 150px; object-fit: contain; }
.client-logo span { font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: 1.1rem; }

/* ===== Galeria de video ===== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.video-card { position: relative; border: 0; padding: 0; text-align: left; cursor: pointer; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--green-900); transition: transform 0.18s, box-shadow 0.2s; }
.video-card:hover { transform: translateY(-6px); }
.video-card:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; }
.video-thumb { position: relative; aspect-ratio: 9 / 16; background: #000; }
.video-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45)); opacity: 0; transition: opacity 0.2s; }
.video-card:hover .video-thumb::after { opacity: 1; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--brand-primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px -6px rgba(0,0,0,0.5); transition: transform 0.2s, background 0.2s; }
.video-play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-card:hover .video-play { transform: translate(-50%, -50%) scale(1.1); background: #fff; }
.video-card .video-caption { padding: 12px 16px; color: #fff; font-size: 0.92rem; }

/* ===== Visor de video (lightbox) ===== */
.video-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.video-modal[hidden] { display: none; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.9); }
.video-modal-card { position: relative; z-index: 1; max-width: min(92vw, 480px); width: 100%; display: flex; flex-direction: column; align-items: center; }
.video-modal-player { width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.7); }
.video-modal-player video { width: 100%; max-height: 80vh; display: block; background: #000; transform: translateZ(0); will-change: transform; }
.video-modal-caption { color: #fff; margin-top: 14px; text-align: center; font-size: 0.95rem; }
.video-modal-caption:empty { display: none; }
.video-modal-close { position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.15); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background 0.2s; }
.video-modal-close:hover { background: rgba(255,255,255,0.3); }

/* ===== Blog ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform 0.18s, box-shadow 0.2s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-cover { height: 180px; overflow: hidden; }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 22px; }
.post-date { font-size: 0.78rem; color: var(--brand-accent); font-weight: 600; }
.blog-body h3 { margin: 6px 0 10px; color: var(--brand-primary); }
[data-mode="dark"] .blog-body h3 { color: var(--text); }
.blog-body p { color: var(--muted); font-size: 0.95rem; }
.blog-read { margin-top: 12px; }
.link { background: none; border: 0; color: var(--brand-accent); font: inherit; font-weight: 600; cursor: pointer; }

/* Modal blog */
.post-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.post-modal[hidden] { display: none; }
.post-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.post-modal-card { position: relative; background: var(--surface); color: var(--text); border-radius: var(--radius); max-width: 720px; width: 100%; max-height: 88vh; overflow: auto; box-shadow: var(--shadow); }
.post-modal-card img { width: 100%; max-height: 300px; object-fit: cover; }
.post-modal-body { padding: 28px; }
.post-modal-body h2 { color: var(--brand-primary); margin: 8px 0 16px; }
[data-mode="dark"] .post-modal-body h2 { color: var(--text); }
.post-modal-body p { color: var(--muted); margin-bottom: 12px; }
.post-modal-close { position: absolute; top: 12px; right: 14px; background: rgba(0,0,0,0.5); color: #fff; border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; z-index: 2; }

/* ===== Agendar ===== */
.booking-form { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.booking-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.booking-form label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--brand-primary); }
[data-mode="dark"] .booking-form label { color: var(--text); }
.booking-form input, .booking-form select, .booking-form textarea { padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; font: inherit; color: var(--text); background: var(--bg); }
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { outline: 2px solid var(--brand-primary); border-color: transparent; }
.booking-form .btn { justify-self: start; }

/* ===== Contacto ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.section-contact .eyebrow { color: rgba(255,255,255,0.8); }
.section-contact h2 { color: #fff; }
.contact-info p { margin-top: 10px; color: rgba(255, 255, 255, 0.85); }
.contact-list { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.contact-list svg { width: 20px; height: 20px; color: #ffd9c7; flex-shrink: 0; }
.contact-list a, .contact-list span { color: #fff; text-decoration: none; }
.map-wrap { margin-top: 22px; border-radius: var(--radius); overflow: hidden; }
.map-wrap iframe { width: 100%; min-height: 220px; border: 0; display: block; }
.contact-form { background: var(--surface); border-radius: var(--radius); padding: 30px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--brand-primary); }
[data-mode="dark"] .contact-form label { color: var(--text); }
.contact-form input, .contact-form textarea, .contact-form select { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font: inherit; color: var(--text); background: var(--bg); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--brand-primary); border-color: transparent; }
.form-feedback { font-size: 0.9rem; min-height: 18px; }
.form-feedback.ok { color: #2e7d32; }

/* ===== Footer ===== */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, 0.82); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.footer-logo { height: 50px; margin-bottom: 14px; object-fit: contain; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: grid; gap: 10px; align-content: start; font-size: 0.94rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; max-width: var(--maxw); margin: 0 auto; font-size: 0.86rem; }
.admin-link { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.admin-link:hover { color: #fff; }

/* ===== Redes sociales flotantes ===== */
.social-float { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.social-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; box-shadow: 0 8px 22px -6px rgba(0,0,0,0.4); transition: transform 0.15s, box-shadow 0.2s; }
.social-btn:hover { transform: scale(1.1); }
.social-btn[hidden] { display: none; }
.social-whatsapp { background: #25d366; }
.social-instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-facebook { background: #1877f2; }
.social-x { background: #000; }
@media (max-width: 640px) {
  .social-float { right: 12px; bottom: 12px; gap: 8px; }
  .social-btn { width: 44px; height: 44px; }
}

/* ===== Decoraciones animadas (tematica de limpieza) ===== */
.decorations { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.deco { position: fixed; width: clamp(42px, 5vw, 74px); height: clamp(42px, 5vw, 74px); color: var(--brand-accent); opacity: var(--deco-opacity, 0.5); pointer-events: none; will-change: transform; }
.deco svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15)); }
.deco-float { animation: decoFloat var(--deco-dur, 8.5s) ease-in-out infinite; }
.deco-sway { animation: decoSway var(--deco-dur, 8.5s) ease-in-out infinite; }
.deco-bounce { animation: decoBounce var(--deco-dur, 8.5s) cubic-bezier(0.5, 0.05, 0.5, 0.95) infinite; }
.deco-spin { animation: decoSpin var(--deco-dur, 8.5s) linear infinite; }
@keyframes decoFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-26px) rotate(4deg); } }
@keyframes decoSway { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@keyframes decoBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-34px); } }
@keyframes decoSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@media (max-width: 1100px) { .decorations { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .deco { animation: none !important; } }

/* ===== Utilidad ancho angosto ===== */
.container-narrow { max-width: 820px; }

/* ===== Microinteracciones (fx-micro) ===== */
.service-icon { transition: transform 0.25s ease; }
.fx-micro .btn:active { transform: scale(0.96); }
.fx-micro .service-card:hover .service-icon { transform: rotate(-8deg) scale(1.1); }
.fx-micro .btn-accent { position: relative; overflow: hidden; }
.fx-micro .btn-accent::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent); transform: skewX(-20deg); transition: left 0.5s ease; }
.fx-micro .btn-accent:hover::after { left: 130%; }
.fx-micro .plan-card:hover .plan-price { transform: scale(1.06); transition: transform 0.2s; }
.fx-micro .client-logo:hover { transform: translateY(-4px) scale(1.04); }

/* ===== Cursor personalizado ===== */
.cursor-deco { position: fixed; left: -100px; top: -100px; width: 34px; height: 34px; transform: translate(-50%, -50%); pointer-events: none; z-index: 9999; color: var(--brand-accent); transition: left 0.07s linear, top 0.07s linear; will-change: left, top; }
.cursor-deco svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)); animation: decoSway 3s ease-in-out infinite; }
@media (max-width: 1024px) { .cursor-deco { display: none !important; } }

/* ===== Animaciones al scroll (fx-reveal) ===== */
.fx-reveal .reveal-item { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fx-reveal .reveal-item.is-in { opacity: 1; transform: none; }

/* ===== Antes/despues: frotar para revelar ===== */
.ba-scratch { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; cursor: crosshair; touch-action: none; }
.ba-scratch .ba-after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.ba-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; background: rgba(0,0,0,0.55); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; pointer-events: none; transition: opacity 0.3s; }
.ba-scratch.ready:hover .ba-hint { opacity: 0; }

/* ===== Cotizador instantaneo ===== */
.quote-card { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.qc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.qc-grid label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--brand-primary); }
[data-mode="dark"] .qc-grid label, [data-mode="dark"] .qc-extras-title { color: var(--text); }
.qc-grid select, .qc-grid input { padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; font: inherit; color: var(--text); background: var(--bg); }
.qc-extras { margin-top: 18px; }
.qc-extras-title { font-size: 0.85rem; font-weight: 600; color: var(--brand-primary); display: block; margin-bottom: 10px; }
.qc-extra-list { display: flex; flex-wrap: wrap; gap: 10px; }
.qc-chip { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 0.9rem; }
.qc-chip small { color: var(--brand-accent); font-weight: 600; }
.qc-result { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 12px; padding: 18px 22px; border-radius: 14px; background: var(--green-100); border: 1px solid var(--border); }
.qc-result span { font-weight: 600; color: var(--muted); font-size: 1rem; }
.qc-result strong { font-family: var(--font-head); font-size: 2rem; color: var(--brand-primary); }
[data-mode="dark"] .qc-result strong { color: var(--text); }
.qc-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; }
.quote-card .btn { width: 100%; justify-content: center; }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 20px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-icon { font-size: 1.5rem; line-height: 1; color: var(--brand-accent); transition: transform 0.25s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding: 0 20px 18px; color: var(--muted); }

/* ===== Responsive ===== */

/* Pantallas medianas: reducir el espacio del menu antes de pasar a hamburguesa */
@media (max-width: 1180px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.88rem; }
  .nav { gap: 14px; }
}

/* Tablets y menu movil */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-tools { margin-left: auto; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.25s;
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links a { padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .nav-backdrop { display: block; position: fixed; inset: 0; top: 0; background: rgba(0,0,0,0.35); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; z-index: 40; }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
  /* Grids de 2 columnas en tablet */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets pequeñas */
@media (max-width: 980px) {
  .about, .contact, .footer-grid { grid-template-columns: 1fr; }
  .about { gap: 30px; }
  .about-media { padding: 30px; }
  .about-media img { max-height: 180px; }
  .footer-grid { gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .contact { gap: 30px; }
  .ba-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .qc-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablets chicas / moviles grandes */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding-top: 40px; }
  .hero.has-bg { min-height: 80vh; }
  .carousel-wrap { padding-top: 30px; padding-bottom: 50px; }
  .services-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .booking-grid { grid-template-columns: 1fr 1fr; }
  .clients-row { gap: 24px; }
  .client-logo img { max-width: 110px; max-height: 44px; }
  /* Visor de video más grande en tablet */
  .video-modal-card { max-width: 90vw; }
  /* Post modal */
  .post-modal-card { max-height: 92vh; }
  .post-modal-card img { max-height: 200px; }
  /* Banner festivo */
  .festive-banner { font-size: 0.95rem; padding: 12px 14px; }
  .festive-banner .festive-decos { font-size: 1.1rem; letter-spacing: 0.2em; }
}

/* Teléfonos */
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }
  .container { padding: 0 16px; }
  .brand-logo { height: 38px; }
  .hero { padding-top: 28px; }
  .hero.has-bg { min-height: 75vh; }
  .hero-text h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .hero-text p { font-size: 0.95rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1; justify-content: center; min-width: 0; padding: 11px 16px; font-size: 0.9rem; }
  .carousel-wrap { padding-top: 22px; padding-bottom: 36px; }
  .service-card, .plan-card, .testimonial-card, .blog-body { padding: 22px 18px; }
  .service-icon { width: 46px; height: 46px; }
  .service-icon svg { width: 22px; height: 22px; }
  .plan-price { font-size: 1.6rem; }
  .contact-form, .booking-form { padding: 20px 16px; }
  .booking-grid { grid-template-columns: 1fr; }
  .qc-grid { grid-template-columns: 1fr; }
  .qc-result { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; }
  .qc-result strong { font-size: 1.5rem; }
  .qc-coupon { flex-direction: column; align-items: stretch; }
  .qc-coupon .btn { width: 100%; justify-content: center; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .video-play { width: 48px; height: 48px; }
  .video-play svg { width: 20px; height: 20px; }
  .video-card .video-caption { padding: 8px 12px; font-size: 0.82rem; }
  .video-modal-card { max-width: 100vw; }
  .video-modal { padding: 12px; }
  .video-modal-close { top: 8px; right: 8px; width: 34px; height: 34px; background: rgba(0,0,0,0.6); font-size: 1.2rem; }
  .nav-tools { gap: 4px; }
  .icon-btn { width: 36px; height: 36px; font-size: 0.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .footer-links { gap: 8px; }
  .footer-logo { height: 40px; margin: 0 auto 10px; display: block; }
  /* Blog modal */
  .post-modal { padding: 10px; }
  .post-modal-card { border-radius: 16px; }
  .post-modal-body { padding: 20px 18px; }
  .post-modal-close { top: 8px; right: 8px; }
  /* Banner festivo */
  .festive-banner { font-size: 0.85rem; padding: 10px 12px; }
  .festive-banner .festive-decos { font-size: 1rem; letter-spacing: 0.15em; }
  /* FAQ */
  .faq-q { padding: 14px 16px; font-size: 0.95rem; }
  .faq-a-inner { padding: 0 16px 14px; font-size: 0.92rem; }
  /* Clients */
  .clients-row { gap: 18px; }
  .client-logo { height: 40px; }
  .client-logo img { max-height: 40px; max-width: 90px; }
  /* Map */
  .map-wrap iframe { min-height: 180px; }
}

/* Teléfonos muy pequeños */
@media (max-width: 380px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-text h1 { font-size: 1.7rem; }
  .plan-card { padding: 18px 14px; }
  .plan-price { font-size: 1.4rem; }
  .video-grid { grid-template-columns: 1fr; }
  .booking-form { padding: 16px 12px; }
  .contact-form { padding: 18px 14px; }
  .festive-banner { font-size: 0.78rem; padding: 8px 10px; }
  .festive-banner .festive-decos { font-size: 0.9rem; }
}

/* ===== Estados de carga / error del sitio ===== */
.site-loader { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.site-loader-spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--brand-accent); animation: mimmo-spin 0.8s linear infinite; }
@keyframes mimmo-spin { to { transform: rotate(360deg); } }
.site-error { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
.site-error-card { text-align: center; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow); }
.site-error-card h2 { color: var(--brand-primary); margin-bottom: 8px; }
.site-error-card p { color: var(--muted); margin-bottom: 18px; }
@media (prefers-reduced-motion: reduce) { .site-loader-spinner { animation-duration: 2s; } }

/* ===== Validacion de formularios ===== */
.form-feedback.error { color: #c62828; }
.contact-form input.invalid, .contact-form textarea.invalid,
.booking-form input.invalid, .booking-form textarea.invalid,
.contact-form select.invalid, .booking-form select.invalid { border-color: #c62828; outline-color: #c62828; }
.wa-cta { display: inline-flex; margin-top: 10px; padding: 8px 16px; font-size: 0.9rem; }

/* Mientras el visor de video esta abierto, congelamos las animaciones de fondo
   para que no le roben cuadros a la reproduccion (evita el video entrecortado). */
body.video-open .decorations,
body.video-open .cursor-deco { display: none !important; }
body.video-open .deco,
body.video-open .reveal-item { animation-play-state: paused !important; }

/* ===== Banner festivo ===== */
.festive-banner { display: block; text-align: center; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; padding: 14px 16px; position: relative; z-index: 101; line-height: 1.4; }
.festive-banner .festive-decos { display: block; font-size: 1.3rem; letter-spacing: 0.3em; margin-top: 4px; }
.festive-chile { background: linear-gradient(135deg, #0039A6 30%, #D52B1E 70%); color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.5); border-bottom: 3px solid #fff; }
.festive-navidad { background: linear-gradient(135deg, #1a4a1a 0%, #B22222 50%, #1a4a1a 100%); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.4); border-bottom: 3px solid #D4AF37; }

/* ===== Campo de cupón en el cotizador ===== */
.qc-coupon-wrap { margin-top: 4px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.qc-coupon-toggle { display: flex; align-items: center; gap: 6px; padding: 12px 16px; font-size: 0.88rem; font-weight: 500; color: var(--muted); cursor: pointer; list-style: none; transition: color 0.2s, background 0.2s; }
.qc-coupon-toggle::-webkit-details-marker { display: none; }
.qc-coupon-toggle::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform 0.2s; }
.qc-coupon-wrap[open] .qc-coupon-toggle::after { transform: rotate(45deg); }
.qc-coupon-wrap[open] .qc-coupon-toggle { color: var(--brand-primary); background: var(--green-100); }
.qc-coupon { display: flex; gap: 8px; align-items: center; padding: 12px 16px 6px; }
.qc-coupon input { flex: 1; min-width: 0; padding: 10px 13px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: var(--bg); color: var(--text); }
.qc-coupon-wrap .qc-coupon-msg,
#qcCouponMsg { display: block; padding: 0 16px 12px; font-size: 0.84rem; }
.qc-coupon-msg.ok    { color: #2e7d32; font-weight: 600; }
.qc-coupon-msg.error { color: #c62828; }

/* ===== Colapso móvil: tarjetas expandibles ===== */
@media (max-width: 767px) {
  .service-card.collapsed .service-desc { display: none; }
  .plan-card.collapsed .plan-features { display: none; }
  .btn-expand { display: block; background: none; border: 0; color: #c62828; font-size: 0.85rem; font-weight: 600; cursor: pointer; padding: 6px 0; margin-top: 4px; }
  .mob-collapsed > *:not(.mob-reveal-btn):not(h2):not(.section-head) { display: none; }
  .mob-collapsed { text-align: center; }
  .mob-reveal-btn { margin: 12px auto 0; }
  .video-pager { display: flex; gap: 10px; justify-content: center; grid-column: 1 / -1; padding-top: 14px; }
}
@media (min-width: 768px) {
  .btn-expand { display: none; }
  .video-pager { display: none; }
}

/* ===== Video en el carrusel ===== */
.slide-video { position: relative; background: #000; }
.slide-vid { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Swiper bullets accesibles (min 24px target) ===== */
.swiper-pagination-bullet { width: 12px; height: 12px; margin: 0 6px !important; }
.swiper-pagination-bullet-active { transform: scale(1.3); }
