/* IVAJAL · Sitio corporativo
   Colores y tipografía centralizados: cambie aquí y se aplica en todo el sitio. */
:root {
  --navy: #0A2240;
  --navy-dark: #071A33;
  --navy-line: #1E3556;
  --ink: #0F1B2D;
  --muted: #4A5568;
  --light: #DCE6F3;
  --light-2: #B9CCE6;
  --ground: #F4F6F9;
  --line: #E3E8EF;
  --field: #C5CFDC;
  --accent: #B34D0B;
  --accent-dark: #8F3D08;
  --accent-soft: #FFF4EC;
  --radius: 14px;
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--font-body); transition: background .15s, color .15s; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 40px; height: 40px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 17px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: .5px; }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.main-nav a { text-decoration: none; color: var(--ink); }
.main-nav a:hover { color: var(--accent); }
.main-nav .lang { color: var(--muted); }
.nav-panel { display: flex; align-items: center; gap: 28px; }
.header-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px; width: 46px; height: 46px; cursor: pointer; }
.nav-toggle svg { margin: auto; }

/* Hero */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; pointer-events: none; }
.hero-row { position: relative; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 96px 24px 104px; }
.hero-copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.hero .eyebrow { color: var(--light-2); }
.hero h1 { font-weight: 800; font-size: clamp(36px, 5vw, 56px); letter-spacing: -1px; line-height: 1.08; }
.hero-lead { font-size: 19px; color: var(--light); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.hero-card { flex: 1 1 340px; min-width: 0; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hero-card h2 { font-size: 22px; }
.hero-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.hero-card li { display: flex; gap: 10px; align-items: flex-start; }
.hero-card li svg { flex: none; margin-top: 3px; }

/* Franja de datos */
.facts { background: var(--ground); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding: 28px 24px; }
.fact-big { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--navy); }
.fact-small { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Secciones */
.section { padding: 96px 0; }
.section-alt { background: var(--ground); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.section-head h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 40px); }
.section-head p { font-size: 17px; color: var(--muted); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.card h3 { font-size: 21px; font-weight: 700; }
.card p, .card li { font-size: 15px; color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps li { background: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.step-num { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: var(--accent); }
.steps strong { font-size: 18px; }
.steps span:last-child { font-size: 15px; color: var(--muted); }

.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.values { font-weight: 600; color: var(--navy); margin-top: 16px; }

.placeholder { border-radius: var(--radius); background: #E9EEF5; border: 1.5px dashed #9AA9BD; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted); min-height: 280px; }

.band { background: var(--navy); color: #fff; }
.band-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding: 72px 24px; }
.band-row > div { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.band h2 { font-weight: 800; font-size: 34px; }
.band p { font-size: 17px; color: var(--light); }

/* Cotización */
.quote { background: var(--accent-soft); border-top: 1px solid #F3DCCB; }
.quote-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding: 80px 24px; }
.quote-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.quote-intro h2 { font-weight: 800; font-size: 36px; }
.quote-intro p { font-size: 17px; color: var(--muted); }
.quote-form { flex: 999 1 560px; min-width: 0; background: #fff; border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 46px; padding: 0 12px; border: 1.5px solid var(--field); border-radius: 8px; font-size: 15px; font-family: var(--font-body); background: #fff; color: var(--ink); }
.field textarea { padding: 12px; min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(10,34,64,.15); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; grid-column: 1 / -1; }
.check input { width: 20px; height: 20px; }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.form-status { grid-column: 1 / -1; font-size: 14px; font-weight: 600; }
.form-status.error { color: #A3221B; }
.form-status.ok { color: #1D5C2E; }
.quote-form .btn { grid-column: 1 / -1; justify-self: start; }

/* Pie */
.site-footer { background: var(--navy-dark); color: var(--light); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding: 64px 24px 32px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-grid strong { color: #fff; }
.footer-grid a { color: var(--light); text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: #fff; }
.footer-bottom { border-top: 1px solid var(--navy-line); padding: 20px 24px 32px; font-size: 13px; color: var(--light-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.social { display: flex; gap: 12px; }

/* Página legal */
.legal { max-width: 820px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-size: 36px; margin-bottom: 24px; }
.legal h2 { font-size: 22px; margin: 32px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal .notice { background: var(--accent-soft); border: 1px solid #F3DCCB; border-radius: 8px; padding: 12px 16px; color: #7A3608; margin-bottom: 24px; }

/* Funciones que solo aparecen cuando estén activas (ver assets/js/config.js) */
[data-requires="portal"] { display: none !important; }
html.portal-on [data-requires="portal"] { display: revert !important; }

/* Móvil */
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav-panel { display: none; }
  .site-header.open .nav-panel { display: flex; flex-direction: column; align-items: stretch; gap: 16px; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 12px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .site-header.open .main-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .site-header.open .main-nav a { min-height: 46px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
  .site-header.open .header-cta { flex-direction: column; }
  .hero-row { padding: 64px 24px 72px; }
  .section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Logotipo */
.brand-logo { height: 44px; width: auto; }
@media (max-width: 480px) { .brand-logo { height: 38px; } }

/* Imagen de sección */
.feature-img { width: 100%; height: auto; border-radius: var(--radius); }

/* Botón flotante de WhatsApp */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 999px; background: #1F7A4D; color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa-fab:hover { background: #17603C; color: #fff; }
@media (max-width: 480px) { .wa-fab span { display: none; } .wa-fab { padding: 0; width: 56px; justify-content: center; } }

/* Página en construcción */
.badge-build { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(224,112,31,.18); color: #FFD9BD; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.badge-build::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E0701F; }
.build-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.build-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font-size: 16px; color: var(--ink); }
