@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   360 Global Services LLC — Design System
   Paleta: azul marino primario, dorado acento, gris claro fondo
   ========================================================= */

:root {
  --navy: #0B2545;
  --navy-dark: #071a33;
  --navy-light: #13345f;
  --gold: #C9A227;
  --gold-dark: #a9860f;
  --gold-text: #86690a; /* dorado para texto: 4.5:1 o más sobre fondos claros */
  --bg: #F5F6F8;
  --white: #FFFFFF;
  --text: #1B222C;
  --text-muted: #4E5967;
  --border: #E1E4E9;
  --success-bg: #EAF6EC;
  --success-text: #1E5C2A;
  --error-bg: #FBEAEA;
  --error-text: #8A1F1F;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 6px 20px rgba(11, 37, 69, 0.12);
  --shadow-lg: 0 16px 40px rgba(11, 37, 69, 0.16);

  --max-width: 1180px;
  --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }

/* ---------- Page transitions (cross-document View Transitions) ---------- */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.28s;
  animation-timing-function: ease;
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

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

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

/* ---------- Consistent focus ring ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

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

h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-muted); }
a { color: var(--navy); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  background: rgba(201, 162, 39, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}


.text-center { text-align: center; }
.lede { font-size: 1.1rem; max-width: 640px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1.1;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-dark); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

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

/* ---------- Sticky CTA bar (mobile) ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  box-shadow: 0 -6px 20px rgba(11,37,69,0.1);
}
.sticky-cta .btn { width: 100%; max-width: 420px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  white-space: nowrap;
}
.brand img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
  white-space: nowrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-text); }

/* ---------- Nav dropdown ("Servicios") ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-dropdown-toggle .caret { transition: transform 0.15s ease; flex-shrink: 0; }
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active { color: var(--gold-text); }
.nav-dropdown.open .nav-dropdown-toggle .caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown-menu li + li { margin-top: 2px; }
.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--bg); }
.nav-dropdown-menu a.active { color: var(--gold-text); background: var(--bg); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
}
.lang-switch a {
  padding: 6px 12px;
  text-decoration: none;
  color: var(--text-muted);
}
.lang-switch a.active { background: var(--navy); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-right .btn { display: none; } /* la barra sticky-cta ya cubre el CTA en móvil */
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 14px;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 2px 0; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    padding: 0 0 0 14px;
    min-width: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-dropdown.open .nav-dropdown-menu { max-height: 300px; padding-top: 4px; }
  .nav-right { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 84px 0;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  top: -160px; right: -80px;
  background: radial-gradient(circle, rgba(201,162,39,0.28) 0%, rgba(201,162,39,0) 70%);
}
.hero::after {
  width: 380px; height: 380px;
  bottom: -180px; left: -100px;
  background: radial-gradient(circle, rgba(19,52,95,0.55) 0%, rgba(19,52,95,0) 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1, .hero h2 { color: var(--white); }
.hero p { color: rgba(255,255,255,0.82); }
.mini-hero .eyebrow,
.section-navy .eyebrow,
.hero .eyebrow {
  background: rgba(201,162,39,0.16);
  color: var(--gold);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

.mini-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 52px 0;
}
.mini-hero h1 { color: var(--white); }
.mini-hero p { color: rgba(255,255,255,0.85); }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Doors (audience gates) ---------- */
.doors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}

.door {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border-top: 6px solid var(--gold);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.door:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.door-icon { margin-bottom: 18px; }
.door h3 { font-size: 1.5rem; }

.door-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 24px;
}
.door-service {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.door-service:hover { border-color: var(--gold); transform: translateY(-2px); }
.door-service .icon { flex-shrink: 0; }
@media (min-width: 880px) { .door-services { grid-template-columns: repeat(4, 1fr); } }

.door-cta { margin-top: auto; }

/* ---------- Service cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 880px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.card:hover .icon-badge { transform: scale(1.08); }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(11,37,69,0.08) 0%, rgba(201,162,39,0.12) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}
.icon-badge svg { width: 28px; height: 28px; }

/* ---------- Why us / trust ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: center;
  text-align: center;
}
.stat { min-width: 140px; }
.stat .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--navy);
  display: block;
}
.stat .label { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Sections with tint ---------- */
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.8); }
.section-navy .stat .num { color: var(--gold); }
.section-navy .stat .label { color: rgba(255,255,255,0.75); }

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-question .plus {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.faq-item.open .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 0 20px; color: var(--text-muted); }

/* ---------- Disclaimer / compliance boxes ---------- */
.disclaimer-box {
  background: #FFF8E6;
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 32px 0;
}
.disclaimer-box .disclaimer-title {
  margin: 0 0 0.5em;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.disclaimer-box p:last-child { margin-bottom: 0; }
.disclaimer-box.strict {
  background: #FBEAEA;
  border-color: #C0392B;
}
.disclaimer-box.strict .disclaimer-title { color: #8A1F1F; }

.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin: 4px 8px 4px 0;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.credential-badge:hover,
.credential-badge:focus-visible { border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Tooltips (data-tooltip="texto") ---------- */
[data-tooltip] {
  position: relative;
  cursor: help;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  width: max-content;
  max-width: 240px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  background: var(--navy-dark);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
  z-index: 90;
}
[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--navy-dark);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s;
  pointer-events: none;
  z-index: 90;
}
[data-tooltip]:hover::after, [data-tooltip]:hover::before,
[data-tooltip]:focus-visible::after, [data-tooltip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Team bios ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card img { border-radius: 50%; width: 120px; height: 120px; margin: 0 auto 18px; }
.team-role { color: var(--gold-text); font-weight: 700; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 10px; }

/* ---------- Checklist tool ---------- */
.tool-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  border: 1px solid var(--border);
}
.tool-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}
@media (max-width: 620px) { .tool-options { grid-template-columns: 1fr; } }
.tool-option {
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tool-option:hover { border-color: var(--gold); }
.tool-option.selected { border-color: var(--gold); background: #FFF8E6; }
.tool-result {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius-md);
  display: none;
}
.tool-result.visible { display: block; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-note { font-size: 0.82rem; color: var(--text-muted); }
.form-success {
  display: none;
  background: var(--success-bg);
  color: var(--success-text);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
}
.form-success.visible { display: block; }
.form-error {
  display: none;
  background: var(--error-bg);
  color: var(--error-text);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
}
.form-error.visible { display: block; }
.form-error a, .form-success a { color: inherit; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; font-size: 0.9rem; }
.form-consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Contact info blocks ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 880px) { .contact-info-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer p { color: rgba(255,255,255,0.75); }
.site-footer .footer-heading { color: var(--white); font-size: 0.95rem; font-weight: 700; margin: 0 0 14px; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.footer-legal p { color: rgba(255,255,255,0.55); font-size: 0.78rem; }

/* ---------- Utility ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.gap-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.gap-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); }
.gap-list li svg { flex-shrink: 0; margin-top: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 880px) {
  body { padding-bottom: 64px; } /* espacio para sticky CTA móvil */
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Blog ---------- */
.blog-card-link { text-decoration: none; display: block; height: 100%; }
.blog-card-image {
  display: block;
  width: calc(100% + 52px);
  max-width: none;
  height: auto;
  margin: -26px -26px 18px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.article-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.blog-card-topic {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 10px;
}
.blog-card h3 { margin-bottom: 8px; }
.blog-card p { margin-bottom: 0; }
.blog-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { margin-top: 1.6em; }
.article-body h2:first-child { margin-top: 0; }
.article-body ul, .article-body ol { color: var(--text-muted); padding-left: 1.3em; }
.article-body li { margin-bottom: 0.5em; }
.article-body .lede { color: var(--text-muted); }
.article-cta {
  margin-top: 40px;
  padding: 28px;
  background: var(--bg);
  border-radius: var(--radius-md);
  text-align: center;
}

/* ---------- Prevent "stuck" hover state on touch devices ---------- */
@media (hover: none) {
  .card:hover,
  .door:hover,
  .contact-info-card:hover,
  .team-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  .door:hover { box-shadow: var(--shadow-md); }
  .card:hover .icon-badge { transform: none; }
  .door-service:hover,
  .tool-option:hover,
  .credential-badge:hover {
    transform: none;
  }
}

/* ---------- Tablas legales ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--white); }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.data-table th { color: var(--navy); font-weight: 700; background: var(--bg); }
.data-table code { font-size: 0.85em; color: var(--navy); white-space: nowrap; }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 760px;
  margin: 0 auto;
  background: var(--navy-dark);
  color: var(--white);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.cookie-banner a { color: var(--gold); }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
