/* ---------- Tokens: paleta del manual de marca ----------
   El azul del logo marca lo activo: botones, corriente encendida y acentos puntuales. */
:root {
  --paper: #e9ecef;
  --white: #ffffff;
  --ink: #111418;
  --blue: #2e8ccb;
  --blue-deep: #1f6fa8;
  --gray: #8a8f96;
  --blue-btn: #2579b8;      /* azul de marca, un punto más oscuro para que el texto blanco se lea */
  --soft: #4b5158;          /* texto secundario sobre claro */
  --line: rgba(17, 20, 24, .16);
  --radius: 3px;            /* esquinas de panel de vidrio */
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Tipografía: gruesa como "SMART" en el titular, fina como "GLASS" en los títulos */
h2 { font-size: clamp(1.9rem, 3.9vw, 3.1rem); font-weight: 300; line-height: 1.1; letter-spacing: -.03em; max-width: 18ch; }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.lead { font-size: 1.06rem; color: var(--soft); max-width: 56ch; }
.lead + .lead { margin-top: 14px; }
.section__head { margin-bottom: clamp(36px, 5vw, 60px); }
.section__head .lead { margin-top: 18px; }

/* ---------- Temas ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--white { background: var(--white); }
.dark { background: var(--ink); color: #fff; --line: rgba(255, 255, 255, .2); --soft: rgba(255, 255, 255, .72); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: var(--radius);
  background: var(--blue-btn); color: #fff; font: inherit; font-weight: 600; font-size: .92rem;
  border: 1.5px solid var(--blue-btn); cursor: pointer; text-align: center;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--small { padding: 10px 18px; font-size: .86rem; }
.btn--block { width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand__img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: .88rem; font-weight: 500; }
.nav__links a:not(.btn) { color: var(--soft); }
.nav__links a:not(.btn):hover { color: var(--blue-deep); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform .25s; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); }
.hero__inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; text-wrap: balance; margin-bottom: 26px; }
.hero__title span { color: var(--blue); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* Zona de servicio, marcada con el triángulo del logo */
.area { display: flex; align-items: center; gap: 12px; margin-top: 34px; font-weight: 600; font-size: .96rem; }
.area svg { flex: none; width: 18px; fill: var(--blue); }

/* Interruptor */
.power {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 20px; padding: 4px 0;
  background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.power__track { flex: none; position: relative; width: 68px; height: 38px; border-radius: 999px; background: var(--gray); transition: background .3s; }
.power__knob { position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%; background: #fff; transition: transform .3s; }
.power[aria-checked="true"] .power__track { background: var(--blue); }
.power[aria-checked="true"] .power__knob { transform: translateX(30px); }
.power__text { display: grid; line-height: 1.3; }
.power__text span { font-size: .86rem; color: var(--soft); }
.power__text strong { font-size: 1.05rem; font-weight: 600; }

/* Demo: dos fotos reales (encendido y apagado) que se funden al mover el interruptor */
.hero__demo { width: 100%; }
.demo {
  position: relative; aspect-ratio: 776 / 445; overflow: hidden; border-radius: var(--radius);
}
.demo__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo__photo--off { opacity: 0; transition: opacity .7s ease; }
.hero[data-state="frosted"] .demo__photo--off { opacity: 1; }

/* ---------- Resultados ---------- */
.states img { width: 100%; aspect-ratio: 828 / 326; object-fit: cover; border-radius: var(--radius); }
.states__caption { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.states__caption p { color: var(--soft); font-size: .95rem; max-width: 40ch; padding-top: 14px; border-top: 2px solid var(--gray); }
.states__caption p:first-child { border-top-color: var(--blue); }
.states__caption strong { display: block; color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.note { margin-top: 28px; font-size: .82rem; color: var(--soft); }

/* ---------- Producto ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.product h2 { margin-bottom: 22px; }
.specs { margin-top: 44px; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--soft); font-size: .92rem; }
.specs dd { font-weight: 600; text-align: right; }

.how { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.how__item h3 { margin-top: 18px; }
.how__item p { font-size: .9rem; color: var(--soft); margin-top: 6px; }
.how__svg { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.how__svg ellipse { fill: var(--gray); }
.how__svg[data-mode="on"] ellipse { fill: var(--blue); }

/* ---------- Opciones ---------- */
.group { padding-bottom: 12px; border-bottom: 2px solid var(--blue); margin-bottom: 28px; }
.trio + .group { margin-top: 64px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.option h4 { margin-top: 18px; }
.option p { font-size: .93rem; color: var(--soft); margin-top: 6px; max-width: 36ch; }
.shot { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; max-width: 260px; }
.swatches li { width: 18px; height: 18px; border-radius: 50%; background: var(--c); }

/* El logo "recortado" en la película: máscara con la silueta de la marca */
.logo-demo__frost {
  position: absolute; inset: 0; background: rgba(250, 252, 255, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'%3E%3Cpath fill-rule='evenodd' d='M0 0H600V400H0Z M280.5 109H319.5L442 290H383L300 160L217 290H158Z M300 226.5L343 290H257Z'/%3E%3C/svg%3E") center / cover no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'%3E%3Cpath fill-rule='evenodd' d='M0 0H600V400H0Z M280.5 109H319.5L442 290H383L300 160L217 290H158Z M300 226.5L343 290H257Z'/%3E%3C/svg%3E") center / cover no-repeat;
}
.gray-demo__tint { position: absolute; top: 0; bottom: 0; right: 0; width: 55%; background: rgba(54, 60, 68, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); border-left: 2px solid rgba(255, 255, 255, .8); }

.layers { display: block; width: 100%; aspect-ratio: 3 / 2; background: var(--white); border-radius: var(--radius); padding: 12% 10%; }
.layers .l-glass { fill: #dfe5ea; stroke: var(--gray); }
.layers .l-film { fill: var(--blue); }
.layers .l-wire { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.layers .l-sun { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }

/* ---------- Aplicaciones ---------- */
.uses { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 20px; }

/* ---------- Beneficios ---------- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.perks li { border-top: 2px solid var(--blue); padding-top: 22px; }
.perks svg { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.perks .perk__x, .perks .perk__fill { stroke: var(--blue); stroke-width: 3; }
.perks p { color: var(--soft); font-size: .95rem; margin-top: 6px; max-width: 34ch; }
.use img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.use figcaption { margin-top: 12px; font-weight: 600; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { border-top: 1px solid var(--ink); padding-top: 18px; }
.steps__num { display: block; font-size: 3.6rem; font-weight: 300; line-height: 1; letter-spacing: -.04em; margin-bottom: 26px; color: var(--blue); }
.steps p { color: var(--soft); font-size: .95rem; margin-top: 6px; max-width: 32ch; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact h2 { margin-bottom: 22px; }
.contact__list { margin-top: 40px; border-top: 1px solid var(--line); }
.contact__list div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__list dt { font-size: .86rem; color: var(--soft); }
.contact__list dd { font-weight: 600; }
.contact__list a { word-break: break-all; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 4px; }

.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 36px; display: grid; gap: 18px; --line: rgba(17, 20, 24, .22); --soft: #4b5158; }
.form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: .95rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.form input.vh { width: 1px; height: 1px; padding: 0; border: 0; }
.form .is-invalid { border-color: #c62f2f; border-width: 2px; }
.form__note { font-size: .88rem; color: var(--soft); min-height: 1.2em; }
.form__result { display: grid; gap: 12px; }
.form__result[hidden] { display: none; }
.form__result textarea { font-size: .88rem; background: var(--paper); resize: vertical; }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form__hint { font-size: .84rem; color: var(--soft); }

/* ---------- Footer ---------- */
.footer { padding: 28px 0; font-size: .84rem; color: var(--soft); border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer__logo { height: 22px; width: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner, .contact, .product { grid-template-columns: 1fr; }
  .contact, .product { gap: 48px; }
  .hero__demo { max-width: 640px; }
  .perks { grid-template-columns: 1fr; gap: 28px; }
  .trio { gap: 24px; }
  .uses { grid-template-columns: 1fr 1fr; }
  .use:last-child { grid-column: 1 / -1; }
  .use:last-child img { aspect-ratio: 2 / 1; }
}
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__inner { height: 72px; }
  .brand__img { height: 32px; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; }
  .nav__links .btn { margin-top: 8px; }
  .trio, .steps { grid-template-columns: 1fr; }
  .trio { gap: 36px; }
  .states__caption { grid-template-columns: 1fr; gap: 16px; }
  .states img { aspect-ratio: 3 / 2; }
}
@media (max-width: 520px) {
  .how { grid-template-columns: 1fr; }
  .uses { gap: 24px 14px; }
  .use figcaption { font-size: .9rem; }
  .form { padding: 24px 18px; }
  .specs div { flex-direction: column; gap: 2px; }
  .specs dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
