/* Rinde Marketing — sitio estático
   Concepto: oscuro y sobrio, con líneas finas tipo plano técnico; el verde lima
   se usa solo para acciones y datos clave. Fotos reales de trabajos de roofing. */

/* Fuentes alojadas en el propio sitio (licencia SIL OFL, ver /fonts) */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #0B0B0B;
  --ink-2: #121412;
  --ink-3: #1A1D19;
  --line: #2A2E28;
  --line-2: #3A3F37;
  --paper: #F4F1EA;
  --white: #FFFFFF;
  --muted: #A7ADA3;
  --muted-2: #7D8479;
  --lime: #A3E635;
  --lime-ink: #0B0B0B;
  --accent: #A3E635;   /* lima sobre fondo oscuro; verde oscuro sobre fondo claro */
  --error: #FFB4A8;

  --f-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --r: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 100; padding: 10px 16px; background: var(--lime); color: var(--ink); border-radius: 8px; font-weight: 600; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 48px);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 560px) { .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); } }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; color: var(--white); }
h1 { font-weight: 700; font-size: clamp(2.2rem, 4.9vw, 4rem); line-height: 1.03; letter-spacing: -0.02em; text-transform: uppercase; }
h2 { font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.06; letter-spacing: -0.015em; text-transform: uppercase; }
h3 { font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.tag { font-family: var(--f-display); font-size: .95rem; font-weight: 600; color: var(--accent); }

/* ---------- Logo ---------- */
.logo { font-family: "Outfit", system-ui, sans-serif; font-weight: 700; font-size: 1.7rem; letter-spacing: -0.035em; line-height: 1; color: var(--white); text-decoration: none; white-space: nowrap; display: inline-block; }
.logo .i { position: relative; display: inline-block; }
.logo .dot { position: absolute; left: 50%; top: .165em; width: .13em; height: .13em; transform: translateX(-50%); background: var(--lime); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  padding: .95em 1.4em; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--lime); color: var(--lime-ink); }
.btn-primary:hover { background: #B4F04D; }
.btn-ghost { border-color: var(--line-2); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--paper); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--white); }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(11,11,11,.92); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(11,11,11,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .15s; }
.nav-links a:hover { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang button { background: none; border: 0; color: var(--muted); font: 600 .8rem/1 var(--f-display); letter-spacing: .06em; padding: .5em .75em; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.nav .btn { padding: .7em 1.15em; font-size: .92rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); color: var(--white); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-menu { display: none; }

@media (max-width: 1020px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: inline-grid; place-items: center; }
  .mobile-menu { border-top: 1px solid var(--line); }
  .mobile-menu.open { display: block; }
  .mobile-menu nav { display: grid; padding-block: 10px 20px; }
  .mobile-menu a { text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--paper); font-family: var(--f-display); font-size: 1.1rem; }
  .mobile-menu .btn { margin-top: 18px; border-bottom: 0; padding: .95em 1.4em; }
}

/* ---------- Secciones ---------- */
section { scroll-margin-top: 84px; }
.section { padding-block: clamp(72px, 10vw, 120px); background: var(--ink); color: var(--paper); }
.section.deep { background: var(--ink-2); }

/* Ritmo de fondos: oscuro / crema alternados.
   .light cambia las variables dentro de la sección; .dark-card devuelve un bloque al modo oscuro. */
.light {
  --ink: #FFFFFF; --ink-2: #FFFFFF; --ink-3: #F7F5EF;
  --line: #DDD8CC; --line-2: #C8C2B4;
  --paper: #1F221D; --white: #0B0B0B;
  --muted: #4A4F45; --muted-2: #6E7368;
  --accent: #4D7C0F; --error: #B42318;
  background: #F4F1EA !important; color: var(--paper); color-scheme: light;
}
.dark-card {
  --ink: #0B0B0B; --ink-2: #121412; --ink-3: #1A1D19;
  --line: #2A2E28; --line-2: #3A3F37;
  --paper: #F4F1EA; --white: #FFFFFF;
  --muted: #A7ADA3; --muted-2: #7D8479;
  --accent: #A3E635; --error: #FFB4A8;
  color: var(--paper); color-scheme: dark;
}
.light .dark-card { box-shadow: 0 24px 60px rgba(11,11,11,.18); }
.light .btn-ghost { color: var(--white); }
.section-head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(40px, 6vw, 60px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; min-height: min(760px, 88vh); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-block: clamp(56px, 8vw, 96px); padding-right: clamp(0px, 3vw, 48px); position: relative; z-index: 2; }
.hero-for { font-family: var(--f-display); font-size: 1.05rem; color: var(--paper); display: flex; align-items: center; gap: 12px; }
.hero-for::before { content: ""; width: 26px; height: 1.5px; background: var(--lime); flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 8px 0 0; list-style: none; color: var(--muted); font-size: .92rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 7px; height: 7px; background: var(--lime); flex: none; }
.hero-photo { position: relative; margin: 0; margin-right: calc(-1 * max(24px, env(safe-area-inset-right, 0px))); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(11,11,11,.35) 22%, rgba(11,11,11,0) 45%); }
.hero-photo figcaption { position: absolute; right: 18px; bottom: 14px; z-index: 2; font-size: .72rem; color: rgba(255,255,255,.75); }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; margin-left: calc(-1 * max(24px, env(safe-area-inset-left, 0px))); height: 280px; }
  .hero-photo::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(11,11,11,0) 55%); }
  .hero-copy { padding-top: 8px; padding-right: 0; }
}
@media (max-width: 560px) { .hero-photo { margin-left: calc(-1 * max(18px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(18px, env(safe-area-inset-right, 0px))); height: 230px; } }

/* ---------- Problema ---------- */
.problems { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.problem { padding: 28px 26px 4px 0; display: grid; gap: 10px; align-content: start; }
.problem + .problem { padding-left: 26px; border-left: 1px solid var(--line); }
.problem h3 { font-size: 1.12rem; }
.problem p { color: var(--muted); font-size: .97rem; }
@media (max-width: 980px) {
  .problems { grid-template-columns: 1fr 1fr; }
  .problem:nth-child(3) { padding-left: 0; border-left: 0; }
  .problem:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .problems { grid-template-columns: 1fr; }
  .problem, .problem + .problem { padding: 22px 0; border-left: 0; }
  .problem + .problem { border-top: 1px solid var(--line); }
}

/* ---------- Sistema ---------- */
.flow { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: flow; }
.flow li { position: relative; padding: 16px 40px 16px 18px; border: 1px solid var(--line-2); font-family: var(--f-display); font-size: .98rem; color: var(--paper); background: var(--ink); display: flex; align-items: center; min-height: 72px; }
.flow li + li { border-left: 0; }
.flow li:first-child { border-radius: var(--r) 0 0 var(--r); }
.flow li:last-child { border-radius: 0 var(--r) var(--r) 0; border-color: var(--lime); color: var(--white); }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: 16px; top: 50%; width: 10px; height: 10px; border-top: 1.5px solid var(--lime); border-right: 1.5px solid var(--lime); transform: translateY(-50%) rotate(45deg); }
@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; }
  .flow li + li { border-left: 1px solid var(--line-2); border-top: 0; }
  .flow li:first-child { border-radius: var(--r) var(--r) 0 0; }
  .flow li:last-child { border-radius: 0 0 var(--r) var(--r); border-top: 1px solid var(--lime); }
  .flow li:not(:last-child)::after { right: 20px; transform: translateY(-70%) rotate(135deg); }
}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 12px; align-content: start; text-decoration: none; transition: border-color .15s; }
.pillar:hover { border-color: var(--line-2); }
.pillar-n { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font: 600 .95rem/1 var(--f-display); }
.pillar p { color: var(--muted); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Bloques con foto ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-copy { display: grid; gap: 20px; }
.feature-rev .feature-copy { order: 2; }
.feature-photo { margin: 0; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.feature-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-credit { position: absolute; right: 10px; bottom: 8px; font-size: .7rem; color: rgba(255,255,255,.85); text-shadow: 0 1px 4px rgba(0,0,0,.7); }
@media (max-width: 920px) {
  .feature { grid-template-columns: 1fr; }
  .feature-rev .feature-copy { order: 0; }
}

.checks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--paper); }
.checks svg { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.checks.small li { font-size: .97rem; color: var(--muted); }

/* ---------- Tablero CRM (demostración) ---------- */
.board { background: var(--ink); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; min-width: 0; }
.board-top, .dash-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.board-title, .dash-title { font-family: var(--f-display); font-weight: 600; color: var(--white); font-size: .95rem; }
.demo-badge { font: 700 .7rem/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--lime-ink); background: var(--lime); padding: .5em .8em; border-radius: 4px; }
.board-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; }
.col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.col-h { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); padding: 2px 2px 6px; border-bottom: 1px solid var(--line); }
.col-h b { color: var(--paper); font-weight: 600; }
.card { background: var(--ink-3); border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: grid; gap: 3px; font-size: .78rem; min-width: 0; }
.card strong { color: var(--white); font-weight: 600; font-size: .82rem; line-height: 1.3; }
.card span { color: var(--muted-2); }
.card em { font-style: normal; color: var(--muted); margin-top: 4px; }
.card em.due { color: var(--lime); }
.card.won { border-color: var(--lime); }
@media (max-width: 560px) { .board-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Dashboard (demostración) ---------- */
.dash { background: var(--ink); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); }
.kpi { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; }
.kpi:nth-child(3n) { border-right: 0; }
.kpi .k { font-size: .78rem; color: var(--muted-2); line-height: 1.3; display: flex; justify-content: space-between; gap: 8px; }
.kpi .k i { font-style: normal; font-size: .68rem; color: var(--muted-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 .4em; height: fit-content; }
.kpi .v { font: 600 1.5rem/1.1 var(--f-display); color: var(--white); font-variant-numeric: tabular-nums; }
.kpi.biz .v { color: var(--lime); }
.dash-panels { display: grid; grid-template-columns: 1fr 1fr; }
.panel { padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.panel + .panel { border-left: 1px solid var(--line); }
.panel-h { font-size: .82rem; color: var(--muted); }
.panel svg { width: 100%; height: auto; display: block; }
.funnel { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.funnel li { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; font-size: .82rem; color: var(--paper); border-radius: 4px; isolation: isolate; }
.funnel li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); min-width: 4px; background: var(--ink-3); border-left: 2px solid var(--line-2); border-radius: 4px; z-index: -1; }
.funnel li.won::before { background: rgba(163,230,53,.16); border-left-color: var(--lime); }
.funnel b { font-weight: 600; font-variant-numeric: tabular-nums; }
.funnel li.won b { color: var(--lime); }
.dash-note { padding: 12px 18px 16px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .dash-panels { grid-template-columns: 1fr; }
  .panel + .panel { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(3n) { border-right: 1px solid var(--line); }
  .kpi:nth-child(2n) { border-right: 0; }
  .kpi .v { font-size: 1.3rem; }
}

/* ---------- Proceso ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line-2); }
.step { position: relative; padding-right: 22px; display: grid; gap: 10px; align-content: start; }
.step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--ink-2); border: 1.5px solid var(--lime); color: var(--lime); display: grid; place-items: center; font: 600 .95rem/1 var(--f-display); position: relative; z-index: 1; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; }
  .step { grid-template-columns: 44px 1fr; column-gap: 18px; padding-right: 0; }
  .step .n { grid-row: span 2; margin-bottom: 0; }
}

/* ---------- Inversión ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.pricing-copy { display: grid; gap: 18px; }
.pricing-photo { margin: 16px 0 0; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.pricing-photo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.price-card { border: 1px solid var(--lime); color: var(--paper); border-radius: 16px; padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 18px; background: var(--ink-2); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.price .amount { font: 700 clamp(3rem, 6vw, 4.2rem)/1 var(--f-display); color: var(--white); letter-spacing: -0.02em; }
.price .per { color: var(--muted); font-size: 1.05rem; }
.price-term { color: var(--paper); font-weight: 500; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.price-note { font-size: .92rem; color: var(--muted); padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 8px; }
.price-card .btn { justify-self: start; }
@media (max-width: 920px) { .pricing { grid-template-columns: 1fr; } .pricing-photo { display: none; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--f-display); font-size: 1.08rem; font-weight: 600; color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--lime); border-bottom: 1.5px solid var(--lime); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding: 0 40px 22px 0; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-copy { display: grid; gap: 22px; }
.wa-line { color: var(--muted); font-size: .97rem; }
.wa-line a { text-decoration: none; }
.wa-line strong { color: var(--white); }
form { background: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(11,11,11,.08); border-radius: 14px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; }
.field { display: grid; gap: 7px; align-content: end; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: .88rem; color: var(--paper); font-weight: 500; }
input, select { width: 100%; font: inherit; font-size: 1rem; color: var(--white); background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 8px; padding: .8em .9em; min-width: 0; }
input::placeholder { color: var(--muted-2); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .85rem; color: var(--muted); font-weight: 400; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); padding: 0; }
.consent a { color: var(--paper); }
.form-note { font-size: .8rem; color: var(--muted-2); }
.form-error { font-size: .88rem; color: var(--error); min-height: 1.2em; font-weight: 500; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h3 { font-size: .9rem; color: var(--white); margin-bottom: 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--white); }
.foot-desc { margin-top: 14px; max-width: 38ch; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Aviso de cookies ---------- */
.consent-bar { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70; max-width: 720px; margin: 0 auto; background: var(--ink-3); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; gap: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.consent-bar p { font-size: .88rem; color: var(--paper); flex: 1; }
.consent-bar a { color: var(--lime); }
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent-actions .btn { padding: .65em 1.1em; font-size: .9rem; }
@media (max-width: 600px) { .consent-bar { flex-direction: column; align-items: stretch; } .consent-actions .btn { flex: 1; } }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: opacity .2s ease, visibility .2s; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Páginas legales ---------- */
.legal { padding-block: 64px 96px; }
.legal article { max-width: 760px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.25rem; text-transform: none; letter-spacing: 0; margin-top: 18px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal .updated { font-size: .88rem; color: var(--muted-2); }
[data-lang-block],
html[lang="en"] [data-lang-block="es"],
html[lang="es"] [data-lang-block="en"] { display: none; }
html[lang="es"] [data-lang-block="es"], html[lang="en"] [data-lang-block="en"] { display: grid; gap: 18px; }

/* Animación de entrada del hero: visible por defecto, solo se suaviza al cargar */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .6s ease both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .hero-copy > *:nth-child(5) { animation-delay: .24s; }
}
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
