/* Estilo inspirado en la plantilla Modernize, con la paleta de Kódice (marino y dorado) */
:root {
  --navy: #00193a;
  --navy-2: #002a62;
  --gold: #fbb524;
  --gold-dark: #e9a312;
  --light-navy: #eaeff7;
  --light-gold: #fff6e0;
  --link: #1b4f9c;
  --success: #13deb9;
  --light-success: #e6fffa;
  --error: #fa896b;
  --light-error: #fbf2ef;
  --text: #1f2a3d;
  --muted: #5a6a85;
  --border: #e5eaef;
  --shadow: rgba(145, 158, 171, 0.3) 0 0 2px 0, rgba(145, 158, 171, 0.12) 0 12px 24px -4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.text-gold { color: var(--gold); }
.muted { color: var(--muted); }

/* Barra superior */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--navy); letter-spacing: 0.06em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; flex: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.menu { display: flex; align-items: center; gap: 6px; }
.menu a.link { color: var(--text); font-weight: 500; font-size: 0.95rem; padding: 8px 14px; border-radius: 8px; }
.menu a.link:hover { background: var(--light-navy); color: var(--navy); text-decoration: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  background: var(--gold); color: var(--navy); border: 1px solid var(--gold); cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); text-decoration: none; }
.btn.outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.outline:hover { background: var(--light-navy); }

/* Portada */
.hero { background: var(--navy); color: #fff; padding: 88px 0 96px; text-align: center; }
.hero .eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.12; font-weight: 700;
  max-width: 16em; margin-inline: auto;
}
.hero p.sub { color: #c4cfe3; font-size: 1.15rem; max-width: 40em; margin: 22px auto 0; }
.hero .cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn.outline { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.hero .btn.outline:hover { background: rgba(255, 255, 255, 0.1); }
.pill-row { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  padding: 7px 16px; font-size: 0.9rem; font-weight: 500; color: #fff;
}

/* Secciones */
section { padding: 88px 0; }
.section-title { text-align: center; font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; color: var(--navy); }
.section-sub { text-align: center; color: var(--muted); max-width: 40em; margin: 14px auto 48px; }

.grid { display: grid; gap: 24px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: #fff; border-radius: 12px; padding: 28px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.card h3 { font-size: 1.15rem; font-weight: 600; margin: 18px 0 8px; color: var(--navy); }
.card p { color: var(--muted); font-size: 0.97rem; }

.icon-tile {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--light-navy); color: var(--navy);
}
.icon-tile svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-gold { background: var(--light-gold); color: #c98a00; }
.tile-success { background: var(--light-success); color: #0fb89a; }
.tile-error { background: var(--light-error); color: var(--error); }

/* Cómo trabajamos */
.step { border-radius: 12px; padding: 32px 26px; text-align: center; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 1.1rem;
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.step p { color: var(--muted); font-size: 0.96rem; }
.step.s1, .step.s3 { background: var(--light-navy); }
.step.s2, .step.s4 { background: var(--light-gold); }
.step.s1 .num, .step.s3 .num { background: var(--navy); }
.step.s2 .num, .step.s4 .num { background: var(--gold); color: var(--navy); }

/* Nosotros */
.about { background: var(--light-navy); border-radius: 20px; padding: 56px 40px; display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr; align-items: center; }
.about h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; font-weight: 700; margin-bottom: 16px; color: var(--navy); }
.about p { color: var(--muted); }
.about ul { list-style: none; display: grid; gap: 14px; }
.about li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 12px; padding: 16px 18px; }
.about li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: #c98a00; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.about li strong { display: block; font-weight: 600; color: var(--navy); }
.about li span { color: var(--muted); font-size: 0.93rem; }

/* Contacto */
.contact-card { text-align: center; }
.contact-card .icon-tile { margin: 0 auto; }
.contact-card h3 { margin-top: 16px; }
.contact-card a, .contact-card span.val { font-weight: 500; word-break: break-word; }

/* Llamada a la acción */
.cta-box { background: var(--navy); color: #fff; border-radius: 20px; padding: 64px 32px; text-align: center; }
.cta-box h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1.2; max-width: 20em; margin: 0 auto 12px; }
.cta-box p { color: #c4cfe3; margin-bottom: 28px; }

/* Pie */
footer { margin-top: 24px; border-top: 1px solid var(--border); padding: 56px 0 28px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
footer h5 { font-size: 1.05rem; font-weight: 600; margin-bottom: 18px; color: var(--navy); }
footer ul { list-style: none; display: grid; gap: 12px; }
footer li a, footer li { color: var(--muted); }
footer li a:hover { color: var(--navy); }
.foot-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 0.92rem;
}

/* Páginas de texto (privacidad) */
.doc { padding: 56px 0 72px; max-width: 800px; }
.doc h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.doc .upd { color: var(--muted); margin-bottom: 28px; }
.doc h2 { font-size: 1.25rem; font-weight: 600; margin: 30px 0 8px; color: var(--navy); }
.doc p, .doc li { color: #3d4a62; }
.doc ul { margin: 8px 0 8px 22px; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; padding: 36px 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .menu a.link { display: none; }
  .hero { padding: 56px 0 64px; }
  section { padding: 60px 0; }
}
