/* ============================================================
   AGENCIA DURÁN — Design System 2026
   Inspirado en Maersk Design System, identidad Durán
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --ad-navy:        #273c50;   /* Deep navy — texto, headers, footer */
  --ad-navy-deep:   #1a2a39;
  --ad-blue:        #489aca;   /* Brand blue — acento principal */
  --ad-blue-deep:   #2b7aab;   /* Hover, profundidad */
  --ad-blue-bright: #5fb3e3;   /* Highlight */
  --ad-blue-light:  #c8e0ee;   /* Light bg */
  --ad-blue-pale:   #eaf4fa;   /* Pale section bg */
  --ad-white:       #ffffff;
  --ad-ink:         #0f1f2c;
  --ad-gray-50:     #fafbfc;
  --ad-gray-100:    #f3f5f8;
  --ad-gray-200:    #e6ebf0;
  --ad-gray-300:    #c7d1da;
  --ad-gray-500:    #7b8b9a;
  --ad-gray-700:    #44525f;
  --ad-accent:      #f5b800;   /* Acento cálido para badges/destacados */

  /* Type scale */
  --fs-display-xl: clamp(2.75rem, 6vw + 1rem, 5.5rem);
  --fs-display-l:  clamp(2.25rem, 4vw + 1rem, 3.75rem);
  --fs-h2:         clamp(1.75rem, 2vw + 1rem, 2.5rem);
  --fs-h3:         clamp(1.25rem, 1vw + 0.9rem, 1.5rem);
  --fs-lead:       clamp(1.05rem, 0.4vw + 0.95rem, 1.25rem);
  --fs-body:       1rem;
  --fs-small:      0.875rem;
  --fs-eyebrow:    0.75rem;

  /* Spacing */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Layout */
  --container: 1240px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 24px;
  --radius-xl: 48px;

  /* Motion */
  --t-fast: 150ms ease;
  --t-med: 280ms cubic-bezier(.2,.7,.3,1);

  /* Shadows */
  --shadow-s: 0 1px 2px rgba(15,31,44,.05), 0 1px 3px rgba(15,31,44,.08);
  --shadow-m: 0 4px 14px rgba(15,31,44,.08), 0 2px 6px rgba(15,31,44,.05);
  --shadow-l: 0 20px 40px rgba(15,31,44,.12), 0 8px 16px rgba(15,31,44,.06);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ad-ink);
  background: var(--ad-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ad-blue-deep); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--ad-navy); }
button { font: inherit; }
h1, h2, h3, h4 { color: var(--ad-navy); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 var(--sp-5); }
h1 { font-size: var(--fs-display-xl); letter-spacing: -0.025em; }
h2 { font-size: var(--fs-display-l); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h2); }
h4 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--sp-4); }

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.section { padding: var(--sp-10) 0; }
.section--sm { padding: var(--sp-8) 0; }
.section--bg-navy { background: var(--ad-navy); color: var(--ad-white); }
.section--bg-navy h1, .section--bg-navy h2, .section--bg-navy h3 { color: var(--ad-white); }
.section--bg-blue { background: var(--ad-blue); color: var(--ad-white); }
.section--bg-blue h1, .section--bg-blue h2, .section--bg-blue h3 { color: var(--ad-white); }
.section--bg-pale { background: var(--ad-blue-pale); }
.section--bg-gray { background: var(--ad-gray-50); }

.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--hero { grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--sp-8); }
@media (max-width: 900px){
  .grid--2, .grid--3, .grid--4, .grid--hero { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  color: var(--ad-blue);
  margin-bottom: var(--sp-4);
}
.section--bg-navy .eyebrow,
.section--bg-blue .eyebrow { color: var(--ad-blue-bright); }
.lead { font-size: var(--fs-lead); color: var(--ad-gray-700); max-width: 720px; }
.section--bg-navy .lead, .section--bg-blue .lead { color: var(--ad-blue-light); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-med);
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary { background: var(--ad-blue); color: var(--ad-white); }
.btn--primary:hover { background: var(--ad-blue-deep); color: var(--ad-white); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn--navy { background: var(--ad-navy); color: var(--ad-white); }
.btn--navy:hover { background: var(--ad-navy-deep); color: var(--ad-white); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn--ghost { background: transparent; color: var(--ad-navy); border-color: var(--ad-navy); }
.btn--ghost:hover { background: var(--ad-navy); color: var(--ad-white); }
.btn--ghost-light { background: transparent; color: var(--ad-white); border-color: var(--ad-white); }
.btn--ghost-light:hover { background: var(--ad-white); color: var(--ad-navy); }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1cb557; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 5. Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--ad-gray-200);
  transition: box-shadow var(--t-fast);
}
.site-header.scrolled { box-shadow: var(--shadow-s); }
.topbar {
  background: var(--ad-navy);
  color: var(--ad-blue-light);
  font-size: 0.8rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.topbar a { color: var(--ad-white); }
.topbar a:hover { color: var(--ad-blue-bright); }
.topbar .top-contact { display: flex; gap: var(--sp-5); flex-wrap: wrap; }

.navbar { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) 0; gap: var(--sp-5); }
.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--ad-navy); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-mark {
  width: 44px; height: 44px;
  background: var(--ad-navy);
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--ad-white);
  font-weight: 800;
  font-size: 1rem;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text small { display: block; font-size: 0.7rem; color: var(--ad-gray-500); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

.nav-main { display: flex; gap: var(--sp-2); align-items: center; }
.nav-main a {
  color: var(--ad-navy);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-main a:hover, .nav-main a.active { background: var(--ad-blue-pale); color: var(--ad-blue-deep); }
.nav-cta { display: flex; gap: var(--sp-3); align-items: center; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ad-navy); margin: 5px auto; transition: all var(--t-fast);
}

@media (max-width: 1050px){
  .nav-main, .nav-cta .btn-desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--ad-white);
    padding: var(--sp-4);
    box-shadow: var(--shadow-l);
    gap: 4px;
    align-items: stretch;
  }
  .nav-main.open a { padding: 14px; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  background: var(--ad-navy);
  color: var(--ad-white);
  overflow: hidden;
  padding: var(--sp-9) 0 var(--sp-10);
}
.hero::before {
  /* large soft blue gradient — "block of color" Maersk-style */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(72,154,202,.45) 0%, transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(72,154,202,.25) 0%, transparent 50%),
    linear-gradient(135deg, var(--ad-navy) 0%, var(--ad-navy-deep) 100%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--ad-white); margin-bottom: var(--sp-5); }
.hero .lead { color: var(--ad-blue-light); margin-bottom: var(--sp-7); font-size: clamp(1.1rem, 1vw + 0.9rem, 1.35rem); max-width: 580px; }
.hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* Lamina: shape with image inside */
.lamina {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  background: var(--ad-blue) center/cover no-repeat;
}
.lamina img { width: 100%; height: 100%; object-fit: cover; }
.lamina--circle { border-radius: 50%; aspect-ratio: 1; }
.lamina--hex {
  border-radius: var(--radius-l);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0% 50%);
}
.lamina--badge {
  position: absolute;
  bottom: var(--sp-5);
  left: var(--sp-5);
  background: var(--ad-white);
  color: var(--ad-navy);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 2;
}
.lamina-wrap { position: relative; }
.lamina-decor {
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  background: var(--ad-blue);
  border-radius: 50%;
  top: -8%;
  right: -8%;
  z-index: -1;
  opacity: 0.8;
}
.lamina-decor--small {
  width: 30%;
  bottom: -5%;
  left: -5%;
  top: auto;
  right: auto;
  background: var(--ad-blue-bright);
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  padding-top: var(--sp-7);
  border-top: 1px solid rgba(255,255,255,.15);
}
.stats__item .num { font-size: clamp(2rem, 3vw, 3rem); font-weight: 800; color: var(--ad-white); line-height: 1; letter-spacing: -0.02em; }
.stats__item .label { display: block; margin-top: var(--sp-2); font-size: 0.9rem; color: var(--ad-blue-light); }
@media (max-width: 700px){ .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 7. Cards ---------- */
.card {
  background: var(--ad-white);
  border-radius: var(--radius-m);
  padding: var(--sp-6);
  box-shadow: var(--shadow-s);
  border: 1px solid var(--ad-gray-200);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: var(--ad-blue-light); }
.card__icon {
  width: 56px; height: 56px;
  background: var(--ad-blue-pale);
  color: var(--ad-blue-deep);
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: var(--sp-5);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.25rem; margin-bottom: var(--sp-3); }
.card p { color: var(--ad-gray-700); margin-bottom: var(--sp-4); flex-grow: 1; }
.card__link {
  font-weight: 600;
  color: var(--ad-blue-deep);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.card__link:hover { gap: 12px; }

/* Photo card (lamina-style) */
.photocard {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ad-blue-deep) center/cover no-repeat;
  box-shadow: var(--shadow-m);
  isolation: isolate;
}
.photocard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,31,44,.85) 100%);
  z-index: 1;
}
.photocard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.photocard:hover img { transform: scale(1.06); }
.photocard__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-6);
  color: var(--ad-white);
  z-index: 2;
}
.photocard__content h3 { color: var(--ad-white); font-size: 1.35rem; margin-bottom: var(--sp-2); }
.photocard__content p { color: rgba(255,255,255,.85); font-size: 0.95rem; margin: 0; }

/* Industries grid */
.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 900px){ .industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .industries { grid-template-columns: 1fr; } }

.industry {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--ad-navy);
}
.industry img { width:100%; height:100%; object-fit: cover; opacity: 0.55; transition: opacity var(--t-med), transform var(--t-med); }
.industry:hover img { opacity: 0.7; transform: scale(1.05); }
.industry__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-5);
  color: var(--ad-white);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.industry__label small { font-size: 0.75rem; font-weight: 500; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: var(--sp-2); }

/* TIER badge */
.tier-badge {
  display: inline-block;
  background: var(--ad-accent);
  color: var(--ad-navy);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 8. Split block (image + text alternating) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-9);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px){
  .split { grid-template-columns: 1fr; gap: var(--sp-7); }
  .split--reverse > :first-child { order: 0; }
}
.split-img { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 5/4; background: var(--ad-blue-deep) center/cover no-repeat; box-shadow: var(--shadow-l); position: relative; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* Big bold quote block */
.quote-block {
  background: var(--ad-blue);
  color: var(--ad-white);
  padding: var(--sp-9) var(--sp-7);
  border-radius: var(--radius-l);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  position: relative;
}
.quote-block::before {
  content: "“";
  display: block;
  font-size: 5rem;
  line-height: 0.6;
  margin-bottom: var(--sp-3);
  opacity: 0.5;
}

/* ---------- 9. Sucursales / branches ---------- */
.branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 900px){ .branches { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .branches { grid-template-columns: 1fr; } }
.branch {
  background: var(--ad-white);
  border: 1px solid var(--ad-gray-200);
  border-radius: var(--radius-m);
  padding: var(--sp-5);
  transition: all var(--t-med);
}
.branch:hover { border-color: var(--ad-blue); transform: translateY(-3px); box-shadow: var(--shadow-m); }
.branch h4 { color: var(--ad-navy); font-size: 1.1rem; margin-bottom: var(--sp-2); display: flex; align-items: center; gap: var(--sp-2); }
.branch .pin { width: 18px; height: 18px; color: var(--ad-blue); flex-shrink: 0; }
.branch p { color: var(--ad-gray-700); font-size: 0.9rem; margin: 0; }
.branch--new { border-color: var(--ad-accent); position: relative; }
.branch--new::before {
  content: "Nueva";
  position: absolute;
  top: -10px; right: 16px;
  background: var(--ad-accent);
  color: var(--ad-navy);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ---------- 10. FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--ad-gray-200);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--sp-5) 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ad-navy);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-5);
  align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ad-blue-deep);
  transition: transform var(--t-fast);
  flex-shrink: 0;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p { color: var(--ad-gray-700); padding-bottom: var(--sp-5); margin: 0; }

/* ---------- 11. Forms / Cognito ---------- */
.form-wrap {
  background: var(--ad-white);
  border-radius: var(--radius-l);
  padding: var(--sp-7);
  box-shadow: var(--shadow-l);
  border: 1px solid var(--ad-gray-200);
}
.form-wrap h2 { margin-bottom: var(--sp-3); }
.form-wrap iframe { width: 100%; min-height: 720px; border: 0; }

/* ---------- 12. Footer ---------- */
.site-footer {
  background: var(--ad-navy);
  color: var(--ad-blue-light);
  padding: var(--sp-9) 0 var(--sp-5);
}
.site-footer h4 { color: var(--ad-white); font-size: 1rem; margin-bottom: var(--sp-4); letter-spacing: 0.02em; text-transform: uppercase; font-weight: 700; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-7); }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: var(--ad-blue-light); display: block; padding: 4px 0; font-size: 0.9rem; }
.site-footer a:hover { color: var(--ad-white); }
.site-footer .brand-text { color: var(--ad-white); font-weight: 800; font-size: 1.2rem; }
.site-footer .brand-text small { color: var(--ad-blue-light); font-weight: 500; }
.footer-bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
  font-size: 0.85rem;
}
.social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: grid; place-items: center;
  padding: 0;
}
.social a:hover { background: var(--ad-blue); }
.social svg { width: 16px; height: 16px; color: var(--ad-white); }

/* ---------- 13. Floating WhatsApp ---------- */
.fab-wa {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid; place-items: center;
  z-index: 80;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform var(--t-med);
}
.fab-wa:hover { transform: scale(1.08); color: #fff; }
.fab-wa svg { width: 30px; height: 30px; }

/* ---------- 14. Indicators table ---------- */
.indicators { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
@media (max-width: 700px){ .indicators { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .indicators { grid-template-columns: 1fr; } }
.indicator {
  background: var(--ad-white);
  border-left: 4px solid var(--ad-blue);
  border-radius: var(--radius-m);
  padding: var(--sp-5);
  box-shadow: var(--shadow-s);
}
.indicator .name { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ad-gray-500); font-weight: 600; }
.indicator .value { font-size: 1.75rem; font-weight: 800; color: var(--ad-navy); margin-top: var(--sp-2); letter-spacing: -0.02em; }

/* ---------- 15. Page header (interior) ---------- */
.page-hero {
  background: var(--ad-navy);
  color: var(--ad-white);
  padding: var(--sp-8) 0 var(--sp-7);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 30%, rgba(72,154,202,.4), transparent 50%),
    linear-gradient(135deg, var(--ad-navy) 0%, var(--ad-navy-deep) 100%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.5rem, 4vw + 1rem, 4rem); color: var(--ad-white); margin-bottom: var(--sp-4); }
.page-hero .lead { color: var(--ad-blue-light); }
.breadcrumb { display: flex; gap: var(--sp-2); font-size: 0.85rem; color: var(--ad-blue-light); margin-bottom: var(--sp-4); }
.breadcrumb a { color: var(--ad-blue-light); }
.breadcrumb a:hover { color: var(--ad-white); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- 16. Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--sp-5); }
.mt-7 { margin-top: var(--sp-7); }
.center-actions { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-6); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--sp-8); }
.section-head .lead { margin: 0 auto; }
.divider { height: 4px; width: 60px; background: var(--ad-blue); border: 0; margin: var(--sp-4) 0; border-radius: 4px; }
.section-head .divider { margin-left: auto; margin-right: auto; }

/* ---------- 17. CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--ad-blue) 0%, var(--ad-blue-deep) 100%);
  color: var(--ad-white);
  border-radius: var(--radius-l);
  padding: var(--sp-8);
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: var(--sp-6);
  align-items: center;
  box-shadow: var(--shadow-l);
}
.cta-banner h2 { color: var(--ad-white); margin-bottom: var(--sp-3); }
.cta-banner p { color: rgba(255,255,255,.92); margin: 0; max-width: 540px; }
.cta-banner .actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
@media (max-width: 800px){ .cta-banner { grid-template-columns: 1fr; } }

/* ---------- 18. Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); position: relative; }
@media (max-width: 900px){ .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; }
.step__num {
  width: 48px; height: 48px;
  background: var(--ad-blue);
  color: var(--ad-white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: var(--sp-4);
}
.step h4 { color: var(--ad-navy); margin-bottom: var(--sp-2); font-size: 1.05rem; }
.step p { color: var(--ad-gray-700); font-size: 0.92rem; margin: 0; }

/* ---------- 19. Logo image (real corporate) ---------- */
.brand-logo { height: 42px; width: auto; display: block; }
.site-footer .brand-logo { height: 36px; filter: brightness(0) invert(1); }
.brand-only-img { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; }

/* ---------- 20. Trust badges / certificaciones ---------- */
.trust-row { display: flex; flex-wrap: wrap; gap: var(--sp-6); align-items: center; justify-content: center; padding: var(--sp-6) 0; }
.trust-row img { height: 56px; width: auto; opacity: 0.75; filter: grayscale(20%); transition: opacity var(--t-med), filter var(--t-med); }
.trust-row img:hover { opacity: 1; filter: grayscale(0); }
.trust-label { text-transform: uppercase; letter-spacing: 0.15em; font-size: .75rem; color: var(--ad-gray-500); font-weight: 600; text-align: center; margin-bottom: var(--sp-4); }
.section--bg-navy .trust-row img,
.section--bg-blue .trust-row img { filter: brightness(0) invert(1); opacity: 0.7; }

/* ---------- 21. Cookie banner (Ley 21.719) ---------- */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 920px; margin: 0 auto;
  background: var(--ad-white); color: var(--ad-ink);
  border-radius: var(--radius-m);
  box-shadow: 0 20px 50px rgba(15,31,44,.25);
  border: 1px solid var(--ad-gray-200);
  padding: var(--sp-5);
  z-index: 90;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner h4 { color: var(--ad-navy); margin: 0 0 var(--sp-2); font-size: 1.05rem; }
.cookie-banner p { font-size: .9rem; color: var(--ad-gray-700); margin: 0 0 var(--sp-4); }
.cookie-prefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-4); }
@media (max-width: 700px){ .cookie-prefs { grid-template-columns: 1fr; } }
.cookie-pref { display: flex; align-items: center; gap: var(--sp-2); font-size: .85rem; padding: 8px 10px; background: var(--ad-gray-100); border-radius: 8px; }
.cookie-pref input[type="checkbox"] { accent-color: var(--ad-blue); }
.cookie-pref strong { color: var(--ad-navy); font-weight: 600; }
.cookie-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: flex-end; }
.cookie-actions .btn { padding: 10px 18px; font-size: .85rem; }

/* ---------- 22. Tabla comparativa ---------- */
.compare {
  width: 100%; border-collapse: collapse; background: var(--ad-white);
  border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-m);
  font-size: .95rem;
}
.compare th, .compare td { padding: var(--sp-4) var(--sp-5); text-align: left; border-bottom: 1px solid var(--ad-gray-200); }
.compare thead th { background: var(--ad-navy); color: var(--ad-white); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.compare thead th:nth-child(2) { background: var(--ad-blue); }
.compare tbody td:first-child { font-weight: 600; color: var(--ad-navy); width: 30%; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare .yes { color: #1cb557; font-weight: 700; }
.compare .no { color: var(--ad-gray-500); }
.compare tbody td:nth-child(2) { background: var(--ad-blue-pale); }

/* ---------- 23. Equipo (Person schema) ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 900px){ .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .team { grid-template-columns: 1fr; } }
.team-card { background: var(--ad-white); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-s); border: 1px solid var(--ad-gray-200); transition: all var(--t-med); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.team-photo { aspect-ratio: 1/1; background: var(--ad-blue-light) center/cover no-repeat; }
.team-info { padding: var(--sp-5); }
.team-info h4 { margin: 0 0 var(--sp-2); color: var(--ad-navy); font-size: 1.1rem; }
.team-info .role { font-size: .85rem; color: var(--ad-blue-deep); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--sp-3); }
.team-info p { font-size: .9rem; color: var(--ad-gray-700); margin: 0 0 var(--sp-3); }
.team-linkedin { font-size: .85rem; font-weight: 600; color: var(--ad-blue-deep); }

/* ---------- 24. Resources / descargables ---------- */
.resources { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
@media (max-width: 700px){ .resources { grid-template-columns: 1fr; } }
.resource {
  display: flex; gap: var(--sp-5); padding: var(--sp-5);
  background: var(--ad-white); border-radius: var(--radius-m);
  border: 1px solid var(--ad-gray-200);
  transition: all var(--t-med);
  text-decoration: none; color: inherit;
}
.resource:hover { border-color: var(--ad-blue); transform: translateY(-3px); box-shadow: var(--shadow-m); }
.resource__icon {
  flex-shrink: 0;
  width: 60px; height: 60px;
  background: var(--ad-blue-pale); color: var(--ad-blue-deep);
  border-radius: 14px; display: grid; place-items: center;
}
.resource__icon svg { width: 28px; height: 28px; }
.resource__body h4 { margin: 0 0 var(--sp-2); color: var(--ad-navy); font-size: 1.05rem; }
.resource__body p { margin: 0; color: var(--ad-gray-700); font-size: .9rem; }

/* ---------- 25. Calculator ---------- */
.calc-card { background: var(--ad-white); border-radius: var(--radius-l); padding: var(--sp-7); box-shadow: var(--shadow-l); border: 1px solid var(--ad-gray-200); max-width: 720px; margin: 0 auto; }
.calc-field { margin-bottom: var(--sp-4); }
.calc-field label { display: block; font-weight: 600; color: var(--ad-navy); margin-bottom: var(--sp-2); font-size: .92rem; }
.calc-field input, .calc-field select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--ad-gray-300); border-radius: 10px;
  font: inherit; font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  background: var(--ad-white);
}
.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--ad-blue); box-shadow: 0 0 0 4px rgba(72,154,202,.18); }
.calc-field .hint { font-size: .8rem; color: var(--ad-gray-500); margin-top: 4px; }
.calc-result {
  margin-top: var(--sp-5);
  background: var(--ad-navy); color: var(--ad-white);
  border-radius: var(--radius-m); padding: var(--sp-5);
}
.calc-result h4 { color: var(--ad-white); margin: 0 0 var(--sp-4); }
.calc-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: .95rem; }
.calc-row:last-child { border-bottom: 0; }
.calc-row.total { font-weight: 700; font-size: 1.2rem; padding-top: var(--sp-3); border-top: 2px solid var(--ad-blue); border-bottom: none; }

/* ---------- 26. Glossary index ---------- */
.glossary-index { columns: 3; column-gap: var(--sp-7); margin: var(--sp-6) 0; }
@media (max-width: 900px){ .glossary-index { columns: 2; } }
@media (max-width: 560px){ .glossary-index { columns: 1; } }
.glossary-index a { display: block; padding: 6px 0; font-size: .92rem; color: var(--ad-navy); break-inside: avoid; }
.glossary-index a:hover { color: var(--ad-blue-deep); padding-left: 4px; }
.glossary-term { padding: var(--sp-5) 0; border-bottom: 1px solid var(--ad-gray-200); scroll-margin-top: 100px; }
.glossary-term h3 { font-size: 1.2rem; color: var(--ad-navy); margin-bottom: var(--sp-2); }
.glossary-term .acronym { color: var(--ad-blue-deep); font-weight: 700; }

/* ---------- 27. Article (blog/pillar) ---------- */
.article-content { max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.article-content h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2rem); margin-top: var(--sp-8); }
.article-content h3 { font-size: 1.3rem; margin-top: var(--sp-7); }
.article-content p { line-height: 1.75; color: var(--ad-ink); margin-bottom: var(--sp-4); }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: var(--sp-5); }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 4px solid var(--ad-blue);
  background: var(--ad-blue-pale);
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-6) 0;
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  font-style: italic;
  color: var(--ad-navy);
}
.article-meta { font-size: .9rem; color: var(--ad-gray-500); margin-bottom: var(--sp-6); display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center; }
.article-meta .author { font-weight: 600; color: var(--ad-navy); }
.toc {
  background: var(--ad-gray-50);
  padding: var(--sp-5);
  border-radius: var(--radius-m);
  border: 1px solid var(--ad-gray-200);
  margin-bottom: var(--sp-7);
}
.toc h4 { margin: 0 0 var(--sp-3); font-size: .85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ad-gray-500); }
.toc ol { padding-left: 1.25rem; margin: 0; font-size: .95rem; }
.toc a { color: var(--ad-navy); }

/* ---------- 28. Multi-CTA sticky additions ---------- */
.nav-cta-extra { display: none; }
@media (min-width: 1200px){
  .nav-cta-extra { display: flex; align-items: center; gap: var(--sp-2); margin-right: var(--sp-3); font-size: .85rem; }
  .nav-cta-extra a { color: var(--ad-navy); font-weight: 600; padding: 6px 10px; border-radius: 6px; }
  .nav-cta-extra a:hover { background: var(--ad-blue-pale); }
}

/* ---------- 29. Image with declared dimensions ---------- */
img[width][height] { height: auto; }
img.lazy { opacity: 0; transition: opacity .3s; }
img.lazy.loaded { opacity: 1; }

/* ---------- 30. Print ---------- */
@media print {
  .site-header, .site-footer, .fab-wa, .cookie-banner { display: none !important; }
  body { color: #000; background: #fff; }
}
