/* =====================================================================
   BROWNZA GROUP · DESIGN SYSTEM
   Hi-Fi prototype · Digital Sea Mx · 2026-04-21
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (del brief oficial) */
  --burgundy: #791919;
  --burgundy-2: #AA2725;
  --ink: #0B0B0B;
  --ink-2: #1F1F1F;
  --ink-3: #4A4A4A;
  --ink-4: #6B6B6B;
  --line: #E6E6E6;
  --line-2: #D1D1D1;
  --cream: #FAFAFA;
  --warm-bg: #F4EFEC;
  --burgundy-soft: #FCF1F1;
  --white: #FFFFFF;

  /* Spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 56px; --s-10: 72px;
  --s-11: 96px; --s-12: 120px;

  /* Typography */
  --font-display: 'Futura', 'Futura PT', 'Montserrat', system-ui, sans-serif;
  --font-body: 'Avenir', 'Avenir Next', 'Nunito Sans', 'Inter', system-ui, sans-serif;

  /* Layout */
  --container: 1400px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.05);
  --shadow-burgundy: 0 12px 32px rgba(121,25,25,.18);

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --t-fast: 150ms;
  --t-med: 250ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--burgundy); }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 2px; }

/* ---------- Typography classes ---------- */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

.h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5.5vw, 72px); line-height: 1.05; letter-spacing: -.02em; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.01em; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.h4 { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: .01em; }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--burgundy); }
.eyebrow-light { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-3); }
.muted { color: var(--ink-4); font-size: 14px; }

.accent-underline {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--burgundy-2);
  text-decoration-thickness: 4px;
  text-underline-offset: 3px;
}

/* ---------- Container ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: var(--s-11) 0; }
.section-tight { padding: var(--s-9) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: .03em; cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--burgundy); color: var(--white); }
.btn-primary:hover { background: #5e1414; color: var(--white); box-shadow: var(--shadow-burgundy); }
.btn-secondary { background: var(--ink); color: var(--white); }
.btn-secondary:hover { background: #1f1f1f; color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: var(--white); color: #0b0b0b !important; border-color: var(--white); }
.btn-ghost-light-fix { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.7); }
.btn-ghost-light-fix:hover { background: var(--white); color: #0b0b0b !important; border-color: var(--white); }
.btn-link { color: var(--burgundy); font-weight: 600; padding: 8px 0; }
.btn-link:hover { color: var(--burgundy-2); }
.btn-link::after { content: " →"; transition: transform var(--t-fast) var(--ease); }
.btn-link:hover::after { transform: translateX(4px); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 38px; width: auto; }
.nav-anchors { display: flex; align-items: center; gap: 32px; }
.nav-anchors > a { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav-anchors > a:hover { color: var(--burgundy); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; }

/* ---------- NAV DROPDOWN ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 14px; font-weight: 500;
  color: var(--ink-2); padding: 8px 0; cursor: pointer; background: transparent; border: 0;
  transition: color var(--t-fast) var(--ease);
}
.nav-dropdown-trigger .chev { transition: transform var(--t-fast) var(--ease); }
.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger { color: var(--burgundy); }
.nav-dropdown:hover .nav-dropdown-trigger .chev,
.nav-dropdown:focus-within .nav-dropdown-trigger .chev { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 320px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 14px; font-weight: 500;
  color: var(--ink-2); white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-dropdown-menu a:hover { background: var(--burgundy-soft); color: var(--burgundy); }
/* Hover sobre el servicio activo: conservar fondo burgundy + texto blanco */
.nav-dropdown-menu a.active:hover,
.nav-dropdown-menu a[aria-current="page"]:hover { background: var(--burgundy); color: var(--white); }
.nav-dropdown-menu a.active,
.nav-dropdown-menu a[aria-current="page"] {
  background: var(--burgundy); color: var(--white); font-weight: 600;
}
.nav-dropdown-menu a.active::before,
.nav-dropdown-menu a[aria-current="page"]::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--white); flex-shrink: 0;
}

/* ---------- HERO V1 — Editorial Impact ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 720px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 56px 24px 48px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,11,11,.55) 0%, rgba(11,11,11,.78) 100%);
}
.hero .eyebrow-light { margin-bottom: 24px; }
.hero h1 { color: var(--white); max-width: 1080px; margin: 0 auto 24px; }
.hero h1 .accent-underline { text-decoration-color: var(--burgundy-2); }
.hero .subcopy { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; max-width: 720px; color: rgba(255,255,255,.88); margin: 0 auto 36px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-size: 11px; letter-spacing: .25em; color: rgba(255,255,255,.6); text-transform: uppercase; }
.hero-scroll::after { content: " ↓"; }

/* ---------- TRUST BAND ---------- */
.trust-band { background: var(--ink); color: var(--white); padding: 32px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.trust-item { text-align: center; }
.trust-num { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 700; color: var(--white); letter-spacing: -.02em; line-height: 1; }
.trust-num .currency { color: var(--burgundy-2); margin-right: 4px; }
.trust-label { font-size: 12px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .12em; margin-top: 8px; font-family: var(--font-display); }

/* ---------- SECCIONES base ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--s-9); }
.section-head .eyebrow { display: inline-block; margin-bottom: 14px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--ink-3); font-size: 17px; }

/* ---------- SERVICIOS GRID ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
/* Modificador: 5 cards en 3 (row 1) + 2 centradas (row 2) */
.services-grid.grid-3-2 { grid-template-columns: repeat(6, 1fr); }
.services-grid.grid-3-2 > * { grid-column: span 2; }
.services-grid.grid-3-2 > :nth-child(4) { grid-column: 2 / span 2; }
.services-grid.grid-3-2 > :nth-child(5) { grid-column: 4 / span 2; }
/* Variante 3 columnas (servicios especializados) */
.services-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  display: flex; flex-direction: column; gap: 16px;
  cursor: pointer;
}
.service-card:hover { border-color: var(--burgundy); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card .icon-box {
  width: 56px; height: 56px;
  background: var(--burgundy-soft);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--burgundy);
}
.service-card .icon-box svg { width: 28px; height: 28px; stroke-width: 1.5; }
.service-card h3 { font-size: 22px; }
.service-card p { color: var(--ink-3); font-size: 15px; line-height: 1.6; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.service-card .tag { background: var(--cream); color: var(--ink-3); font-size: 11px; padding: 4px 10px; border-radius: 100px; font-family: var(--font-display); font-weight: 500; letter-spacing: .04em; }
.service-card .more { margin-top: auto; padding-top: 8px; }

.service-card-r {
  background: var(--burgundy);
  color: #fff;
}
.service-card-r .icon-box {
  background: rgba(255,255,255,.15);
  color: var(--white);
}
.service-card-r p { color: var(--white); }

/* ---------- ABOUT split ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img { position: relative; aspect-ratio: 4/5; background-size: cover; background-position: center; border-radius: var(--radius-lg); overflow: hidden; }
.about-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(11,11,11,.25)); }
.about-quote { background: var(--burgundy); color: var(--white); padding: 24px 28px; border-radius: var(--radius-lg); font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.5; position: relative; margin-top: 28px; }
.about-quote::before { content: "“"; position: absolute; top: -12px; left: 16px; font-size: 64px; line-height: 1; color: var(--burgundy-2); font-family: 'Georgia', serif; }
.values-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 28px; }
.value { padding: 18px 20px; border-left: 3px solid var(--burgundy); background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0; }
.value h4 { font-size: 14px; color: var(--burgundy); margin-bottom: 4px; }
.value p { font-size: 14px; color: var(--ink-3); }

/* #nosotros — imagen derecha sticky a 100vh mientras se lee el contenido (solo desktop ≥1025px) */
@media (min-width: 1025px) {
  #nosotros { padding-top: var(--s-9); padding-bottom: var(--s-9); }
  #nosotros .about-split { gap: 56px; align-items: start; }
  #nosotros .h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 14px !important; }
  #nosotros .lead { font-size: 16px; line-height: 1.5; margin-bottom: 14px !important; }
  #nosotros .values-row { gap: 12px; margin-top: 18px; }
  #nosotros .value { padding: 13px 16px; }
  #nosotros .value p { font-size: 13px; line-height: 1.45; }
  #nosotros .about-quote { font-size: 15px; line-height: 1.45; padding: 18px 24px; margin-top: 18px; }
  /* Imagen sticky: se queda fija a la altura completa del viewport mientras la columna de texto hace scroll */
  #nosotros .about-img {
    position: sticky;
    top: 0;
    height: 100vh;
    aspect-ratio: auto;
    max-height: none;
  }
}

/* ---------- SECTORES ---------- */
.sectors-band { background: var(--cream); padding: var(--s-9) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sectors-row { display: grid; grid-template-columns: repeat(24, 1fr); gap: 16px; align-items: stretch; }
/* 7 pills → 4 arriba + 3 abajo centradas (cada pill ocupa 6 de 24 cols = 25%) */
.sectors-row > * { grid-column: span 6; }
.sectors-row > :nth-child(5) { grid-column: 4 / span 6; }
.sectors-row > :nth-child(6) { grid-column: 10 / span 6; }
.sectors-row > :nth-child(7) { grid-column: 16 / span 6; }
.sector-pill {
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 15px 14px; min-height: 58px;
  background: var(--burgundy); border: 1px solid var(--burgundy); border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--white); letter-spacing: .02em;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.sector-pill:hover { background: #8d2828; border-color: #8d2828; color: var(--white); }

/* ---------- SECTORES · CARRUSEL (v4.1) ---------- */
.sectors-carousel {
  position: relative;
  overflow: hidden;
  /* Fade en los bordes izquierdo/derecho */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.sectors-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: sectors-scroll 20s linear infinite;
  will-change: transform;
}
@keyframes sectors-scroll {
  from { transform: translateX(0); }      /* set original */
  to   { transform: translateX(-50%); }   /* se desliza hacia la izquierda hasta el set duplicado */
}
.sector-card {
  flex: 0 0 240px;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
}
.sector-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0) 30%, rgba(121,25,25,.5) 65%, rgba(60,12,12,.92));
}
.sector-card-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 22px 20px;
  color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.25;
}
@media (max-width: 640px) {
  .sector-card { flex: 0 0 200px; height: 290px; }
  .sectors-track { animation-duration: 5s; }
}
@media (prefers-reduced-motion: reduce) {
  .sectors-track { animation: none; }
  .sectors-carousel { overflow-x: auto; }
}

/* ---------- PROCESO ---------- */
.process-wrap { background: var(--ink); color: var(--white); padding: var(--s-11) 0; position: relative; overflow: hidden; }
.process-wrap .section-head h2 { color: var(--white); }
.process-wrap .section-head p { color: rgba(255,255,255,.7); }
.process-wrap .eyebrow { color: var(--burgundy-2); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.process-grid::before { content: ""; position: absolute; top: 30px; left: 4%; right: 4%; height: 1px; background: rgba(255,255,255,.15); z-index: 0; }
.process-step { position: relative; z-index: 1; }
.process-num {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--burgundy-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--burgundy-2);
  margin-bottom: 22px;
}
.process-step h4 { color: var(--white); margin-bottom: 8px; font-size: 17px; }
.process-step p { color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.6; }

/* ---------- TESTIMONIOS ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testimonial {
  background: var(--white); border: 1px solid var(--line);
  padding: 32px; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 20px;
  transition: box-shadow var(--t-med) var(--ease);
}
.testimonial:hover { box-shadow: var(--shadow-md); }
.testimonial .stars { color: var(--burgundy-2); font-size: 16px; letter-spacing: 2px; }
.testimonial-quote { font-size: 16px; line-height: 1.6; color: var(--ink-2); flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background-size: cover; background-position: center; flex-shrink: 0; }
.testimonial-info .name { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.testimonial-info .role { font-size: 12px; color: var(--ink-4); margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color var(--t-fast) var(--ease); background: var(--white); }
.faq-item[open] { border-color: var(--burgundy); box-shadow: var(--shadow-md); }
.faq-q { padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; font-size: 24px; color: var(--burgundy); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform var(--t-fast) var(--ease); }
.faq-item[open] .faq-q::after { content: "−"; transform: rotate(0deg); }
.faq-a { padding: 0 24px 22px; color: var(--ink-3); font-size: 15px; line-height: 1.7; }

/* ---------- FORM ---------- */
.form-wrap { background: var(--cream); padding: 56px 48px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.field label .req { color: var(--burgundy-2); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; max-width: 100%;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; font-size: 15px; font-family: var(--font-body); color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field { min-width: 0; }
.form-row { min-width: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(121,25,25,.08); outline: none; }
.field textarea { resize: vertical; min-height: 110px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.checkbox-row input { margin-top: 3px; flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.contact-info { padding: 16px 0; }
.contact-info .item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info .item:last-child { border: none; }
.contact-info .icon { color: var(--burgundy); flex-shrink: 0; }
.contact-info h4 { font-size: 13px; color: var(--ink-4); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; font-family: var(--font-display); }
.contact-info p { color: var(--ink); font-weight: 500; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  background-color: var(--burgundy);
  background-image:
    linear-gradient(135deg, rgba(121,25,25,.88), rgba(170,39,37,.82)),
    url('https://images.unsplash.com/photo-1486325212027-8081e485255e?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white); padding: var(--s-11) 0; text-align: center;
  overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(at 80% 0%, rgba(255,255,255,.12), transparent 55%);
  pointer-events: none; z-index: 0;
}
.cta-banner > .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; max-width: 800px; margin-left: auto; margin-right: auto; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 32px; }
.cta-banner .btn-primary { background: var(--white); color: var(--burgundy); }
.cta-banner .btn-primary:hover { background: var(--ink); color: var(--white); }
.cta-banner .btn-ghost-light { color: var(--white); }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-logo img { height: 36px; filter: brightness(0) invert(1); }
.footer-col h4 { font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 18px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; padding: 6px 0; color: rgba(255,255,255,.78); font-size: 14px; }
.footer-col a:hover { color: var(--white); }
/* Links de la barra inferior del footer (Aviso/Términos): blanco en hover, no burgundy sobre fondo oscuro */
.footer-bottom a:hover { color: var(--white); text-decoration: underline; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; padding: 0; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.social-row a:hover { background: var(--burgundy); border-color: var(--burgundy); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: rgba(255,255,255,.5); }
.footer-bottom .seal { display: flex; align-items: center; gap: 8px; }
.footer-bottom .seal img { height: 24px; filter: brightness(0) invert(1); opacity: .7; }

/* ---------- FAB ---------- */
.fab-wrap { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 12px; z-index: 40; }
.fab { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 100px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--white); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.fab.wa { background: #25D366; box-shadow: 0 8px 24px rgba(37,211,102,.35); width: 56px; height: 56px; padding: 0; justify-content: center; }
.fab.wa svg { width: 26px; height: 26px; }
.fab.consult { background: var(--burgundy); box-shadow: var(--shadow-burgundy); }
.fab:hover { transform: translateY(-2px); color: var(--white); }
.fab svg { width: 18px; height: 18px; }

/* ---------- BREADCRUMB ---------- */
.breadcrumb { background: var(--cream); padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li { color: var(--ink-4); font-family: var(--font-display); }
.breadcrumb li[aria-current] { color: var(--burgundy); font-weight: 600; }
.breadcrumb .sep { color: var(--line-2); }

/* ---------- SERVICE PAGE specifics ---------- */
.svc-hero { background: var(--ink); color: var(--white); padding: 80px 0 64px; position: relative; overflow: hidden; }
.svc-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(at 80% 50%, rgba(170,39,37,.25), transparent 60%);
  z-index: 0;
}
.svc-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.svc-hero h1 { color: var(--white); margin: 14px 0 18px; font-size: clamp(36px, 4.2vw, 56px); }
.svc-hero p.lead { color: rgba(255,255,255,.85); margin-bottom: 28px; }
.svc-hero-img { aspect-ratio: 4/3; background-size: cover; background-position: center; border-radius: var(--radius-lg); position: relative; }
.svc-hero-img::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 80px rgba(0,0,0,.4); border-radius: var(--radius-lg); }
.svc-mini-band { display: flex; gap: 16px; padding-top: 28px; }
.svc-mini-band .item .num { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--burgundy-2); }
.svc-mini-band .item .lbl { color: rgba(255,255,255,.7); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; font-family: var(--font-display); }

.deliverables-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.deliv-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; gap: 16px; align-items: flex-start; }
.deliv-card .check { width: 32px; height: 32px; border-radius: 50%; background: rgba(22,163,74,.12); color: #16A34A; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.deliv-card .body h4 { margin-bottom: 6px; font-size: 16px; }
.deliv-card .body p { font-size: 14px; color: var(--ink-3); line-height: 1.55; }

.timeline-h { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; padding-top: 8px; }
.timeline-h::before { content: ""; position: absolute; top: 38px; transform: translateY(-50%); left: 10%; right: 10%; height: 2px; background: var(--line-2); z-index: 0; }
/* Modificador: timeline con 6 pasos (entidades-financieras) */
.timeline-h.steps-6 { grid-template-columns: repeat(6, 1fr); }
.timeline-h.steps-6::before { left: 8.33%; right: 8.33%; }
.tstep { text-align: center; position: relative; z-index: 1; }
.tstep .circle { width: 60px; height: 60px; border-radius: 50%; background: var(--white); border: 2px solid var(--burgundy); color: var(--burgundy); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 auto 18px; }
.tstep.active .circle { background: var(--burgundy); color: var(--white); }
.tstep h4 { font-size: 15px; margin-bottom: 8px; }
.tstep p { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

.benefits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.benefit { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.benefit .icon { width: 44px; height: 44px; background: var(--burgundy-soft); color: var(--burgundy); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.benefit h4 { margin-bottom: 8px; font-size: 17px; }
.benefit p { font-size: 14px; color: var(--ink-3); line-height: 1.6; }

.regulatory-grid { align-items: center !important; }
.regulatory-grid-inner {max-width: 750px;}
.req-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.req-list li::before { content: ""; width: 8px; height: 8px; background: var(--burgundy); border-radius: 50%; flex-shrink: 0; }
.req-list li:last-child { border-bottom: none; }
.badges-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.badges-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Lista de beneficios (financiamiento) */
.fin-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 56px; max-width: 960px; margin: 0 auto; }
.badge-card { padding: 22px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); text-align: center; background: var(--white); transition: border-color var(--t-fast) var(--ease); }
.badge-card:hover { border-color: var(--burgundy); }
.badge-card .label { font-family: var(--font-display); font-size: 11px; color: var(--ink-4); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.badge-card .name { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); }

/* ---------- TABS (Entidades Financieras) ---------- */
.tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tab-btn { padding: 12px 22px; border: 1.5px solid var(--line); border-radius: 100px; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--ink-3); background: var(--white); transition: all var(--t-fast) var(--ease); letter-spacing: .03em; }
.tab-btn:hover { border-color: var(--burgundy); color: var(--burgundy); }
.tab-btn.active { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }
/* Hover sobre tab activa: mantener texto blanco (evita burgundy sobre burgundy) */
.tab-btn.active:hover { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.tab-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tab-content-grid .tab-img { aspect-ratio: 4/3; background-size: cover; background-position: center; border-radius: var(--radius-lg); }

/* ---------- RELATED CARDS ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); position: relative; transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.related-card:hover { border-color: var(--burgundy); transform: translateY(-2px); }
.related-card .icon { width: 40px; height: 40px; background: var(--burgundy-soft); color: var(--burgundy); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.related-card h4 { margin-bottom: 8px; font-size: 17px; }
.related-card p { font-size: 13px; color: var(--ink-3); line-height: 1.55; margin-bottom: 12px; }
.related-card .arrow { position: absolute; top: 28px; right: 28px; color: var(--burgundy); }

/* ---------- LOGOS / sectores con logos ---------- */
.logos-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; align-items: center; opacity: .7; padding: 32px 0; }
.logos-row .logo-ph { aspect-ratio: 3/1; background: linear-gradient(45deg, #E5E5E5 25%, transparent 25%, transparent 75%, #E5E5E5 75%), linear-gradient(45deg, #E5E5E5 25%, transparent 25%, transparent 75%, #E5E5E5 75%), #FAFAFA; background-size: 16px 16px; background-position: 0 0, 8px 8px; border-radius: 4px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .nav{
    padding-bottom: 15px !important;
    padding-top: 15px !important;
  }
  /* ----- Navegación móvil ----- */
  .nav-inner { padding: 18px 28px; }
  .nav-logo img { height: 65px !important; }
  .menu-toggle { display: inline-flex; padding: 10px; border-radius: var(--radius); }
  .nav-cta { display: none; }   /* el FAB cubre WhatsApp + Agenda */
  .nav-anchors {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 8px 20px 16px;
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav.open .nav-anchors { display: flex; }
  .nav-anchors > a { padding: 15px 4px; font-size: 16px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
  /* Servicios: items expandidos inline (sin hover) */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-trigger { width: 100%; justify-content: space-between; cursor: default; padding: 15px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-dropdown-trigger .chev { display: none; }
  .nav-dropdown-menu { position: static; transform: none; opacity: 1; pointer-events: auto; display: block; min-width: 0; box-shadow: none; border: none; background: transparent; padding: 4px 0 8px 14px; }
  .nav-dropdown-menu a { padding: 11px 10px; font-size: 14px; white-space: normal; }

  .services-grid, .services-grid.grid-3-2, .services-grid.cols-3 { grid-template-columns: 1fr; }
  .services-grid.grid-3-2 > *, .services-grid.grid-3-2 > :nth-child(4), .services-grid.grid-3-2 > :nth-child(5) { grid-column: auto; }
  .about-split { grid-template-columns: 1fr; gap: 48px; }
  .about-img { aspect-ratio: 16/10; max-width: 540px; margin: 0 auto; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .sectors-row { grid-template-columns: repeat(3, 1fr); }
  .sectors-row > *, .sectors-row > :nth-child(5), .sectors-row > :nth-child(6), .sectors-row > :nth-child(7) { grid-column: auto; }
  .svc-hero-grid { grid-template-columns: 1fr; }
  .deliverables-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .regulatory-grid { grid-template-columns: 1fr; }
  .badges-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .timeline-h, .timeline-h.steps-6 { grid-template-columns: 1fr; gap: 28px; }
  .timeline-h::before, .timeline-h.steps-6::before { left: 30px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto; transform: none; }
  .tstep { display: grid; grid-template-columns: 60px 1fr; column-gap: 18px; row-gap: 4px; text-align: left; align-items: start; }
  .tstep .circle { margin: 0; grid-row: 1 / span 2; align-self: start; }
  .tstep h4 { align-self: center; }
  .tab-content-grid { grid-template-columns: 1fr; gap: 32px; }
  .logos-row { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
  .container, .container-wide { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .hero { min-height: 540px; padding: 64px 20px 56px; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .sectors-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 32px 24px; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .badges-grid { grid-template-columns: 1fr; }
  .values-row { grid-template-columns: 1fr; }
  .nav-cta .btn-secondary { display: none; }
  .fab.consult span { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* Hero de páginas de servicio: evitar overflow horizontal */
  .svc-hero { padding: 56px 0 48px; }
  .svc-hero-grid > div { min-width: 0; }
  .svc-hero h1 { font-size: clamp(28px, 8vw, 34px); overflow-wrap: break-word; }
  .svc-hero p.lead { font-size: 16px; }
  .svc-mini-band { flex-wrap: wrap; gap: 16px 28px; }
  .svc-mini-band .item { min-width: 0; }
  .fin-benefits { grid-template-columns: 1fr; gap: 0; }
}

/* Print friendly */
@media print {
  .nav, .fab-wrap, .hero-scroll { display: none !important; }
  body { background: white; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
