/* Iberoluz — estilos. Dos colores: azul oscuro + amarillo energía. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --navy: #0B2A4A;
  --navy-2: #123A63;
  --amber: #FFB703;
  --amber-2: #F2A900;
  --ink: #0B2A4A;
  --text: #3C4A5C;
  --muted: #64748B;
  --line: #E3E8EF;
  --bg-alt: #F5F7FA;
  --white: #fff;
  --radius: 14px;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 750; max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--amber); color: var(--navy); padding: 10px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 10px; top: 10px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* Iconos */
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--lg { width: 34px; height: 34px; stroke-width: 1.6; color: var(--navy); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border: 0; border-radius: 10px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn--primary { background: var(--amber); color: var(--navy); }
.btn--primary:hover { background: var(--amber-2); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-2); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* Cabecera */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--navy); text-decoration: none; }
.logo__mark { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 550; font-size: .97rem; color: var(--ink); padding: 8px 0; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--amber); }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 12px 10px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }
.nav-toggle span + span { margin-top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 22px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; min-height: 50px; }
}

/* Hero */
.hero { background: var(--navy); color: #D5DEE9; }
.hero__in { display: grid; gap: 44px; padding-top: 72px; padding-bottom: 80px; align-items: center; }
.hero h1 { color: var(--white); max-width: 13ch; }
.hero__sub { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin: 20px 0 32px; max-width: 30ch; color: #E6ECF3; }
.hero__note { margin-top: 18px; font-size: .95rem; color: #AFC0D3; }
.hero__card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px; display: grid; gap: 20px; }
.hero__card li { display: flex; gap: 14px; align-items: flex-start; color: #E6ECF3; }
.hero__card strong { color: var(--white); }
.hero__card .ico { color: var(--amber); margin-top: 3px; stroke-width: 2.4; }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: 1.25fr .9fr; padding-top: 104px; padding-bottom: 112px; }
}

/* Secciones */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
@media (min-width: 900px) { .section { padding: 112px 0; } }

.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.eyebrow--light { color: var(--amber); }
.lead { margin-top: 14px; font-size: 1.1rem; max-width: 56ch; }
.fine { margin-top: 26px; font-size: .95rem; color: var(--muted); }

/* Pasos */
.steps { display: grid; gap: 20px; margin-top: 44px; counter-reset: none; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step__num { position: absolute; top: 24px; right: 26px; font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--line); }
.step h3 { margin: 18px 0 8px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.callout { margin-top: 28px; background: var(--amber); color: var(--navy); border-radius: var(--radius); padding: 26px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.callout p { font-size: 1.08rem; max-width: 52ch; }

/* Tarjetas */
.cards { display: grid; gap: 20px; margin-top: 44px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.card h3 { margin: 18px 0 8px; }
.card p { font-size: 1rem; }
.card__note { margin-top: 10px; font-size: .9rem !important; font-weight: 600; color: var(--navy); }
.card__btn {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--navy); border-radius: 9px;
  font-weight: 650; font-size: .95rem; color: var(--navy); text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.card > p:last-of-type { margin-bottom: 22px; }
.card__btn:hover { background: var(--navy); color: var(--white); }
@media (min-width: 640px) { .cards--4, .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } .cards--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Contacto */
.contact { display: grid; gap: 40px; }
.facts { margin-top: 30px; display: grid; gap: 16px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts .ico { color: var(--navy); margin-top: 3px; }
.facts a { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
@media (min-width: 900px) { .contact { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; } }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 640px) { .form { padding: 36px; } }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid #C9D2DE; border-radius: 10px;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255,183,3,.45); }
input[type="file"] { font: inherit; font-size: .95rem; width: 100%; padding: 10px; border: 1.5px dashed #C9D2DE; border-radius: 10px; background: var(--bg-alt); }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--navy); color: var(--white); cursor: pointer; }
.help { font-size: .88rem; color: var(--muted); }
.error { font-size: .9rem; font-weight: 600; color: #B42318; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--text); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.check a { color: var(--navy); font-weight: 600; }
.form__legal { font-size: .85rem; color: var(--muted); text-align: center; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
[hidden] { display: none !important; }

/* Pie */
.footer { background: var(--navy); color: #C3D0DE; font-size: .95rem; padding-top: 56px; }
.footer__in { display: grid; gap: 30px; }
.footer__brand { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--white); margin-bottom: 8px; }
.footer__title { font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer a { color: #E6ECF3; text-underline-offset: 3px; overflow-wrap: anywhere; display: inline-block; padding: 3px 0; }
.footer a:hover { color: var(--amber); }
.footer__copy { margin-top: 44px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; color: #9FB1C5; }
@media (min-width: 800px) { .footer__in { grid-template-columns: 1.3fr 1.2fr 1.2fr .9fr; gap: 40px; } }

/* Páginas legales y gracias */
.page { padding: 56px 0 88px; }
.page .container { max-width: 760px; }
.page h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 10px; }
.page h2 { font-size: 1.3rem; max-width: none; margin: 36px 0 10px; }
.page p, .page li { margin-bottom: 12px; }
.page ul { list-style: disc; padding-left: 22px; }
.page a { color: var(--navy); font-weight: 600; }
.page .updated { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.page table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .95rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.page th { background: var(--bg-alt); color: var(--ink); width: 34%; }
mark.pend { background: #FFF1C2; color: #6B4A00; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

.thanks { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 72px 0; }
.thanks__icon { width: 76px; height: 76px; border-radius: 50%; background: var(--amber); color: var(--navy); display: grid; place-items: center; margin: 0 auto 26px; }
.thanks__icon .ico { width: 38px; height: 38px; stroke-width: 2.6; }
.thanks h1 { font-size: clamp(2rem, 6vw, 3rem); }
.thanks p { font-size: 1.2rem; margin: 16px auto 32px; max-width: 34ch; }
