/* ==========================================================================
   Ribera Fincas · Hoja de estilos
   Mobile-first. Tokens > base > layout > componentes > secciones > utilidades
   ========================================================================== */

:root {
  --teal-950: #062C2D;
  --teal-900: #0A3B3C;
  --teal-800: #0D4B4A;
  --teal-700: #0E5856;
  --teal-600: #16706D;
  --teal-500: #2A8C88;
  --teal-200: #BFDDD9;
  --teal-100: #DCEDEA;
  --teal-50:  #EFF6F4;

  --accent: #B24E2A;
  --accent-600: #963F20;
  --accent-soft: #F9E9E0;
  --mustard: #E7B95A;
  --mustard-soft: #FBF1DC;

  --bg: #FFFFFF;
  --bg-alt: #F4F7F5;
  --ink: #15252A;
  --ink-2: #48585E;
  --ink-3: #5B6A70;
  --line: #E0E7E4;

  --ok: #1F7A4D;
  --ok-soft: #E2F3EA;
  --warn: #8A5A00;
  --warn-soft: #FCF0D4;
  --info: #1C5D8C;
  --info-soft: #E3EEF8;

  --font-head: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(10, 59, 60, .06), 0 2px 8px rgba(10, 59, 60, .05);
  --shadow-md: 0 4px 12px rgba(10, 59, 60, .07), 0 16px 40px rgba(10, 59, 60, .08);
  --shadow-lg: 0 10px 30px rgba(10, 59, 60, .10), 0 30px 80px rgba(10, 59, 60, .14);

  --header-h: 68px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 6px; }
.section--dark :focus-visible, .site-footer :focus-visible, .mobile-menu :focus-visible { outline-color: var(--mustard); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--teal-900); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  --btn-bg: var(--teal-700); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.35em;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.2; letter-spacing: -.005em;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  border-radius: 999px; text-decoration: none; text-align: center;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; stroke-width: 2.2; transition: transform .2s var(--ease); }
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--teal-700); }
.btn--primary:hover { --btn-bg: var(--teal-900); box-shadow: 0 8px 20px rgba(14, 88, 86, .25); }
.btn--accent { --btn-bg: var(--accent); }
.btn--accent:hover { --btn-bg: var(--accent-600); box-shadow: 0 8px 22px rgba(178, 78, 42, .28); }
.btn--ghost { --btn-bg: #fff; --btn-fg: var(--teal-900); --btn-bd: var(--teal-200); }
.btn--ghost:hover { --btn-bd: var(--teal-700); --btn-fg: var(--teal-900); }
.btn--light { --btn-bg: rgba(255,255,255,.1); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.35); }
.btn--light:hover { --btn-bg: rgba(255,255,255,.18); }
.btn--text { --btn-bg: transparent; --btn-fg: var(--ink-2); padding-inline: .6em; }
.btn--text:hover { --btn-fg: var(--teal-900); transform: none; }
.btn--sm { min-height: 42px; padding: .55em 1.1em; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: .9em 1.6em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* ---------- Eyebrows & section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--pill { letter-spacing: .02em; text-transform: none; font-size: .88rem; font-weight: 600; color: var(--teal-800); background: #fff; border: 1px solid var(--teal-100); padding: 6px 14px 6px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.eyebrow--pill::before { display: none; }
.eyebrow--pill .icon { color: var(--accent); width: 1.05em; height: 1.05em; }
.eyebrow--light { color: var(--mustard); }

.section { padding-block: 72px; }
.section--tint { background: var(--bg-alt); }
.section--dark { background: var(--teal-900); color: #E3EFED; position: relative; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.75rem); font-weight: 800; }
.section-head__lead { margin-top: 14px; color: var(--ink-2); font-size: 1.06rem; }
.section-head--left { text-align: left; margin-inline: 0; }

/* ---------- Demo strip ---------- */
.demo-strip {
  display: block;
  padding: 7px var(--gutter); background: var(--teal-950); color: #CFE3E0;
  font-size: .76rem; letter-spacing: .01em; text-align: center; line-height: 1.35;
}
.demo-strip strong { color: #fff; font-weight: 600; }
.demo-strip__dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--mustard); vertical-align: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(10, 59, 60, .06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 40px; height: 40px; border-radius: 11px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand__tag { font-size: .72rem; color: var(--ink-3); margin-top: 2px; white-space: nowrap; }
.brand--light { color: #fff; }
.brand--light .brand__tag { color: #A9C7C3; }
.main-nav { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.header-urgent { display: none; }
.header-cta { display: none; }
.menu-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--teal-900);
}
.menu-toggle .icon { width: 24px; height: 24px; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 70% at 100% 0%, #13605E 0%, var(--teal-900) 55%, var(--teal-950) 100%);
  color: #fff; overflow-y: auto;
  animation: menuIn .35s var(--ease);
}
.mobile-menu.is-closing { animation: menuOut .25s var(--ease) forwards; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes menuOut { to { opacity: 0; transform: translateY(-12px); } }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.mobile-menu__close { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; }
.mobile-menu__close .icon { width: 24px; height: 24px; }
.mobile-menu__links { margin-top: 32px; }
.mobile-menu__links li { border-bottom: 1px solid rgba(255,255,255,.1); opacity: 0; transform: translateY(10px); animation: linkIn .45s var(--ease) forwards; }
.mobile-menu__links li:nth-child(1) { animation-delay: .05s; }
.mobile-menu__links li:nth-child(2) { animation-delay: .1s; }
.mobile-menu__links li:nth-child(3) { animation-delay: .15s; }
.mobile-menu__links li:nth-child(4) { animation-delay: .2s; }
.mobile-menu__links li:nth-child(5) { animation-delay: .25s; }
@keyframes linkIn { to { opacity: 1; transform: none; } }
.mobile-menu__links a {
  display: flex; align-items: baseline; gap: 16px; padding: 18px 0;
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em;
  color: #fff; text-decoration: none;
}
.mobile-menu__links a span { font-size: .8rem; color: var(--mustard); font-weight: 600; letter-spacing: .05em; }
.mobile-menu__links a:hover { color: var(--mustard); }
.mobile-menu__bottom { margin-top: auto; padding-top: 32px; display: grid; gap: 16px; }
.mobile-menu__contact { display: grid; gap: 10px; }
.mobile-menu__contact a { display: flex; align-items: center; gap: 10px; color: #DCEDEA; text-decoration: none; font-weight: 500; padding: 12px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-md); }
.mobile-menu__contact a.is-urgent { color: #FFD9C7; border-color: rgba(255, 190, 160, .3); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 56px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(231, 185, 90, .16), transparent 70%),
    radial-gradient(70% 60% at 10% 0%, rgba(42, 140, 136, .12), transparent 70%),
    linear-gradient(180deg, #F6FAF9 0%, #fff 100%);
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__title {
  font-size: clamp(2.6rem, 1.4rem + 6vw, 4.3rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em;
  margin-top: 6px;
}
.hero__title-accent { display: block; color: var(--teal-700); position: relative; }
.hero__title-accent::after {
  content: ""; display: block; width: 3.2ch; height: 6px; margin-top: 14px; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--mustard));
}
.hero__lead { margin-top: 20px; font-size: clamp(1.06rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero__guarantees { display: grid; gap: 12px; margin-top: 32px; }
.hero__guarantees li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .96rem; color: var(--ink); }
.g-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-100); }
.g-icon .icon { width: 20px; height: 20px; }

.hero__art { position: relative; max-width: 560px; margin-inline: auto; width: 100%; }
.hero-illustration { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(10, 59, 60, .10)); }
.win { fill: #2E5E63; animation: windowLight 10s ease-in-out infinite; animation-delay: calc(var(--d, 0s) * -1); }
@keyframes windowLight {
  0%, 30% { fill: #2E5E63; }
  40%, 75% { fill: #FFD27A; }
  85%, 100% { fill: #2E5E63; }
}
.cloud { animation: drift 26s ease-in-out infinite alternate; }
.cloud--2 { animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translateX(-14px); } to { transform: translateX(22px); } }
.sun { animation: sunPulse 6s ease-in-out infinite; transform-origin: 480px 128px; }
@keyframes sunPulse { 50% { transform: scale(1.05); } }
.laundry rect { transform-box: fill-box; transform-origin: top center; animation: sway 3.5s ease-in-out infinite; }
.laundry rect:nth-child(2) { animation-delay: .4s; }
.laundry rect:nth-child(3) { animation-delay: .8s; }
@keyframes sway { 50% { transform: rotate(6deg); } }

.hero-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; background: rgba(255,255,255,.95);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md);
  font-size: .8rem; line-height: 1.25; animation: float 6s ease-in-out infinite;
}
.hero-card strong { display: block; font-family: var(--font-head); font-size: .86rem; color: var(--ink); }
.hero-card small { color: var(--ink-3); font-size: .76rem; }
.hero-card__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.hero-card__icon--ok { background: var(--ok-soft); color: var(--ok); }
.hero-card__icon .icon { width: 18px; height: 18px; stroke-width: 2; }
.hero-card--top { top: 4%; left: 0; }
.hero-card--bottom { bottom: 6%; right: 0; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Pains ---------- */
.pains { background: var(--teal-900); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.pains::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 4 36 20 20 36 4 20z' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E");
}
.pains .container { position: relative; }
.pains__title { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 800; text-align: center; margin-bottom: 28px; }
.pains__list { display: grid; gap: 14px; }
.pain {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md);
}
.pain p { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.35; color: #EAF4F2; }
.pain__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: rgba(231,185,90,.16); color: var(--mustard); }
.pain__icon .icon { width: 22px; height: 22px; }
.pains__answer { margin-top: 28px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; }
.pains__answer a { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; color: var(--mustard); font-weight: 600; font-size: 1rem; }
.pains__answer a .icon { width: 1em; height: 1em; }

/* ---------- Services ---------- */
.services { display: grid; gap: 16px; }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal-200); }
.service.is-open { border-color: var(--teal-500); box-shadow: var(--shadow-md); }
.service__head {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 6px; align-items: start;
  width: 100%; padding: 22px; background: none; border: 0; text-align: left; border-radius: inherit;
}
.service__icon {
  grid-row: span 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--teal-50); color: var(--teal-700); transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.service__icon .icon { width: 26px; height: 26px; }
.service:hover .service__icon, .service.is-open .service__icon { background: var(--teal-700); color: #fff; transform: rotate(-4deg); }
.service__title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.015em; color: var(--ink); line-height: 1.25; }
.service__desc { color: var(--ink-2); font-size: .96rem; line-height: 1.5; }
.service__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; font-size: .9rem; color: var(--accent); }
.service__more .icon { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .3s var(--ease); }
.service.is-open .service__more .icon { transform: rotate(45deg); }
.service__body { padding: 0 22px 22px 90px; animation: fadeDown .35s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.checklist { display: grid; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line); }
.checklist li { position: relative; padding-left: 26px; font-size: .94rem; color: var(--ink-2); line-height: 1.45; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 17px; height: 17px; border-radius: 50%;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F7A4D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.service--cta { background: linear-gradient(150deg, var(--teal-800), var(--teal-950)); border-color: transparent; color: #fff; }
.service--cta .service__head--static { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.service--cta .service__icon { background: rgba(255,255,255,.1); color: var(--mustard); }
.service--cta .service__title { color: #fff; }
.service--cta .service__desc { color: #C9DEDB; margin-bottom: 8px; }
.service--cta:hover .service__icon { background: rgba(255,255,255,.16); color: var(--mustard); }

/* ---------- Quote wizard ---------- */
.quote-layout { display: grid; gap: 36px; align-items: start; }
.quote-intro h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.75rem); font-weight: 800; }
.quote-intro > p { margin-top: 14px; color: var(--ink-2); font-size: 1.06rem; }
.quote-intro__points { display: grid; gap: 12px; margin-top: 24px; }
.quote-intro__points li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.quote-intro__points .icon { color: var(--teal-600); width: 22px; height: 22px; }

.wizard { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 22px; position: relative; overflow: hidden; }
.wizard::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--teal-700), var(--teal-500), var(--mustard)); }
.wizard__progress { margin-bottom: 22px; }
.wizard__progress-meta { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; margin-bottom: 10px; }
.wizard__progress-meta span:first-child { font-weight: 700; color: var(--teal-700); }
.wizard__progress-meta span:last-child { color: var(--ink-3); }
.wizard__bar { height: 8px; background: var(--teal-50); border-radius: 99px; overflow: hidden; }
.wizard__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-600), var(--teal-500)); transition: width .5s var(--ease); }
.wizard__step { border: 0; margin: 0; padding: 0; min-width: 0; animation: stepIn .4s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.wizard__q { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 18px; padding: 0; }
.wizard__sub { font-weight: 600; margin: 22px 0 12px; }
.wizard__sub small { color: var(--ink-3); font-weight: 400; }
.wizard__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.wizard__nav #wizard-next { margin-left: auto; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-list { display: grid; gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%;
  padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff;
  font-weight: 600; font-size: .95rem; line-height: 1.3;
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.choice__box .icon { width: 28px; height: 28px; color: var(--teal-700); padding: 0; }
.choice:hover .choice__box { border-color: var(--teal-200); transform: translateY(-1px); }
.choice input:checked + .choice__box { border-color: var(--teal-700); background: var(--teal-50); box-shadow: 0 0 0 3px rgba(14, 88, 86, .12); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--mustard); outline-offset: 2px; }
.choice--row .choice__box { flex-direction: row; align-items: center; gap: 14px; }
.choice--row .choice__box > span { display: flex; flex-direction: column; gap: 2px; }
.choice--row small { color: var(--ink-3); font-weight: 400; font-size: .85rem; }
.choice input:checked + .choice__box::after {
  content: ""; margin-left: auto; width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--teal-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.choice-grid .choice input:checked + .choice__box::after { position: absolute; top: 12px; right: 12px; }

.stepper-field label { display: block; font-weight: 600; margin-bottom: 10px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper input {
  width: 100%; max-width: 120px; height: 52px; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--bg-alt); color: var(--teal-800); transition: background-color .2s, border-color .2s; }
.stepper__btn:hover { background: var(--teal-50); border-color: var(--teal-200); }
.stepper__btn .icon { width: 20px; height: 20px; stroke-width: 2.4; }
input[type="range"] { width: 100%; margin-top: 18px; accent-color: var(--teal-700); height: 28px; }
.range-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-3); margin-top: 2px; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .92rem; background: #fff;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip .icon { width: 18px; height: 18px; color: var(--teal-700); }
.chip:hover span { border-color: var(--teal-200); }
.chip input:checked + span { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.chip input:checked + span .icon { color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--mustard); outline-offset: 2px; }

.wizard__done { animation: stepIn .4s var(--ease); outline: none; }
.wizard__done-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.wizard__done-head h3 { font-size: 1.25rem; font-weight: 800; }
.wizard__done-head p { color: var(--ink-3); font-size: .92rem; }
.done-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--ok-soft); color: var(--ok); animation: pop .5s var(--ease); }
.done-badge .icon { width: 26px; height: 26px; stroke-width: 2.6; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.summary { display: grid; gap: 0; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.summary > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.summary > div:nth-child(odd) { background: var(--bg-alt); }
.summary > div:last-child { border-bottom: 0; }
.summary dt { font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.summary dd { margin: 0; font-weight: 600; }
.demo-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--mustard-soft); color: #5B4209; font-size: .94rem; margin-bottom: 16px; }
.demo-note .icon { color: #8A6410; margin-top: 2px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: .92rem; }
.field .label small { color: var(--ink-3); font-weight: 400; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E5856' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--teal-200); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(14, 88, 86, .14); }
.field ::placeholder { color: #8C999E; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: .84rem; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .92rem !important; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal-700); flex: none; }
.file-drop {
  display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed var(--teal-200); border-radius: 14px;
  background: var(--teal-50); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.file-drop:hover { border-color: var(--teal-600); }
.file-drop .icon { width: 28px; height: 28px; color: var(--teal-700); }
.file-drop__text { display: flex; flex-direction: column; font-size: .92rem; min-width: 0; }
.file-drop__text small { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-drop.has-file { border-style: solid; border-color: var(--teal-600); }
#i-foto:focus-visible + * , .file-drop:focus-within { outline: 3px solid var(--mustard); outline-offset: 2px; }
.card-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-md); display: grid; gap: 20px; align-content: start; }
.card-form__title { font-size: 1.35rem; font-weight: 800; }
.form-success { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-md); background: var(--ok-soft); color: #14532F; animation: stepIn .4s var(--ease); outline: none; }
.form-success .icon { width: 24px; height: 24px; color: var(--ok); }

/* ---------- Portal (Área de vecinos) ---------- */
.section--dark::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -260px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 140, 136, .35), transparent 65%);
}
.section--dark::after {
  content: ""; position: absolute; width: 520px; height: 520px; left: -220px; bottom: -240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 185, 90, .14), transparent 65%);
}
.portal-layout { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.portal-copy h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.75rem); font-weight: 800; }
.portal-copy > p { margin-top: 14px; color: #BFD6D3; font-size: 1.06rem; }
.portal-switch { display: none; }
.portal-device { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.example-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(231, 185, 90, .14); color: #F6DCA4; border: 1px solid rgba(231, 185, 90, .35);
  font-size: .82rem; font-weight: 600;
}
.example-tag .icon { width: 16px; height: 16px; }

.phone {
  position: relative; width: min(100%, 340px); aspect-ratio: 340 / 690; max-height: 690px;
  padding: 12px; border-radius: 48px; background: #0B1A1C;
  box-shadow: 0 0 0 2px #2A3B3E inset, 0 40px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
}
.phone__notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #0B1A1C; z-index: 3; }
.phone__screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #F4F7F5; display: flex; flex-direction: column; color: var(--ink); }
.app-top { display: flex; justify-content: space-between; align-items: center; padding: 56px 18px 14px; background: linear-gradient(160deg, var(--teal-700), var(--teal-900)); color: #fff; }
.app-top small { display: block; font-size: .7rem; color: #A9CFCA; text-transform: uppercase; letter-spacing: .08em; }
.app-top strong { font-family: var(--font-head); font-size: 1.05rem; }
.app-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); }
.app-avatar .icon { width: 18px; height: 18px; }
.app-panels { flex: 1; overflow-y: auto; padding: 16px 14px; scrollbar-width: thin; }
.app-panel { animation: stepIn .35s var(--ease); outline: none; }
.app-h { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.app-h--sm { font-size: .95rem; margin: 16px 0 10px; }
.app-sample { font-family: var(--font-body); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--warn); background: var(--warn-soft); padding: 3px 8px; border-radius: 99px; }
.app-notice { background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.app-notice--urgent { border-left: 4px solid var(--accent); }
.app-notice strong { display: block; font-size: .9rem; line-height: 1.3; margin: 6px 0 4px; }
.app-notice p { font-size: .8rem; color: var(--ink-2); line-height: 1.45; }
.app-notice small { display: block; margin-top: 8px; font-size: .72rem; color: var(--ink-3); }
.app-notice__tag { display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-600); }
.app-notice__tag--info { background: var(--info-soft); color: var(--info); }
.app-notice__tag--calm { background: var(--teal-50); color: var(--teal-700); }
.app-docs { display: grid; gap: 8px; }
.app-docs li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.app-docs li > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-docs strong { font-size: .84rem; line-height: 1.25; }
.app-docs small { font-size: .72rem; color: var(--ink-3); }
.app-docs__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.app-docs__icon .icon { width: 18px; height: 18px; }
.app-docs__dl { width: 18px; height: 18px; color: var(--teal-600); }
.app-issues { display: grid; gap: 8px; }
.app-issues li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.app-issues strong { display: block; font-size: .84rem; line-height: 1.25; }
.app-issues small { font-size: .72rem; color: var(--ink-3); }
.status { flex: none; font-size: .68rem; font-weight: 700; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.status--new { background: var(--info-soft); color: var(--info); }
.status--progress { background: var(--warn-soft); color: var(--warn); }
.status--done { background: var(--ok-soft); color: var(--ok); }
.app-track { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-size: .78rem; }
.app-track ol { display: flex; justify-content: space-between; margin-top: 12px; position: relative; }
.app-track ol::before { content: ""; position: absolute; top: 7px; left: 8%; right: 8%; height: 2px; background: var(--line); }
.app-track ol::after { content: ""; position: absolute; top: 7px; left: 8%; width: 42%; height: 2px; background: var(--ok); }
.app-track li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; color: var(--ink-3); font-weight: 600; font-size: .7rem; }
.app-track li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.app-track li.is-done::before { background: var(--ok); border-color: var(--ok); }
.app-track li.is-current { color: var(--warn); }
.app-track li.is-current::before { border-color: var(--warn); background: var(--warn-soft); box-shadow: 0 0 0 4px rgba(138, 90, 0, .12); }
.app-chart { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.app-chart__legend { display: flex; gap: 14px; font-size: .72rem; color: var(--ink-2); margin-bottom: 10px; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.lg--in::before { background: var(--teal-600); }
.lg--out::before { background: var(--mustard); }
.app-chart__bars { display: flex; justify-content: space-around; align-items: flex-end; height: 130px; border-bottom: 1px solid var(--line); padding-bottom: 0; gap: 6px; }
.bar-group { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 100%; padding-bottom: 0; }
.bar-group small { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: .68rem; color: var(--ink-3); font-weight: 600; }
.bar { width: 14px; height: var(--h); border-radius: 5px 5px 0 0; transform-origin: bottom; }
.app-panel:not([hidden]) .bar { animation: grow .8s var(--ease) both; }
.bar--in { background: var(--teal-600); }
.bar--out { background: var(--mustard); }
.bar-group:nth-child(2) .bar { animation-delay: .08s; }
.bar-group:nth-child(3) .bar { animation-delay: .16s; }
.bar-group:nth-child(4) .bar { animation-delay: .24s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.app-chart { padding-bottom: 30px; }
.app-split { display: grid; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.app-split li { display: grid; grid-template-columns: 76px 1fr 34px; align-items: center; gap: 8px; font-size: .76rem; }
.app-split b { text-align: right; font-weight: 700; }
.meter { height: 7px; background: var(--teal-50); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--teal-500); border-radius: inherit; }
.app-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 8px 6px 18px; }
.app-tabs button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border: 0; background: none; color: var(--ink-3); font-size: .66rem; font-weight: 600; border-radius: 12px; transition: color .2s, background-color .2s; }
.app-tabs button .icon { width: 20px; height: 20px; }
.app-tabs button[aria-selected="true"] { color: var(--teal-700); background: var(--teal-50); }
.app-tabs button:hover { color: var(--teal-700); }

/* ---------- Steps (cambiar de administrador) ---------- */
.steps { display: grid; gap: 14px; counter-reset: s; position: relative; }
.step { position: relative; padding: 22px 22px 22px 82px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step__num {
  position: absolute; left: 22px; top: 22px; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 14px; background: var(--teal-700); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
}
.step:last-child .step__num { background: var(--accent); }
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: .95rem; }
.change-foot { margin-top: 28px; display: grid; gap: 18px; justify-items: start; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }
.notice .icon { color: var(--teal-600); margin-top: 2px; }

/* ---------- Incident ---------- */
.incident-layout { display: grid; gap: 32px; align-items: start; }
.incident-intro h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.75rem); font-weight: 800; }
.incident-intro > p { margin-top: 14px; color: var(--ink-2); font-size: 1.06rem; }
.urgent-card {
  margin-top: 28px; display: flex; gap: 16px; padding: 22px; border-radius: var(--r-lg);
  background: linear-gradient(150deg, #8F3A1C, var(--accent) 60%, #C8643B); color: #fff; box-shadow: 0 20px 40px rgba(150, 63, 32, .25);
  position: relative; overflow: hidden;
}
.urgent-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.08); }
.urgent-card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: rgba(255,255,255,.16); flex: none; }
.urgent-card__icon .icon { width: 24px; height: 24px; }
.urgent-card__label { font-size: .82rem; font-weight: 600; color: #FFE3D5; text-transform: uppercase; letter-spacing: .06em; }
.urgent-card__phone { display: inline-block; margin: 4px 0 8px; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: #fff; text-decoration: none; letter-spacing: -.01em; }
.urgent-card__phone:hover { color: #fff; text-decoration: underline; }
.urgent-card__hint { font-size: .9rem; color: #FFEDE4; line-height: 1.5; }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 16px; }
.why { padding: 26px; border-radius: var(--r-lg); background: var(--bg-alt); border: 1px solid transparent; transition: transform .3s var(--ease), box-shadow .3s, background-color .3s, border-color .3s; }
.why:hover { transform: translateY(-4px); background: #fff; border-color: var(--line); box-shadow: var(--shadow-md); }
.why__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.why__icon .icon { width: 26px; height: 26px; }
.why h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.why p { color: var(--ink-2); font-size: .95rem; }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 16px; }
.review { position: relative; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; transition: transform .3s var(--ease), box-shadow .3s; }
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review::before { content: "\201C"; position: absolute; right: 22px; top: 6px; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--teal-100); }
.review__stars { display: flex; gap: 4px; color: var(--mustard); }
.review__stars .icon { width: 20px; height: 20px; fill: var(--mustard-soft); stroke: #D9A441; }
.review__lines { display: grid; gap: 8px; }
.review__lines span { height: 9px; border-radius: 9px; background: linear-gradient(90deg, var(--bg-alt), #E9EEEC, var(--bg-alt)); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.review__lines span:nth-child(2) { width: 88%; }
.review__lines span:nth-child(3) { width: 64%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.review__text { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.4; color: var(--teal-900); }
.review__author { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .88rem; margin-top: auto; }
.review__avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-alt); color: var(--ink-3); }
.review__avatar .icon { width: 18px; height: 18px; }

/* ---------- Team ---------- */
.team { display: grid; gap: 16px; }
.member { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.member__photo { aspect-ratio: 5 / 4; display: grid; place-items: end center; color: var(--teal-200); background: linear-gradient(170deg, var(--teal-50), var(--teal-100)); position: relative; overflow: hidden; }
.member__photo::before { content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(231, 185, 90, .2); }
.member__photo svg { position: relative; width: 62%; height: auto; }
.member:nth-child(2) .member__photo { background: linear-gradient(170deg, #FBF3E4, #F3E2C0); color: #E2C68E; }
.member:nth-child(2) .member__photo::before { background: rgba(14, 88, 86, .1); }
.member:nth-child(3) .member__photo { background: linear-gradient(170deg, #F8ECE6, #EFD6C9); color: #DDB4A0; }
.member figcaption { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.member figcaption strong { font-family: var(--font-head); font-size: 1rem; }
.member figcaption span { color: var(--ink-3); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 8px; }
.faq { display: grid; gap: 10px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: var(--teal-200); box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; line-height: 1.35; border-radius: inherit;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); transition: transform .3s var(--ease), background-color .3s, color .3s; stroke-width: 2.4; }
.faq__item[open] summary .icon { transform: rotate(45deg); background: var(--teal-700); color: #fff; }
.faq__body { padding: 0 20px 20px; color: var(--ink-2); animation: fadeDown .3s var(--ease); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 24px; align-items: start; }
.contact-info { display: grid; gap: 20px; }
.open-status { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-weight: 600; font-size: .94rem; justify-self: start; }
.open-status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); flex: none; }
.open-status.is-open { background: var(--ok-soft); border-color: #BFE3CF; color: #14532F; }
.open-status.is-open .open-status__dot { background: #22A060; box-shadow: 0 0 0 0 rgba(34, 160, 96, .5); animation: ping 2s infinite; }
.open-status.is-closed { background: #FBEDEA; border-color: #F0CFC7; color: #7E2A16; }
.open-status.is-closed .open-status__dot { background: #C2412A; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(34, 160, 96, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 160, 96, 0); } }
.contact-list { display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-alt); }
.contact-list small { display: block; color: var(--ink-3); font-size: .78rem; line-height: 1.2; }
.contact-list a { font-weight: 600; color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--teal-700); text-decoration: underline; }
.contact-list li > span:last-child { font-weight: 600; min-width: 0; }
.contact-list__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: #fff; color: var(--teal-700); box-shadow: var(--shadow-sm); }
.contact-list__icon--urgent { color: var(--accent); }
.hours { width: 100%; border-collapse: collapse; font-size: .94rem; }
.hours th, .hours td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; }
.hours td { color: var(--ink-2); text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--teal-800); background: var(--teal-50); }
.hours tr.is-today th::after { content: "Hoy"; margin-left: 8px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 99px; background: var(--teal-700); color: #fff; vertical-align: 1px; }
.hours__note { display: block; font-size: .8rem; color: var(--ink-3); }
.map { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3;
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 40h120M0 90h120M30 0v120M85 0v120' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l120 120' stroke='%23fff' stroke-width='10'/%3E%3C/svg%3E"); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
.map__tag { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.94); font-size: .76rem; font-weight: 600; box-shadow: var(--shadow-sm); }

/* ---------- Final CTA ---------- */
.final-cta { padding: 0 0 72px; }
.final-cta__inner {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 44px 24px; text-align: center;
  background: radial-gradient(90% 120% at 100% 0%, #16706D, var(--teal-900) 60%); color: #fff;
}
.final-cta__inner::before {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 4 36 20 20 36 4 20z' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E");
}
.final-cta h2 { position: relative; color: #fff; font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem); font-weight: 800; max-width: 22ch; margin-inline: auto; }
.final-cta__actions { position: relative; display: flex; flex-direction: column; gap: 12px; margin-top: 28px; align-items: stretch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-950); color: #B9D0CD; padding: 56px 0 100px; font-size: .94rem; }
.site-footer a { color: #E3EFED; text-decoration: none; }
.site-footer a:hover { color: var(--mustard); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand p { margin-top: 16px; max-width: 32ch; }
.footer-title { font-family: var(--font-head); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 14px; }
.footer-list { display: grid; gap: 8px; }
.footer-bottom { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal .link-btn { color: #E3EFED; text-decoration: none; }
.footer-legal .link-btn:hover { color: var(--mustard); text-decoration: underline; }

/* ---------- WhatsApp ---------- */
.whatsapp {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 0; height: 56px; padding: 0 16px; border-radius: 999px;
  background: #157A45; color: #fff; text-decoration: none; box-shadow: 0 10px 28px rgba(18, 90, 50, .35);
  transition: transform .25s var(--ease), box-shadow .25s, gap .3s var(--ease), background-color .2s;
}
.whatsapp .icon { width: 26px; height: 26px; }
.whatsapp__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: .92rem; transition: max-width .35s var(--ease); }
.whatsapp:hover, .whatsapp:focus-visible { color: #fff; background: #0F6B3B; transform: translateY(-2px); gap: 8px; }
.whatsapp:hover .whatsapp__label, .whatsapp:focus-visible .whatsapp__label { max-width: 120px; }
body.cookie-open .whatsapp { bottom: calc(var(--cookie-h, 160px) + 16px); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  display: grid; gap: 14px; padding: 18px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .9rem; color: var(--ink-2);
  animation: slideUp .45s var(--ease);
}
.cookie-banner strong { color: var(--ink); }
.cookie-banner__actions { display: flex; gap: 10px; justify-content: flex-end; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 80; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--teal-950); color: #fff; font-size: .9rem; box-shadow: var(--shadow-lg); animation: slideUp .3s var(--ease); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 560px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .choice-grid { grid-template-columns: repeat(4, 1fr); }
  .final-cta__actions { flex-direction: row; justify-content: center; }
  .cookie-banner { left: auto; right: 20px; bottom: 20px; max-width: 420px; }
  body.cookie-open .whatsapp { bottom: 16px; right: 460px; }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }
  .section { padding-block: 96px; }
  .pains__list { grid-template-columns: repeat(3, 1fr); }
  .pain { flex-direction: column; align-items: flex-start; }
  .services { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .wizard, .card-form { padding: 32px; }
  .summary > div { grid-template-columns: 180px 1fr; align-items: baseline; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews, .team { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .change-foot { grid-template-columns: 1fr auto; align-items: center; }
  .final-cta__inner { padding: 64px 40px; }
  .hero-card { font-size: .86rem; }
  .incident-layout { grid-template-columns: 1fr 1.15fr; gap: 48px; }
  .site-footer { padding-bottom: 56px; }
}

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .main-nav ul { display: flex; gap: 4px; }
  .main-nav a {
    position: relative; display: block; padding: 8px 12px; border-radius: 10px;
    font-weight: 500; font-size: .93rem; color: var(--ink-2); text-decoration: none; white-space: nowrap;
    transition: color .2s, background-color .2s;
  }
  .main-nav a:hover { color: var(--teal-900); background: var(--teal-50); }
  .main-nav a.is-active { color: var(--teal-800); }
  .main-nav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }

  .hero { padding: 64px 0 88px; }
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .hero__guarantees { grid-template-columns: repeat(3, auto); gap: 18px 22px; justify-content: start; }
  .hero__guarantees li { font-size: .9rem; max-width: 15em; line-height: 1.3; }
  .hero-card--top { left: -24px; }
  .hero-card--bottom { right: -16px; }

  .services { grid-template-columns: repeat(4, 1fr); }
  .service__head { grid-template-columns: 1fr; padding: 26px; }
  .service__icon { grid-row: auto; margin-bottom: 10px; }
  .service__body { padding: 0 26px 26px; }

  .quote-layout { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .quote-intro { position: sticky; top: calc(var(--header-h) + 40px); }

  .portal-layout { grid-template-columns: 1fr 1fr; gap: 64px; }
  .portal-switch { display: grid; gap: 10px; margin-top: 32px; }
  .portal-switch__btn {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); color: #DCEDEA;
    transition: background-color .25s, border-color .25s, transform .25s var(--ease);
  }
  .portal-switch__btn:hover { background: rgba(255,255,255,.08); transform: translateX(4px); }
  .portal-switch__btn .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--mustard); }
  .portal-switch__btn span { display: flex; flex-direction: column; line-height: 1.3; }
  .portal-switch__btn strong { font-family: var(--font-head); color: #fff; }
  .portal-switch__btn small { color: #A9C7C3; font-size: .84rem; }
  .portal-switch__btn.is-active { background: rgba(255,255,255,.1); border-color: rgba(231, 185, 90, .5); }
  .portal-switch__btn.is-active .icon { background: var(--mustard); color: var(--teal-950); }

  .steps { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 48px; height: 2px; background: repeating-linear-gradient(90deg, var(--teal-200) 0 8px, transparent 8px 16px); z-index: 0; }
  .step { padding: 26px 22px; z-index: 1; }
  .step__num { position: static; margin-bottom: 18px; }

  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 40px); }
  .contact-layout { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .final-cta__inner { padding: 80px 40px; }
}

@media (min-width: 1200px) {
  .header-urgent {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px;
    text-decoration: none; color: var(--ink); line-height: 1.15; transition: background-color .2s;
  }
  .header-urgent:hover { background: var(--accent-soft); color: var(--ink); }
  .header-urgent__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
  .header-urgent__icon .icon { width: 17px; height: 17px; stroke-width: 2; }
  .header-urgent__text { display: flex; flex-direction: column; white-space: nowrap; font-family: var(--font-head); font-weight: 800; font-size: .95rem; }
  .header-urgent__text small { font-family: var(--font-body); font-weight: 500; font-size: .7rem; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
}

@media (min-width: 1024px) {
  .site-header .brand__tag { display: none; }
  .brand { flex: none; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .main-nav a { padding: 8px 9px; font-size: .9rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .win { animation: none; }
  .win:nth-of-type(3n) { fill: #FFD27A; }
  .js .reveal { opacity: 1; transform: none; }
}
