:root {
  --azul: #032950;
  --azul-hover: #0A3A66;
  --blanco: #F4F5F7;
  --naranjo: #F77C0A;
  --gris: #676767;
  --gris-claro-txt: #C9D3DE;
  --gris-medio-txt: #9AA3AE;
  --gris-suave-txt: #A9B4C0;
  --gris-body-claro: #4A5A6E;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--blanco);
  color: var(--azul);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
::selection { background: var(--naranjo); color: var(--azul); }

.container-narrow { max-width: 780px; margin: 0 auto; }
.container-wide { max-width: 1100px; margin: 0 auto; }

.section-pad { padding: 110px 6vw; }

.h2-dark {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  color: var(--azul);
  font-weight: 600;
  margin: 0 0 46px;
}
.h2-light {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  color: var(--blanco);
  margin: 0 0 16px;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-hero { opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .7s ease; }
.hero-body.reveal-hero, .hero-cta-row.reveal-hero, .hero-guarantee.reveal-hero { transform: translateY(28px); }
.hero-loaded .reveal-hero { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-hero { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 6vw;
  background: rgba(244,245,247,0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(3,41,80,0.08);
}
.nav-logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; transition: opacity .2s; }
.nav-logo-link:hover { opacity: .85; }
.nav-logo { width: 68px; height: 68px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; transition: width .2s, height .2s; }
.nav-logo img { width: 100%; height: 100%; object-fit: contain; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-link { font-weight: 500; font-size: 14px; color: var(--azul); text-decoration: none; transition: color .2s; }
.nav-link:hover { color: var(--naranjo); }
.nav-cta-group { display: flex; align-items: center; gap: 20px; }
.nav-cta {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; color: var(--blanco);
  background: var(--azul); border: none; padding: 12px 22px; border-radius: 4px; cursor: pointer;
  white-space: nowrap; transition: transform .2s, background .2s;
}
.nav-cta:hover { background: var(--azul-hover); transform: translateY(-1px); }

/* HERO */
.hero { position: relative; min-height: 74vh; display: flex; align-items: center; background: var(--azul); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; background: var(--azul); }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.hero-content { position: relative; padding: 70px 6vw; max-width: 860px; }
.hero-eyebrow {
  font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--naranjo); margin: 0 0 20px; font-weight: 600; line-height: 1.4;
}
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.stars { display: flex; gap: 2px; color: var(--naranjo); }
.hero-badge-text { font-size: 14px; color: var(--gris-claro-txt); }
.hero-badge-text strong { color: var(--naranjo); font-family: 'Poppins', sans-serif; font-size: 18px; }
.hero-headline {
  font-family: 'Poppins', sans-serif; font-size: clamp(38px, 4.6vw, 54px); line-height: 1.18;
  color: var(--blanco); margin: 0 0 20px; font-weight: 700;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.8);
}
.hero-headline .word { display: inline-block; opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; margin-right: .28em; }
.hero-loaded .hero-headline .word { opacity: 1; transform: translateY(0); }
.hero-body {
  font-size: 19px; line-height: 1.55; color: #E4E9EF; max-width: 560px; margin: 0 0 34px; font-weight: 400;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.8);
}
.hero-cta-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 16px; color: var(--azul);
  background: var(--naranjo); border: 2px solid var(--naranjo); padding: 16px 30px; border-radius: 4px;
  cursor: pointer; box-shadow: 0 4px 18px rgba(247,124,10,0.4); transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(247,124,10,0.5); }
.hero-secondary-link {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 15px; color: var(--blanco); text-decoration: none;
  border-bottom: 1px solid rgba(244,245,247,0.4); padding-bottom: 2px; transition: border-color .2s;
}
.hero-secondary-link:hover { border-color: var(--blanco); }
.hero-guarantee { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; color: var(--gris-claro-txt); }

/* STAKES */
.stakes-list { display: flex; flex-direction: column; gap: 28px; }
.stakes-item { display: flex; gap: 18px; align-items: flex-start; }
.stakes-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--naranjo); margin-top: 11px; flex-shrink: 0; }
.stakes-item p { font-size: 18px; line-height: 1.6; color: var(--gris); margin: 0; }

.compare-labels { display: flex; justify-content: space-between; margin-top: 60px; margin-bottom: 12px; }
.compare-labels span { font-family: 'Poppins', sans-serif; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; font-weight: 600; color: var(--azul); }
.compare-wrap { position: relative; width: 100%; aspect-ratio: 1600/702; border-radius: 8px; overflow: hidden; user-select: none; touch-action: none; }
.compare-base, .compare-overlay { position: absolute; inset: 0; }
.compare-base img, .compare-overlay img { width: 100%; height: 100%; object-fit: cover; }
.compare-overlay { clip-path: inset(0 50% 0 0); }
.compare-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--naranjo); transform: translateX(-1px); pointer-events: none; }
.compare-handle {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%;
  background: var(--naranjo); transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center;
  cursor: ew-resize; box-shadow: 0 3px 10px rgba(0,0,0,0.4); outline: none;
}

/* PILLARS */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; margin-top: 40px; }
.pillar {
  border-top: 2px solid var(--naranjo); padding: 24px 20px 20px; margin: 0 -20px; border-radius: 0 0 8px 8px;
  transition: transform .35s cubic-bezier(0.22,1,0.36,1), box-shadow .35s ease, background .35s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0,0,0,0.25); background: var(--azul-hover); }
.pillar h3 { font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 600; color: var(--blanco); margin: 0 0 14px; line-height: 1.3; }
.pillar p { font-size: 16px; line-height: 1.6; color: var(--gris-claro-txt); margin: 0; text-align: justify; }

/* GUIA */
.guia-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 64px; align-items: center; }
.guia-photo-slot {
  width: 100%; max-width: 280px; margin: 0 auto; aspect-ratio: 4/5; border-radius: 8px;
  overflow: hidden; box-shadow: 0 24px 48px rgba(3,41,80,0.14);
  transition: transform .4s cubic-bezier(0.22,1,0.36,1);
}
.guia-photo-slot:hover { transform: translateY(-4px); }
.guia-photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.guia-text { position: relative; }
.guia-text blockquote {
  font-family: 'Poppins', sans-serif; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.45; color: var(--azul);
  font-weight: 500; margin: 0 0 30px; font-style: normal;
}
.guia-meta { font-weight: 600; font-size: 16px; color: var(--azul); margin-bottom: 18px; }
.guia-stat-label { font-size: 20px; color: var(--azul); font-weight: 500; border-top: 1px solid #D8DCE3; padding-top: 20px; }
.guia-stat-num { color: var(--naranjo); font-family: 'Poppins', sans-serif; font-size: 28px; }

/* PORTAFOLIO */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
.chip {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px; color: var(--blanco);
  background: rgba(244,245,247,0.12); border: 1px solid rgba(244,245,247,0.25); padding: 8px 16px; border-radius: 20px;
  cursor: default; transition: background .2s, border-color .2s, transform .2s;
}
.chip:hover { background: rgba(247,124,10,0.18); border-color: var(--naranjo); transform: translateY(-2px); }
.demo-wrap { max-width: 800px; margin: 0 auto 60px; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #E4E7EB; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); background: #000; cursor: pointer; }
.video-play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.15); border: none; cursor: pointer;
}
.video-play-btn span { width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; }
.video-frame.is-playing .video-play-btn { display: none; }
.video-mute-btn {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.55); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.portfolio-caption { text-align: center; color: var(--gris-medio-txt); font-size: 15px; margin: 0 0 30px; }
.portfolio-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.portfolio-thumb { width: 90px; overflow: hidden; border-radius: 6px; transition: box-shadow .35s ease; }
.portfolio-thumb:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.4); }
.portfolio-thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; opacity: .9; filter: saturate(.82) contrast(1.06) brightness(.98) sepia(.1); transition: transform .5s cubic-bezier(0.22,1,0.36,1); }
.portfolio-thumb:hover img { transform: scale(1.08); }

/* PLAN */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.plan-step { padding: 36px 30px; border-radius: 6px; transition: transform .35s cubic-bezier(0.22,1,0.36,1), box-shadow .35s ease; }
.plan-step:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 16px 32px rgba(3,41,80,0.18); }
.plan-light { background: #EDEFF3; }
.plan-dark { background: var(--azul); }
.plan-num { font-family: 'Poppins', sans-serif; font-size: 40px; font-weight: 700; color: var(--naranjo); margin-bottom: 18px; opacity: .9; }
.plan-light p { font-size: 16px; line-height: 1.6; color: var(--azul); margin: 0; }
.plan-dark p { font-size: 16px; line-height: 1.6; color: var(--gris-claro-txt); margin: 0; }
.btn-dark {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 16px; color: var(--blanco);
  background: var(--azul); border: none; padding: 16px 34px; border-radius: 4px; cursor: pointer; transition: background .2s, color .2s;
}
.btn-dark:hover { background: var(--naranjo); color: var(--azul); }

/* EXPLICATIVO */
.brands-row { display: flex; justify-content: center; align-items: center; gap: 56px; margin-bottom: 40px; flex-wrap: wrap; }
.brand-logo { width: 160px; height: 56px; object-fit: contain; }
.explain-text { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.7; color: var(--blanco); text-align: center; }
.explain-text strong { color: var(--blanco); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #FFFFFF; border-radius: 12px; box-shadow: 0 2px 10px rgba(3,41,80,0.06);
  transition: box-shadow .35s cubic-bezier(0.22,1,0.36,1), transform .35s cubic-bezier(0.22,1,0.36,1); overflow: hidden;
}
.faq-item.is-open { box-shadow: 0 16px 34px rgba(3,41,80,0.16); transform: translateY(-3px); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: none; padding: 24px 26px; cursor: pointer; text-align: left;
  transition: padding-left .25s ease, background .25s ease;
}
.faq-q:hover { padding-left: 32px; background: rgba(247,124,10,0.04); }
.faq-q-text { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 600; color: var(--azul); transition: color .3s ease; }
.faq-item.is-open .faq-q-text { color: var(--naranjo); }
.faq-icon {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(247,124,10,0.12); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s cubic-bezier(0.34,1.56,0.64,1), background .3s ease;
}
.faq-item.is-open .faq-icon { background: var(--naranjo); transform: rotate(135deg); }
.faq-item.is-open .faq-icon svg { stroke: #FFFFFF; }
.faq-a-wrap { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(0.22,1,0.36,1); }
.faq-item.is-open .faq-a-wrap { max-height: 300px; }
.faq-a {
  font-size: 16px; line-height: 1.6; color: var(--gris-body-claro); margin: 0 26px 24px; max-width: 620px;
  opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease;
}
.faq-item.is-open .faq-a { opacity: 1; transform: translateY(0); transition-delay: .1s; }

/* REVIEWS */
.reviews-stars-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 32px; }
.reviews-verified-text { font-size: 15px; color: var(--gris-claro-txt); }
.reviews-header-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.reviews-header-label { font-weight: 600; font-size: 14px; color: var(--blanco); }
.reviews-arrows { display: flex; gap: 8px; margin-left: 8px; }
.reviews-arrow {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(244,245,247,0.12); border: 1px solid rgba(244,245,247,0.25);
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s;
}
.reviews-arrow:hover { background: var(--naranjo); border-color: var(--naranjo); }
.reviews-carousel {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  gap: 20px; text-align: left; margin: 0 -6vw 32px; padding: 4px 6vw 12px; scrollbar-width: none;
}
.reviews-carousel::-webkit-scrollbar { display: none; }
.review-card {
  background: #FFFFFF; border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px;
  flex: 0 0 300px; scroll-snap-align: start; border-top: 3px solid var(--naranjo); box-shadow: 0 4px 16px rgba(3,41,80,0.1);
  transition: transform .3s cubic-bezier(0.22,1,0.36,1), box-shadow .3s ease;
}
.review-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(3,41,80,0.28); }
.review-text { font-size: 14px; line-height: 1.65; color: var(--gris-body-claro); margin: 0; flex-grow: 1; }
.review-footer { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid #EDEFF3; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--azul), var(--azul-hover));
  color: var(--blanco); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.review-footer > div { display: flex; flex-direction: column; }
.review-name { font-weight: 600; font-size: 14px; color: var(--azul); }
.review-sub { font-size: 12px; color: var(--gris-medio-txt); }

/* FOOTER */
footer { background: var(--azul); }
.footer-cta { background: var(--blanco); padding: 100px 6vw; text-align: center; }
.footer-cta h2 { margin-bottom: 36px; }
.footer-bottom { padding: 60px 6vw 50px; }
.footer-inner { max-width: 900px; margin: 0 auto; padding-top: 34px; border-top: 1px solid rgba(3,41,80,0.1); }
footer .footer-inner { border-top-color: rgba(244,245,247,0.15); }
.footer-legal { font-size: 14px; color: var(--gris-claro-txt); margin: 0 0 20px; text-align: left; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 14px; }
.footer-comunas, .footer-contact a { color: var(--gris-claro-txt); }
.footer-contact { display: flex; flex-direction: column; gap: 4px; }
.footer-contact a { text-decoration: none; transition: color .2s; }
.footer-contact a:hover { color: var(--naranjo); }
.footer-social { display: flex; gap: 16px; align-items: center; }
.footer-social a { color: var(--gris-claro-txt); display: flex; transition: color .2s; }
.footer-social a:hover { color: var(--naranjo); }
.footer-credit { max-width: 900px; margin: 24px auto 0; text-align: center; }
.footer-credit a { font-size: 13px; color: var(--gris-medio-txt); text-decoration: none; transition: color .2s; }
.footer-credit a:hover { color: var(--naranjo); }

/* FLOATING BUTTON */
.floating-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 60; display: flex; align-items: center; gap: 10px;
  background: var(--naranjo); color: var(--azul); border: none; padding: 15px 22px; border-radius: 50px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3); transition: opacity .3s, transform .2s;
}
.floating-btn:hover { transform: translateY(-2px); }
.floating-btn.is-hidden { display: none; }

/* MOBILE */
@media (max-width: 720px) {
  .section-pad { padding-top: 64px !important; padding-bottom: 64px !important; }
  .guia-grid { grid-template-columns: 1fr !important; gap: 28px !important; text-align: center !important; }
  .guia-photo-slot { max-width: 160px !important; }
  .guia-text blockquote { font-size: 16px !important; text-align: left !important; }
  .guia-meta { text-align: left !important; }
  .pillar p { text-align: left !important; }
  .portfolio-grid { flex-wrap: wrap !important; justify-content: center !important; gap: 16px !important; }
  .hero .hero-bg { background: rgba(0,0,0,0.15); }
  .nav-link { display: none !important; }
  .nav-logo { width: 52px !important; height: 52px !important; }
  .nav-cta { padding: 9px 16px !important; font-size: 13px !important; }
  .hero { min-height: 82vh !important; align-items: center !important; }
  .footer-row { flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 14px !important; }
  .review-card { flex: 0 0 82% !important; }
  .reviews-arrows { display: none !important; }
  .footer-comunas { max-width: 320px; }
  .hero-content { padding: 0 6vw !important; }
  .hero-eyebrow { font-size: 11.5px !important; letter-spacing: 1px !important; margin-bottom: 16px !important; }
  .hero-badges { margin-bottom: 18px !important; gap: 6px !important; }
  .hero-badges span { font-size: 13px !important; }
  .hero-badge-text strong { font-size: 16px !important; }
  .hero-headline { font-size: clamp(30px, 8.5vw, 40px) !important; line-height: 1.22 !important; margin-bottom: 16px !important; }
  .hero-body { font-size: 16px !important; line-height: 1.5 !important; margin-bottom: 26px !important; max-width: 100% !important; }
  .hero-cta-row { gap: 14px !important; }
  .hero-cta-row button { width: 100% !important; text-align: center !important; padding: 15px 24px !important; font-size: 15px !important; }
  .hero-cta-row a { font-size: 14px !important; }
  .hero-guarantee { font-size: 13px !important; margin-top: 16px !important; }
}
