/* HidroLife · web pública. Maquetación de la demo con los dos azules del logo. */
:root {
  /* Azules muestreados del logo: trazo de la "H" (marino) y de "life" (brillante). */
  --navy: #001f4f;
  --blue: #016ee0;
  --navy-rgb: 0 31 79;
  --blue-rgb: 1 110 224;

  --ink: var(--navy);
  --blue-dark: #0157b8;
  --muted: #5a6d88;
  --muted-light: #8797ad;
  --line: #dfe8f3;
  --paper: #fff;
  --bg: #eef4fb;
  --tint: #e6effc;
  --tint-strong: #cfe0f7;
  --field: #f7fafd;
  --shadow: 0 25px 70px rgb(var(--navy-rgb) / .10);
  --sector-premio: var(--blue);
  --sector-nada: #f2f7fe;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--ink);
  background: radial-gradient(ellipse 55% 55% at 85% 5%, #d4e5fa 0%, transparent 75%),
    radial-gradient(ellipse 65% 50% at -10% 95%, #dde9f8 0%, transparent 80%), var(--bg);
  font-family: Inter, "Avenir Next", Avenir, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45; -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit }
button { cursor: pointer }
button:disabled { cursor: wait; opacity: .6 }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px }

.site-shell { width: min(1090px, calc(100% - 48px)); margin: auto; min-height: 100dvh; display: flex; flex-direction: column }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 27px 0 12px }
.brand { display: flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none }
.brand img { width: 37px; height: 46px }
.brandname { font-size: 27px; line-height: .98; font-weight: 800; letter-spacing: -1.4px; display: inline-block }
.brandname > span { font-weight: 450; color: var(--blue) }
.brandname small { display: block; font-size: 8px; font-weight: 800; letter-spacing: 3.3px; margin-top: 5px; color: var(--muted) }

main { flex: 1; display: flex; align-items: center; justify-content: center }
.screen { display: none; width: 100%; animation: up .46s cubic-bezier(.2, .8, .2, 1) }
.screen.active { display: block }
@keyframes up { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: translateY(0) } }

.screen-welcome { display: none; grid-template-columns: 1.05fr .95fr; gap: 3%; align-items: center; min-height: 620px }
.screen-welcome.active { display: grid }
.welcome-content { padding: 32px 0 54px }
.eyebrow, .section-kicker { font-size: 11px; letter-spacing: 2.2px; font-weight: 850; color: var(--blue) }
.sparkle { font-size: 20px; vertical-align: -1px; margin-right: 6px; color: var(--blue) }
h1, h2, h3, p { margin-top: 0 }
h1 { font-weight: 850; letter-spacing: -3.7px; font-size: clamp(58px, 6.3vw, 91px); line-height: 1.07; margin: 21px 0 21px }
em { font-style: normal; color: var(--blue) }
.subtitle { font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 475px; margin-bottom: 25px }
.benefit-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px }
.benefit-pills span { border: 1px solid var(--tint-strong); border-radius: 30px; background: #fff9; padding: 7px 11px; font-size: 11px; font-weight: 700; color: var(--navy) }
.btn { border: none; border-radius: 17px; font-weight: 800; padding: 17px 23px; min-height: 58px; transition: transform .15s ease, box-shadow .2s ease; letter-spacing: .08px }
.btn:hover:not(:disabled) { transform: translateY(-2px) }
.btn:active:not(:disabled) { transform: translateY(1px) }
.btn.primary { background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 90%); color: white; box-shadow: 0 13px 24px rgb(var(--blue-rgb) / .26) }
.btn.primary span { margin-left: 16px; font-size: 21px; line-height: .5; vertical-align: -1px }
.btn.outline { background: white; border: 1.5px solid #8db6ea; color: var(--blue-dark); box-shadow: 0 12px 35px rgb(var(--blue-rgb) / .08) }
.microcopy { font-size: 11px; line-height: 1.65; color: var(--muted-light); margin-top: 21px }
.text-link { border: none; padding: 0; background: none; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; font-size: inherit }
.text-link:hover { color: var(--navy) }

.hero-art { height: 510px; position: relative; display: grid; place-items: center }
.orbit { position: absolute; border: 1px solid #bcd3f0; border-radius: 50%; width: 470px; height: 470px; left: 50%; top: 50%; transform: translate(-50%, -50%) }
.orbit-two { width: 380px; height: 380px; background: #dbe8f984 }
.prize-card { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; width: 310px; height: 390px; border: 1px solid #ffffffaa; border-radius: 35px; padding: 25px 22px 24px; box-shadow: 0 28px 65px rgb(var(--blue-rgb) / .19), inset 0 0 50px #ffffff64; background: linear-gradient(145deg, #fff 0%, #eef5ff 46%, #c6dbf6 100%); transform: rotate(8deg) }
.prize-card[hidden] { display: none }
.prize-card:after { content: ""; position: absolute; inset: 10px; border: 1px solid #ffffffcf; border-radius: 29px; pointer-events: none }
.prize-top { display: flex; align-items: center; justify-content: space-between }
.prize-badge { letter-spacing: 1.25px; font-size: 9px; font-weight: 800; padding: 8px 10px; border-radius: 99px; background: #ffffffda; color: var(--blue-dark) }
.prize-shine { font-size: 27px; color: var(--blue) }
.shower-illustration { width: 100%; height: 228px; filter: drop-shadow(0 13px 16px rgb(var(--navy-rgb) / .22)) }
/* Foto del producto: el fondo blanco de las fotos se funde con la tarjeta */
.prize-photo { object-fit: contain; filter: none; mix-blend-mode: multiply }
.shower-illustration.is-hidden { display: none }
.prize-copy { padding-left: 10px }
.prize-copy strong, .prize-copy small { display: block }
.prize-copy strong { font-size: 20px; letter-spacing: -.5px }
.prize-copy small { font-size: 11px; color: var(--muted); margin-top: 2px }
.floating-droplet { z-index: 2; position: absolute; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; color: white; font-size: 29px; box-shadow: 0 12px 35px rgb(var(--blue-rgb) / .23); background: linear-gradient(150deg, #5fa3f0, var(--blue)) }
.drop-one { top: 65px; left: 18px; transform: rotate(-18deg) }
.drop-two { right: 19px; bottom: 68px; width: 46px; height: 46px; font-size: 22px; transform: rotate(12deg) }
.mini-star { position: absolute; right: 30px; top: 50px; font-size: 23px; color: var(--blue) }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--muted-light); font-size: 10px; padding: 23px 0 26px }
.footer .text-link { text-decoration: none; color: var(--muted); font-weight: 550 }
.separator { margin: 0 7px }

.screen-form, .screen-wheel, .screen-result { max-width: 570px; padding: 30px 0 52px }
.form-heading { text-align: center; margin-bottom: 27px }
.form-heading h2, .screen-result h2 { font-size: clamp(35px, 6.1vw, 48px); letter-spacing: -1.65px; line-height: 1.11; margin: 12px 0 11px; font-weight: 850 }
.form-heading > p { font-size: 13px; color: var(--muted); line-height: 1.6 }
.step-track { display: flex; align-items: center; justify-content: center; gap: 7px; margin-bottom: 24px }
.step-dot { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #dbe5f2; color: var(--muted-light); font-size: 11px; font-weight: 850 }
.step-dot.selected { background: var(--blue); color: white }
.step-dot.checked { background: var(--tint-strong); color: var(--navy) }
.step-line { width: 40px; height: 2px; border-radius: 10px; background: #dbe5f2 }
.step-line.selected { background: var(--blue) }
.screen-form form { background: white; border: 1px solid var(--line); padding: 26px 27px 22px; box-shadow: var(--shadow); border-radius: 26px }
.group { margin: 0 0 22px; padding: 0; border: 0; min-width: 0 }
.group legend, .field-label { font-weight: 800; font-size: 13px; color: var(--ink); margin-bottom: 11px; display: block }
.choice-grid { display: grid; gap: 9px }
.water-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) }
.choice-card, .choice-pill { cursor: pointer; position: relative }
.choice-card input, .choice-pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; margin: 0 }
.choice-card > span { display: block; text-align: center }
.choice-card { border: 1.5px solid var(--line); border-radius: 15px; background: var(--field); min-height: 100px; padding: 15px 3px 10px; font-size: 11px; font-weight: 750; color: var(--muted); transition: .15s }
.choice-card .choice-icon { display: block; color: var(--blue); width: 36px; height: 36px; margin: 0 auto 8px }
.choice-card:has(input:checked), .choice-pill:has(input:checked) { border-color: var(--blue); background: var(--tint); color: var(--navy); box-shadow: 0 0 0 3px rgb(var(--blue-rgb) / .09) }
.choice-card:has(input:focus-visible), .choice-pill:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px }
.people-grid { grid-template-columns: repeat(5, 1fr) }
.choice-pill { border: 1.5px solid var(--line); background: var(--field); border-radius: 13px; height: 45px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--muted) }
.group select, .group > input, .phone-field { width: 100%; border: 1.5px solid var(--line); background: var(--field); min-height: 54px; border-radius: 13px; outline: none; color: var(--navy); padding: 0 15px }
.group select:focus, .group > input:focus, .phone-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(var(--blue-rgb) / .09) }
.group select { appearance: none; background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="18" height="12"%3E%3Cpath d="m2 2 7 7 7-7" fill="none" stroke="%235a6d88" stroke-width="2"/%3E%3C/svg%3E'); background-position: right 16px center; background-repeat: no-repeat }
.full { width: 100% }
.phone-field { display: flex; align-items: center; padding: 0 14px; gap: 12px }
.phone-field > span { font-size: 14px; color: var(--muted); white-space: nowrap; padding-right: 11px; border-right: 1px solid var(--line) }
.phone-field > input { outline: none; border: 0; min-width: 0; background: transparent; flex: 1; font-size: 15px }
.notice { padding: 14px; display: flex; gap: 10px; border-radius: 13px; background: var(--tint); color: var(--muted); font-size: 11px; line-height: 1.65; margin-bottom: 20px }
.notice strong { color: var(--navy) }
.notice-icon { font-size: 19px; color: var(--blue); line-height: 1.15 }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; color: var(--muted); line-height: 1.55; margin: 15px 0 }
.checkbox-row input { accent-color: var(--blue); width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px }
.form-error { color: #a73c49; background: #fff0f0; padding: 10px 13px; border-radius: 9px; font-size: 12px }
.back-button { display: block; margin: 15px auto 0; color: var(--muted); border: 0; background: transparent; font-size: 12px; font-weight: 650 }
.trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important }

.screen-wheel { max-width: 565px }
.wheel-heading { margin-bottom: 15px }
/* La caja cuadrada de la ruleta girada desborda a lo ancho en móvil: se recorta solo en horizontal. */
.wheel-wrap { padding: 6px 12px 18px; display: grid; place-items: center; overflow-x: clip }
.wheel-ring { border-radius: 50%; padding: 11px; border: 10px solid var(--tint-strong); box-shadow: 0 23px 51px rgb(var(--blue-rgb) / .2), inset 0 0 0 3px #fff; position: relative; background: white }
.wheel-pointer { position: absolute; z-index: 4; top: -29px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 34px solid var(--navy); filter: drop-shadow(0 2px 2px rgb(var(--navy-rgb) / .33)) }
.wheel { position: relative; border-radius: 50%; width: min(72vw, 345px); height: min(72vw, 345px); border: 5px solid white; background: var(--sector-nada); box-shadow: inset 0 0 0 1px #fff, 0 8px 15px rgb(var(--navy-rgb) / .15); transition: transform 4.8s cubic-bezier(.11, .75, .18, 1) }
.wheel-labels { position: absolute; inset: 0 }
.wheel-label { position: absolute; left: 50%; top: 50%; width: 78px; transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--distance) * -1)) rotate(calc(var(--angle) * -1)); font-weight: 850; text-align: center; font-size: 9px; line-height: 1.25; letter-spacing: .4px; color: #fff; text-shadow: 0 1px 1px rgb(var(--navy-rgb) / .22); overflow-wrap: anywhere }
.wheel-label.loser { color: var(--blue-dark); text-shadow: none }
.wheel-label span { display: block; font-size: 18px; margin-bottom: 3px }
.wheel-labels.denso .wheel-label { width: 60px; font-size: 7.5px }
.wheel-labels.denso .wheel-label span { font-size: 14px }
.wheel-core { position: absolute; width: 81px; height: 81px; border: 7px solid white; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; background: #f4f8fe; box-shadow: 0 4px 15px rgb(var(--navy-rgb) / .27) }
.wheel-core img { width: 33px; height: 41px }
.screen-wheel .btn { max-width: 375px; display: block; margin: 6px auto 0 }
.odds-line { text-align: center; font-size: 10px; color: var(--muted-light); margin-top: 17px }

.screen-result { text-align: center }
.result-icon { height: 110px; width: 110px; border-radius: 50%; display: grid; place-items: center; margin: 10px auto 19px; font-size: 51px; box-shadow: 0 16px 40px rgb(var(--blue-rgb) / .17); background: linear-gradient(145deg, #e3eefd, #a9caf3) }
.result-icon.lost { background: #e9eff7; box-shadow: 0 16px 40px rgb(var(--navy-rgb) / .1) }
.screen-result h2 { font-size: 44px; margin: 13px auto; max-width: 430px }
.result-description { font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 435px; margin: 0 auto 22px }
.result-photo { display: block; max-width: min(100%, 260px); max-height: 220px; object-fit: contain; margin: 0 auto 20px; border-radius: 18px; background: white; box-shadow: var(--shadow) }
.result-photo[hidden] { display: none }
.code-card { background: white; box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: 20px; padding: 19px 15px; margin: 20px auto; width: min(100%, 390px) }
.code-card span, .code-card small { display: block; color: var(--muted-light); font-size: 10px; letter-spacing: 1px }
.code-card strong { display: block; font-size: 25px; letter-spacing: 1.6px; margin: 8px 0; color: var(--blue) }
.code-card small { letter-spacing: 0 }
.result-extra { color: var(--muted); font-size: 13px; max-width: 430px; margin: 12px auto 22px }
.screen-result .btn { max-width: 420px; margin: 10px auto }
.restart-link { display: block; margin: 6px auto 0; padding: 12px 16px; font-size: 14px }
.centered { text-align: center }
.info-success { background: #dff9ea; color: #196e4f; font-size: 13px; padding: 11px; border-radius: 12px }
.info-success.is-error { background: #fff0f0; color: #a73c49 }

#info-dialog { color: var(--ink); border: none; border-radius: 22px; padding: 0; width: min(92vw, 540px); max-height: 86vh; box-shadow: 0 30px 90px rgb(var(--navy-rgb) / .27) }
#info-dialog::backdrop { background: rgb(var(--navy-rgb) / .6); backdrop-filter: blur(4px) }
.dialog-inner { padding: 27px }
.dialog-close { position: absolute; top: 13px; right: 18px; font-size: 29px; background: none; border: 0; color: var(--muted) }
.dialog-inner h3 { font-size: 26px; letter-spacing: -.7px; margin: 5px 20px 17px 0 }
.dialog-body { font-size: 12px; line-height: 1.75; color: var(--muted); max-height: 53vh; overflow: auto; margin-bottom: 24px }
.dialog-body p { margin-bottom: 10px }
.dialog-body h4 { color: var(--ink); margin: 16px 0 6px; font-size: 13px }
.dialog-body ul { padding-left: 17px }
.dialog-body li { margin-bottom: 5px }

@media (max-width: 820px) {
  .site-shell { width: min(650px, calc(100% - 38px)) }
  .topbar { padding: 21px 0 10px }
  .screen-welcome { grid-template-columns: 1fr; min-height: unset; gap: 0 }
  .screen-welcome.active { display: flex; flex-direction: column }
  .welcome-content { padding: 20px 0 0; width: 100% }
  .welcome-content h1 { font-size: clamp(56px, 10vw, 81px) }
  .hero-art { height: 390px; width: 100%; order: -1; margin-top: 7px }
  .prize-card { width: 245px; height: 320px; border-radius: 29px; padding: 18px }
  .prize-card:after { border-radius: 22px }
  .orbit { width: 355px; height: 355px }
  .orbit-two { width: 285px; height: 285px }
  .shower-illustration { height: 181px }
  .prize-copy strong { font-size: 17px }
  .floating-droplet.drop-one { top: 34px; left: 6% }
  .floating-droplet.drop-two { right: 8%; bottom: 29px }
  .welcome-content { text-align: center }
  .welcome-content h1 { margin: 14px 0 }
  .subtitle { margin: 0 auto 15px; font-size: 14px }
  .benefit-pills { justify-content: center; margin-bottom: 23px }
  .microcopy { text-align: center }
  .welcome-content .main-cta { width: min(100%, 385px) }
  .footer { padding-top: 26px }
  .screen-form, .screen-wheel, .screen-result { padding: 33px 0 }
}

@media (max-width: 480px) {
  .site-shell { width: calc(100% - 34px) }
  .brand img { width: 31px; height: 39px }
  .brandname { font-size: 23px }
  .brandname small { font-size: 7px; letter-spacing: 2.7px }
  .hero-art { height: 302px }
  .orbit { width: 290px; height: 290px }
  .orbit-two { width: 235px; height: 235px }
  .prize-card { height: 260px; width: 210px; padding: 14px; transform: rotate(7deg) }
  .prize-badge { font-size: 7px }
  .prize-shine { font-size: 21px }
  .shower-illustration { height: 150px }
  .prize-copy strong { font-size: 15px }
  .prize-copy small { font-size: 9px }
  .drop-one { width: 42px; height: 42px; font-size: 22px }
  .floating-droplet.drop-two { width: 37px; height: 37px; right: 5%; bottom: 28px }
  .welcome-content { padding-top: 12px }
  .welcome-content h1 { font-size: clamp(53px, 13vw, 68px); letter-spacing: -2.9px; margin: 6px 0 13px }
  .subtitle { font-size: 12.5px; line-height: 1.66 }
  .benefit-pills span { font-size: 10px; padding: 6px 9px }
  .benefit-pills { margin-bottom: 17px }
  .main-cta { min-height: 55px }
  .welcome-content .microcopy { margin: 12px auto 0 }
  .screen-form, .screen-wheel, .screen-result { padding: 18px 0 26px }
  .step-track { margin-bottom: 13px }
  .form-heading { margin-bottom: 18px }
  .form-heading h2 { font-size: 35px }
  .form-heading > p { font-size: 12px; margin: 0 }
  .screen-form form { padding: 20px 17px 16px; border-radius: 21px }
  .group { margin-bottom: 17px }
  .group legend, .field-label { font-size: 12px }
  .choice-card { min-height: 89px; padding: 12px 3px 7px; font-size: 10px }
  .choice-card .choice-icon { width: 32px; height: 32px }
  /* En móvil no caben 5 en fila: 3 arriba y 2 abajo, todas a lo ancho. */
  .water-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) }
  .water-grid > .choice-card { grid-column: span 2 }
  .water-grid > .choice-card:nth-child(n+4) { grid-column: span 3 }
  .wheel { width: min(76vw, 320px); height: min(76vw, 320px) }
  .wheel-label { font-size: 7px; width: 69px }
  .wheel-label span { font-size: 16px }
  .wheel-labels.denso .wheel-label { width: 54px; font-size: 6.5px }
  .wheel-labels.denso .wheel-label span { font-size: 12px }
  .wheel-core { height: 67px; width: 67px }
  .wheel-core img { width: 28px; height: 35px }
  .wheel-ring { padding: 7px; border-width: 7px }
  .screen-result h2 { font-size: 38px }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .01ms !important; scroll-behavior: auto !important }
  .wheel { transition-duration: .01ms }
}
