/* =========================================================================
   MB FINANCE — Design system
   Paleta derivada del logo (navy + dorado). Mobile-first, sin frameworks.
   ========================================================================= */

:root {
  /* Color */
  --navy-900: #0E1F3D;
  --navy-800: #14294D;
  --navy-700: #18325E;
  --navy-600: #24406f;
  --gold-500: #C0922E;
  --gold-400: #D0A443;
  --gold-300: #E8C97A;
  --teal-500: #0E8C8C;
  --teal-100: #E3F5F4;

  --ink: #1A2233;
  --ink-soft: #47506B;
  --muted: #5A6472;
  --line: #E4E7EC;
  --surface: #FFFFFF;
  --surface-alt: #F7F8FA;
  --surface-tint: #FBF7EE;
  --bg: #FFFFFF;

  --success: #1D8A5A;
  --whatsapp: #25D366;

  /* Typography */
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Radii & shadow */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(14, 31, 61, 0.07);
  --shadow-md: 0 12px 32px rgba(14, 31, 61, 0.12);
  --shadow-lg: 0 24px 60px rgba(14, 31, 61, 0.18);

  /* Layout */
  --container: 1200px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-700);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink-soft);
}

button {
  font-family: inherit;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy-700);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: clamp(48px, 6vw, 88px) 0;
}

.section-tight { padding: clamp(32px, 4vw, 56px) 0; }

.section-alt { background: var(--surface-alt); }
.section-dark {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-700));
  color: #fff;
}
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.78); }

.section-head {
  max-width: 720px;
  margin: 0 0 40px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-400);
  display: inline-block;
}
.section-dark .eyebrow { color: var(--gold-300); }

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: inherit;
}
.btn-outline:hover { border-color: var(--gold-400); background: rgba(255,255,255,0.06); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-700);
}
.btn-outline-dark:hover { background: var(--navy-700); color: #fff; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
/* El fondo y el efecto de vidrio esmerilado van en un pseudo-elemento, no en
   .site-header. Motivo: un elemento con backdrop-filter se convierte en el
   contenedor de referencia de sus descendientes position:fixed, y eso hacía
   que el menú móvil (.main-nav, que usa inset: var(--header-h) 0 0 0) se
   midiera contra el header de 76px en vez de contra la pantalla, quedando
   con altura 0 — es decir, invisible al abrirlo. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  z-index: -1;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  height: 44px;
  width: auto;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-700);
  line-height: 1.1;
}
.brand-name span {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy-700);
}
.nav-toggle svg { width: 26px; height: 26px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--navy-700);
  background: var(--surface-alt);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}
.lang-switch a {
  padding: 7px 11px;
  text-decoration: none;
  color: var(--muted);
}
.lang-switch a[aria-current="true"] {
  background: var(--navy-700);
  color: #fff;
}

/* Copia del selector de idioma que vive fuera del <nav> colapsable, para que
   en móvil se pueda cambiar de idioma sin tener que abrir el menú.
   Solo se muestra en móvil; en desktop manda el que está en .nav-actions. */
.lang-switch-header {
  display: none;
  margin-left: auto;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a {
    padding: 14px 16px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-actions {
    order: -1;
  }
  .nav-actions .btn-primary { display: none; }

  /* El selector de idioma pasa al header, visible siempre; se oculta el que
     está dentro del menú para no mostrarlo dos veces. */
  .lang-switch-header { display: flex; }
  .nav-actions .lang-switch { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1100px 520px at 78% -10%, rgba(208,164,67,0.16), transparent 60%),
              linear-gradient(180deg, #ffffff 0%, var(--surface-alt) 100%);
  padding: clamp(48px, 7vw, 100px) 0 clamp(40px, 6vw, 80px);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-700);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  font-size: 0.7rem;
}

.hero h1 { margin-bottom: 0.4em; }
.hero .accent { color: var(--gold-500); display: block; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-photo-frame {
  position: relative;
  width: min(380px, 88vw);
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  overflow: hidden;
  background: var(--navy-700);
  box-shadow: var(--shadow-lg);
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  border: 6px solid rgba(255,255,255,0.5);
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  animation: float 5s ease-in-out infinite;
}
.floating-card svg { width: 26px; height: 26px; flex-shrink: 0; }
.floating-card strong { display: block; font-size: 1rem; color: var(--navy-700); }
.floating-card span { font-size: 0.72rem; color: var(--muted); }

.floating-card.card-1 { top: 6%; left: -8%; animation-delay: 0s; }
.floating-card.card-2 { bottom: 10%; right: -10%; animation-delay: 1.4s; }

/* En teléfonos la foto ocupaba casi todo el ancho (88vw) y tapaba el mensaje
   principal. Se reduce para que el contenido tenga el protagonismo. */
@media (max-width: 600px) {
  .hero-photo-frame { width: min(240px, 58vw); }
  .floating-card { padding: 10px 12px; gap: 8px; }
  .floating-card strong { font-size: 0.88rem; }
  .floating-card span { font-size: 0.66rem; }
}
@media (max-width: 480px) {
  .floating-card.card-1 { left: -4px; }
  .floating-card.card-2 { right: -4px; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip p {
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.trust-strip strong {
  color: var(--navy-700);
  font-weight: 700;
}

/* ---------- Cards: services ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  color: var(--gold-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-badge svg { width: 26px; height: 26px; }

.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.94rem; margin-bottom: 0; }
.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* ---------- Why / differentiators ---------- */
.feature-item {
  display: flex;
  gap: 16px;
}
.feature-item .icon-badge { flex-shrink: 0; margin-bottom: 0; }
.feature-item h3 { margin-bottom: 6px; font-size: 1.1rem; }
.feature-item p { font-size: 0.94rem; margin: 0; }

/* ---------- Stats ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 720px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold-300);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-top: 8px;
}

/* ---------- Process steps ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

.process-step {
  position: relative;
  padding-top: 8px;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-300);
  -webkit-text-stroke: 1px var(--gold-500);
  display: block;
  margin-bottom: 10px;
}
.process-step h3 { font-size: 1.05rem; }
.process-step p { font-size: 0.92rem; }

/* ---------- Video preview ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 720px) { .video-grid { grid-template-columns: 1fr; } }
.video-grid-single { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }

.video-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
}
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.3s ease;
}
.video-card:hover img { opacity: 1; transform: scale(1.03); }
.video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Una vez que el video se está reproduciendo, la tarjeta deja de ser un
   botón: no debe seguir mostrando el cursor de "clickeable" ni el hover. */
.video-card.is-playing { cursor: default; }
.video-card.is-playing:hover img { opacity: 0.85; transform: none; }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease;
}
.video-card:hover .play-btn span { transform: scale(1.08); }
.play-btn svg { width: 22px; height: 22px; color: var(--navy-700); margin-left: 3px; }
.video-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-700);
}
.faq-question .chev {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}
.faq-item[data-open="true"] .chev { transform: rotate(180deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.faq-answer p {
  padding: 0 4px 20px;
  margin: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-logo-chip {
  display: inline-flex;
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.footer-logo-chip img { height: 38px; }
.site-footer p { color: rgba(255,255,255,0.62); font-size: 0.92rem; }
.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.72);
  font-size: 0.94rem;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--gold-300); }

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.social-btn:hover { background: var(--gold-400); color: var(--navy-900); transform: translateY(-2px); }
.social-btn svg { width: 20px; height: 20px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 400;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  color: #fff;
  text-decoration: none;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }

/* ---------- Page header (subpages) ---------- */
.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px);
  background: linear-gradient(180deg, var(--surface-alt), #fff);
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero .lead { max-width: 680px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy-700); }

/* ---------- Filter chips ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--gold-400); }
.chip[aria-pressed="true"] {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}

/* ---------- Service category blocks ---------- */
.service-category {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.service-category:last-child { border-bottom: none; }
.category-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.category-head .icon-badge { margin-bottom: 0; }
.category-head h2 { margin-bottom: 4px; font-size: 1.4rem; }
.category-head p { margin: 0; font-size: 0.92rem; }

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
@media (max-width: 640px) { .service-list { grid-template-columns: 1fr; } }
.service-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 6px 0;
}
.service-list svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--teal-500);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card {
  text-align: center;
  padding: 28px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}
.audience-card .icon-badge { margin: 0 auto 14px; }
.audience-card h3 { font-size: 1rem; margin-bottom: 6px; }
.audience-card p { font-size: 0.86rem; margin: 0; }

/* ---------- Official resources (Actualidad fiscal) ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 12px;
}
@media (max-width: 900px) { .resource-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .resource-grid { grid-template-columns: 1fr; } }
.resource-card { height: 100%; }
.resource-card h3 { font-size: 1rem; margin-bottom: 6px; }
.resource-card p { font-size: 0.86rem; margin: 0; }
.resource-source { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.resource-link {
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--navy-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.resource-link svg { width: 14px; height: 14px; }

.note-box {
  background: var(--surface-tint);
  border: 1px solid var(--gold-300);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 30px;
}
.note-box strong { color: var(--navy-700); }

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .about-hero { grid-template-columns: 1fr; } }
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Team/testimonial-style boxes (legacy .box kept for compat) ---------- */
.box {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

/* ---------- News / Noticias ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card-img {
  aspect-ratio: 16/10;
  background: var(--surface-alt);
  overflow: hidden;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.news-tag {
  background: var(--surface-tint);
  color: var(--gold-500);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.news-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.news-card p { font-size: 0.9rem; margin: 0; flex: 1; }
.news-card .read-more {
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--navy-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.draft-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FDEBD3;
  color: #8A5300;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.search-row {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto 28px;
}
.search-row input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 0.94rem;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}
.article-body h2 { margin-top: 1.4em; }
.article-body ul,
.article-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
  color: var(--ink-soft);
}
.article-body li { margin-bottom: 0.4em; }
.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 16/8;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 0.86rem;
  color: var(--muted);
}
.share-row {
  display: flex;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  align-items: center;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-card:first-child { padding-top: 0; }
.contact-info-card .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.contact-info-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-card p { margin: 0; font-size: 0.92rem; }
.contact-info-card a { text-decoration: none; color: var(--navy-700); font-weight: 600; }

.contact-social-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}
@media (max-width: 640px) { .contact-social-row { grid-template-columns: 1fr; } }
.social-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}
.social-tile svg { width: 22px; height: 22px; }
.social-tile.tile-whatsapp { background: var(--whatsapp); }
.social-tile.tile-instagram { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4); }
.social-tile.tile-youtube { background: #FF0000; }

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 26px;
  border: 1px solid var(--line);
}
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- Form ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy-700);
  margin-bottom: 7px;
}
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.8rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(208,164,67,0.18);
  outline: none;
}
.field input.invalid,
.field textarea.invalid,
.field select.invalid { border-color: #C0392B; }
.field-error {
  color: #C0392B;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}
.field-error.show { display: block; }

.radio-row, .check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.radio-pill, .check-pill {
  position: relative;
}
.radio-pill input, .check-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.radio-pill label, .check-pill label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  margin: 0;
  transition: all 0.15s ease;
}
.radio-pill input:checked + label,
.check-pill input:checked + label {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}
.radio-pill input:focus-visible + label,
.check-pill input:focus-visible + label {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.consent-row input { margin-top: 4px; }
.consent-row a { color: var(--navy-700); font-weight: 600; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #E7F6EF; color: var(--success); }
.form-status.error { background: #FBEAE8; color: #C0392B; }
.form-status .btn { margin-top: 12px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 5vw, 7rem);
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
}

/* ---------- Misc utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
