/* ============================================================
   CIF ADVISORS S.A.S. — Sistema de diseño
   Mobile-first: 320px → 768px → 1200px
   ============================================================ */

:root {
  --navy: #1D3044;
  --navy-800: #16283a;
  --navy-700: #243b52;
  --gold: #BAA377;
  --gold-600: #75613C;
  --gold-200: #DCD2BC;
  --gold-100: #ECE5D4;
  --beige: #F6F2E9;
  --beige-200: #EFE8D9;
  --white: #FFFFFF;
  --ink: #22303C;
  --muted: #5A6673;
  --line: #E3DCCB;
  --wa: #0E7A3D;
  --wa-dark: #0B6A36;
  --danger: #8C2F2F;
  --danger-dark: #762828;
  --danger-bg: #FBEAEA;
  --danger-border: #EDC8C8;
  --success: #1E6B3C;
  --success-bg: #E9F6EE;
  --success-border: #BFE3CC;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(29, 48, 68, 0.08);
  --shadow-md: 0 10px 30px rgba(29, 48, 68, 0.10);
  --shadow-lg: 0 24px 60px rgba(29, 48, 68, 0.18);
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-lead: 1.125rem;
  --fs-h3: 1.25rem;
  --fs-small: .9375rem;
  --fs-meta: .875rem;
  --fs-caps: .78rem;
  --measure: 62ch;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.22; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-600); }
:focus-visible { outline: 3px solid var(--gold-600); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .page-hero :focus-visible, .section-navy :focus-visible,
.site-footer :focus-visible, .cta-band :focus-visible, .toast :focus-visible,
.cart-fab:focus-visible, .cart-mobile-bar:focus-visible {
  outline-color: var(--gold-200);
}
::selection { background: var(--gold-200); color: var(--navy); }

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: var(--space-20) 0; }
.section-alt { background: var(--beige); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .eyebrow { color: var(--gold-200); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.section-head { max-width: 720px; margin-bottom: var(--space-12); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 34px; height: 2px; background: var(--gold); }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: var(--measure); }
.section-alt .lead, .section-navy .lead { color: inherit; opacity: .85; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 18px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--white); }
.skip-link:hover { color: var(--white); background: var(--navy-700); }

/* ---------- Botones (≥48px touch) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 8px 18px; border-radius: 10px;
  font-family: var(--font-sans); font-size: var(--fs-meta); font-weight: 600;
  border: 2px solid transparent; cursor: pointer; text-align: center; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(0); }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-600); color: var(--white); box-shadow: var(--shadow-md); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-dark); color: var(--white); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Botón agregar a cotización ---------- */
.btn-add {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: 10px;
  font-family: var(--font-sans); font-size: var(--fs-meta); font-weight: 600;
  color: var(--navy); background: var(--gold);
  border: 1.5px solid var(--gold); cursor: pointer; white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s, transform .15s;
}
.btn-add:hover { background: var(--gold-600); border-color: var(--gold-600); color: var(--white); }
.btn-add svg { width: 18px; height: 18px; flex: none; color: var(--navy); }
.btn-add:hover svg { color: var(--white); }
.btn-add.is-added { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-add.is-added:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn-add.is-added svg { color: var(--gold-200); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--white); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand img { width: auto; height: 55.66px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px;
  font-size: var(--fs-small); font-weight: 500; color: var(--ink); border-radius: 8px;
}
.site-nav a.is-hover { color: var(--navy); background: var(--beige); }
.site-nav > ul > li > a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; position: relative; }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.has-dropdown { position: relative; }
.site-nav .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 280px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 8px; display: none; z-index: 95;
}
.has-dropdown.is-hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 10px 14px; font-size: var(--fs-meta); border-radius: 8px; }
.dropdown a:hover { background: var(--beige); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--white); cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 991px) {
  .site-nav { display: none; }
  .header-actions .btn-wa { display: none; }
}
@media (min-width: 992px) { .nav-toggle { display: none; } }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 85;
  background: var(--white); padding: 20px 20px 40px; overflow-y: auto;
  display: none; border-top: 1px solid var(--line);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu > ul > li { border-bottom: 1px solid var(--line); }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 8px 4px; font-size: 1rem; font-weight: 500; color: var(--ink);
}
.mobile-menu .sub-label { font-size: var(--fs-caps); text-transform: uppercase; letter-spacing: .14em; color: var(--gold-600); font-weight: 700; padding: 18px 4px 4px; }
.mobile-menu .mm-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    linear-gradient(to bottom, rgba(22, 40, 58, 0) 52%, rgba(22, 40, 58, .88) 100%),
    linear-gradient(105deg, rgba(22, 40, 58, .96) 0%, rgba(29, 48, 68, .92) 45%, rgba(29, 48, 68, .72) 100%),
    var(--hero-img, none) center / cover no-repeat,
    var(--navy);
  padding: 72px 0 64px;
}
.hero .container { position: relative; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-figure { position: relative; }
.hero-figure::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 2px solid var(--gold); border-radius: var(--radius-lg); z-index: 0;
}
.hero-figure img {
  position: relative; z-index: 1; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .28); box-shadow: var(--shadow-lg);
}
@media (min-width: 992px) {
  .hero-grid { grid-template-columns: 1.12fr 0.88fr; }
  .hero { padding: 84px 0 72px; }
}
@media (max-width: 991px) {
  .hero-figure { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 767px) {
  .section { padding: var(--space-14) 0; }
  .card { padding: 22px 20px; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: clamp(1.7rem, 7.4vw, 2.15rem); }
  .hero p.lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-tags { gap: 8px; }
  .hero-tag { padding: 7px 12px; font-size: var(--fs-meta); }
  .stats { gap: 10px; margin-top: 30px; }
  .stat { padding: 14px 12px; }
  .stat b { font-size: 1.45rem; }
}
.hero .eyebrow { color: var(--gold-200); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { color: var(--white); max-width: 820px; }
.hero h1 em { font-style: italic; color: var(--gold-200); }
.hero p.lead { color: rgba(255,255,255,.92); max-width: var(--measure); font-weight: 500; line-height: 1.75; letter-spacing: .01em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-meta); font-weight: 600; color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  padding: 8px 14px; border-radius: 999px;
}
.hero-tag svg { width: 15px; height: 15px; color: var(--gold-200); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 18px 16px; }
.stat b { display: block; font-family: var(--font-serif); font-size: 1.7rem; color: var(--gold-200); line-height: 1.1; }
.stat span { font-size: var(--fs-meta); color: rgba(255,255,255,.85); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } .stat b { font-size: 2rem; } }

/* ---------- Tarjetas ---------- */
.card-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .card:hover .card-link svg { transform: translateX(4px); }
}
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; height: auto; background: none; color: var(--gold-600); margin-bottom: var(--space-3);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--muted); font-size: var(--fs-small); margin-bottom: 1.2em; }
.card-link { font-weight: 600; font-size: var(--fs-small); display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.card-link:hover { color: var(--gold-600); }
.card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(4px); }
.card-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
@media (max-width: 767px), (pointer: coarse) {
  .card-actions { flex-direction: column; align-items: stretch; }
  .card-actions .btn-add { width: 100%; }
  .card-link {
    min-height: 48px; display: flex; align-items: center;
    padding: 0 6px; border-radius: 10px;
  }
  .card-link:active { background: var(--beige); }
}
.btn-add:active, .card-link:active { transform: scale(.98); }

/* Propuesta de valor: bloques de texto sin caja — la confianza va en el flujo, no en contenedores */
#pillars { gap: var(--space-8); }
.pillar { background: transparent; border: none; box-shadow: none; padding: 0; }

/* ---------- Pasos (Método CIF) ---------- */
.steps { display: grid; gap: var(--space-5); counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 22px 22px; position: relative; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--gold);
  display: block; margin-bottom: 10px;
}
.step h3 { margin-bottom: .4em; }
.step p { font-size: var(--fs-meta); color: var(--muted); margin: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Listas de verificación ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--gold-600); margin-top: 2px; }
.check-list b { color: var(--navy); }
.check-list span { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 18px 20px; font-weight: 600; color: var(--navy); font-size: var(--fs-small);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--gold-600);
  flex: none; transition: transform .2s; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 20px 20px; color: var(--muted); font-size: var(--fs-meta); }
.faq-item .faq-body > p { max-width: var(--measure); }
.section-alt .faq-item { box-shadow: var(--shadow-sm); }

.section:has(.cta-band) { padding: var(--space-24) 0; }
@media (max-width: 767px) { .section:has(.cta-band) { padding: var(--space-16) 0; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: var(--white); border-radius: var(--radius-lg); padding: 44px 28px; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(rgba(22, 40, 58, .9), rgba(29, 48, 68, .92)),
    url("../img/fondo-cta.jpg") center / cover no-repeat;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.82); max-width: 620px; margin: 0 auto 26px; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Páginas de servicio ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: var(--white); padding: 56px 0 48px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(105deg, rgba(22, 40, 58, .95) 0%, rgba(29, 48, 68, .9) 42%, rgba(29, 48, 68, .75) 100%),
    var(--hero-img, none) center / cover no-repeat;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: .84rem; color: rgba(255,255,255,.7); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: underline; }
.breadcrumb a:hover { color: var(--gold-200); }
.page-hero h1 { color: var(--white); max-width: 800px; }
.page-hero .lead { color: rgba(255,255,255,.9); max-width: var(--measure); font-weight: 500; line-height: 1.75; letter-spacing: .01em; }
.page-hero .btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.service-items { display: grid; gap: 14px; }
.service-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 12px;
}
.service-item .item-name { display: flex; gap: 12px; align-items: flex-start; }
.service-item .item-name svg { width: 22px; height: 22px; flex: none; color: var(--gold-600); margin-top: 3px; }
.service-item .item-name b { color: var(--navy); font-size: .98rem; line-height: 1.45; }
.service-item .item-name span { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.service-item .btn-add { align-self: flex-start; }
@media (min-width: 768px) {
  .service-items { grid-template-columns: repeat(2, 1fr); }
  .service-item { flex-direction: row; align-items: center; justify-content: space-between; }
}

.benefit-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--gold-200); border-radius: 999px;
  padding: 10px 18px; font-size: var(--fs-meta); font-weight: 600; color: var(--navy);
}
.benefit-pill svg { width: 16px; height: 16px; color: var(--gold-600); }
.audience-grid { display: grid; gap: 14px; }
.audience-card {
  background: var(--beige); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--beige-200);
}
.audience-card h3 { margin-bottom: .3em; }
.audience-card p { font-size: var(--fs-meta); color: var(--muted); margin: 0; }
@media (min-width: 768px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .audience-grid.compact { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .audience-grid.compact { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Equipo ---------- */
.team-grid { display: grid; gap: 22px; }
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1; width: 100%; max-width: 260px; margin: 0 auto 18px;
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-700) 55%, var(--gold) 160%);
  display: flex; align-items: center; justify-content: center;
}
.team-photo .initials {
  font-family: var(--font-serif); font-size: 3.4rem; color: rgba(255,255,255,.85);
}
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 2px; }
.team-role { color: var(--gold-600); font-weight: 600; font-size: var(--fs-meta); letter-spacing: .02em; display: block; margin-bottom: 10px; }
.team-card p { font-size: var(--fs-meta); color: var(--muted); max-width: 320px; margin: 0 auto; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Formulario ---------- */
.contact-layout { display: grid; gap: 32px; }
.info-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px;
}
.info-card svg { width: 24px; height: 24px; flex: none; color: var(--gold-600); margin-top: 2px; }
.info-card b { display: block; color: var(--navy); margin-bottom: 2px; }
.info-card span, .info-card a { color: var(--muted); font-size: var(--fs-meta); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-md); }
.form-grid { display: grid; gap: 16px; }
.form-field label { display: block; font-size: var(--fs-meta); font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); font-family: var(--font-sans); font-size: var(--fs-small);
  color: var(--ink); background: var(--white); transition: border-color .15s;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder, .form-field select::placeholder {
  color: var(--muted);
  opacity: 1;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-note { font-size: var(--fs-meta); color: var(--muted); margin-top: 14px; }
.field-error { display: none; margin-top: 6px; font-size: var(--fs-meta); font-weight: 600; color: var(--danger); }
.form-field.has-error .field-error { display: block; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea {
  border-color: var(--danger);
}
.form-field.has-error input:focus, .form-field.has-error select:focus, .form-field.has-error textarea:focus {
  border-color: var(--danger); outline: 3px solid rgba(179, 74, 74, .28); outline-offset: 1px;
}
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: var(--fs-small); }
.form-status.is-error { display: block; background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.form-status.is-success { display: block; background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
@media (min-width: 992px) {
  .contact-layout { grid-template-columns: 5fr 7fr; align-items: start; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-field.full { grid-column: 1 / -1; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-800); color: rgba(255,255,255,.78); padding: 56px 0 0; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--gold-200); }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }
.footer-brand img { height: 62.92px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: var(--fs-meta); max-width: 300px; }
.footer-col h3 {
  font-family: var(--font-sans); color: var(--white); font-size: var(--fs-caps);
  margin-bottom: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col span { font-size: var(--fs-meta); display: inline-flex; align-items: flex-start; gap: 8px; }
.footer-col svg { width: 17px; height: 17px; flex: none; color: var(--gold-200); margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  font-size: var(--fs-meta); text-align: center;
}
.footer-bottom .legal { display: flex; gap: 18px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } .footer-bottom { flex-direction: row; justify-content: space-between; } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 3fr 1fr 1fr 1.4fr; } }

/* ---------- Carrito / Cotizador ---------- */
.cart-fab {
  position: fixed; z-index: 80;
  right: max(20px, calc(20px + env(safe-area-inset-right)));
  bottom: max(24px, calc(24px + env(safe-area-inset-bottom)));
  display: none; align-items: center; gap: 10px;
  background: var(--navy); color: var(--white); border-radius: 999px;
  padding: 14px 22px; cursor: pointer; border: none;
  box-shadow: var(--shadow-lg); font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-small);
  transition: background .2s, transform .15s;
}
.cart-fab:hover { background: var(--navy-700); transform: translateY(-2px); }
.cart-fab svg { width: 22px; height: 22px; color: var(--gold-200); }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--gold); color: var(--navy); font-size: .8rem; font-weight: 700;
}
.cart-mobile-bar {
  position: fixed; z-index: 80;
  left: max(12px, calc(12px + env(safe-area-inset-left)));
  right: max(12px, calc(12px + env(safe-area-inset-right)));
  bottom: max(12px, calc(12px + env(safe-area-inset-bottom)));
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--navy); color: var(--white); border-radius: 14px;
  padding: 12px 16px; cursor: pointer; border: none;
  box-shadow: var(--shadow-lg); font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-small);
}
.cart-mobile-bar svg { width: 22px; height: 22px; color: var(--gold-200); flex: none; }
.cart-mobile-bar .bar-right { display: flex; align-items: center; gap: 12px; }
@media (max-width: 767px) {
  .cart-fab { display: none; }
  .cart-mobile-bar.is-visible { display: flex; }
  body.has-cart .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) { .cart-fab.is-visible { display: inline-flex; } }

.cart-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(22, 40, 58, .55);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 110;
  width: min(420px, 100%); background: var(--beige);
  transform: translateX(105%); opacity: 0;
  transition: transform .3s cubic-bezier(.2,.8,.3,1), opacity .25s ease;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.cart-drawer.is-open { transform: translateX(0); opacity: 1; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line); background: var(--white);
}
.cart-head h2 { margin: 0; font-size: 1.375rem; }
.cart-head p { margin: 2px 0 0; font-size: var(--fs-meta); color: var(--muted); }
.cart-close {
  width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 1.3rem; line-height: 1;
}
.cart-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px; display: flex; gap: 12px; align-items: flex-start;
  position: relative;
}
/* Toma de razón: cada renglón entra al libro y su raya dorada se concilia */
@keyframes cart-row-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cart-item::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.cart-item.is-new { animation: cart-row-enter .3s ease-out; }
.cart-item.is-new::after { transform: scaleX(1); transition: transform .45s cubic-bezier(.16, 1, .3, 1) .12s; }
.cart-item.is-removed { opacity: 0; transform: translateX(8px); transition: opacity .18s ease, transform .18s ease; }
.cart-item.is-removed::after { transform: scaleX(0); transform-origin: right; }
@media (prefers-reduced-motion: reduce) {
  .cart-item.is-new, .cart-item.is-new::after, .cart-item.is-removed, .cart-item.is-removed::after { animation: none; transition: none; }
}
.cart-item .ci-info { flex: 1; }
.cart-item b { display: block; color: var(--navy); font-size: .92rem; line-height: 1.4; overflow-wrap: break-word; }
.cart-item span { font-size: .78rem; color: var(--gold-600); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; overflow-wrap: break-word; }
.cart-remove {
  width: 44px; height: 44px; flex: none; border-radius: 10px; border: none; background: transparent;
  cursor: pointer; color: var(--muted); font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center;
}
.cart-remove:hover { background: var(--danger-bg); color: var(--danger); }
.cart-empty { text-align: center; padding: 44px 10px; color: var(--muted); }
.cart-empty h3 { font-size: 1.1rem; }
.cart-empty p { font-size: var(--fs-meta); }
.cart-empty svg { width: 52px; height: 52px; color: var(--gold-200); margin-bottom: 14px; }
.cart-foot { padding: 18px 22px; border-top: 1px solid var(--line); background: var(--white); padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.cart-foot .btn-block { margin-bottom: 10px; }
.cart-clear {
  width: 100%; min-height: 44px; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: var(--fs-meta); font-family: var(--font-sans); text-decoration: underline;
}
.cart-clear:hover { color: var(--danger); }
.cart-clear-confirm {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding: 0 2px; flex-wrap: wrap;
}
.cart-clear-confirm[hidden] { display: none; }
.cart-clear-confirm span { font-size: var(--fs-meta); color: var(--muted); font-weight: 600; }
.cart-clear-confirm .confirm-yes, .cart-clear-confirm .confirm-no {
  min-height: 44px; padding: 8px 14px; border-radius: 10px;
  font-family: var(--font-sans); font-size: var(--fs-meta); font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--line); transition: background .2s, color .2s;
}
.cart-clear-confirm .confirm-yes { background: var(--danger); border-color: var(--danger); color: var(--white); }
.cart-clear-confirm .confirm-yes:hover { background: var(--danger-dark); border-color: var(--danger-dark); }
.cart-clear-confirm .confirm-no { background: var(--white); color: var(--navy); }
.cart-clear-confirm .confirm-no:hover { background: var(--beige); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  z-index: 120; background: var(--navy); color: var(--white);
  padding: 13px 22px; border-radius: 999px; font-size: var(--fs-small); font-weight: 500;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; display: flex; gap: 10px; align-items: center;
  max-width: calc(100% - 40px); text-align: center; overflow-wrap: break-word;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast button {
  background: none; border: none; color: var(--gold-200); font-weight: 700;
  cursor: pointer; font-size: var(--fs-small); font-family: var(--font-sans); text-decoration: underline; white-space: nowrap;
}

/* ---------- Otros bloques ---------- */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1fr; } }
.quote-card {
  background: var(--white); border-left: 4px solid var(--gold); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm); margin-top: 22px;
}
.quote-card blockquote { margin: 0 0 8px; font-family: var(--font-serif); font-size: var(--fs-lead); color: var(--navy); font-style: italic; line-height: 1.5; }
.quote-card cite { font-style: normal; font-size: var(--fs-meta); color: var(--muted); }
.office-photo {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-top: 24px;
}
.mini-faq { max-width: 860px; margin: 0 auto; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------- Animaciones ---------- */
/* El contenido es visible por defecto; el hero porta el único momento focal:
   la línea dorada que se dibuja bajo "con control" — rendición de cuentas, orden. */
.hero h1 em { position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: 3px;
  background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1) .5s;
}
html.js .hero h1 em::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .hero h1 em::after { transform: scaleX(1); transition: none; }
  .cart-drawer { transition: none; }
  .cart-overlay { transition: opacity .25s; }
  .toast { transition: opacity .25s; }
  .btn, .card { transition: background .2s, color .2s, border-color .2s; }
  .faq-item summary::after { transition: none; }
}
