/* ============================================================
   VARIABLES & THEME SYSTEM
   ============================================================ */
:root {
  --navy: #0A1929;
  --navy-light: #132F4C;
  --navy-mid: #1B3B5F;
  --blue: #1565C0;
  --blue-light: #42A5F5;
  --blue-pale: #E3F2FD;
  --gold: #B8860B;
  --gold-light: #DAA520;
  --gold-pale: rgba(184,134,11,.1);
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --red: #C53030;
  --red-light: #E53E3E;
  --green: #059669;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.15);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   RESET & BASE STYLES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-700);
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--gray-900); line-height: 1.25; }
p { margin-bottom: .75rem; }
::selection { background: var(--blue); color: var(--white); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* SVG Helpers */
.svg-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}
.card-icon-svg {
  width: 44px;
  height: 44px;
  color: var(--blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}
.card-icon-svg svg { width: 36px; height: 36px; stroke-width: 1.8; }
.modal-icon-svg {
  width: 56px;
  height: 56px;
  color: var(--green);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-icon-svg svg { width: 48px; height: 48px; stroke-width: 2; }
.ci-icon-svg { width: 28px; height: 28px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.ci-icon-svg svg { width: 22px; height: 22px; stroke-width: 2; }

/* ============================================================
   UTILITIES & CONTAINER
   ============================================================ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; position: relative; }
.section--light { background: var(--off-white); }
.section--navy { background: var(--navy); color: var(--gray-300); }
.section--navy h2, .section--navy h3, .section--navy h4, .section--navy strong { color: var(--white); }

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

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
  background: transparent;
  overflow: visible;
}
.nav.scrolled {
  background: rgba(10,25,41,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: .6rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-width: 0;
}
.nav .container { max-width: 1320px; }
.btn-label-short { display: none; }

.nav-logo { display: flex; align-items: center; gap: .75rem; color: var(--white); flex-shrink: 0; text-decoration: none; }
.nav-logo-badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1.5px solid var(--gold);
  box-shadow: 0 4px 12px rgba(184,134,11,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.nav-logo:hover .nav-logo-badge {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(184,134,11,.4);
}
.nav-logo-badge img { width: 100%; height: 100%; object-fit: contain; background: #f3f4f6; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; letter-spacing: .5px; color: var(--white); }
.brand-accent { color: var(--gold); font-weight: 700; }
.brand-sub { font-size: .65rem; color: var(--gray-400); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }

.nav-links {
  position: fixed;
  top: 0; right: -100%; width: 280px; height: 100vh;
  background: var(--navy);
  display: flex; flex-direction: column;
  padding: 5rem 1.5rem 2rem;
  transition: right var(--transition);
  z-index: 999;
  border-left: 1px solid rgba(255,255,255,.08);
  overflow-y: auto;
}
.nav-links.open { right: 0; }
.nav-links a {
  display: block;
  padding: .7rem .5rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  font-size: .92rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* Dropdown Menu Styles */
.nav-item-dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
.dropdown-toggle .icon-chevron { width: 14px; height: 14px; transition: transform var(--transition); color: rgba(255,255,255,.6); }

.dropdown-menu {
  display: block;
  background: rgba(255,255,255,.04);
  border-left: 2px solid var(--gold);
  padding: .25rem 0 .25rem 1rem;
  margin: .25rem 0 .5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.dropdown-menu a {
  padding: .45rem 0 !important;
  font-size: .85rem !important;
  color: var(--gray-400) !important;
  border-bottom: none !important;
}
.dropdown-menu a:hover { color: var(--gold) !important; }

.nav-links__mobile-actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }

.nav-actions { display: none; gap: .5rem; }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 4px; z-index: 1001; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .88rem;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-lg { padding: .85rem 1.8rem; font-size: .95rem; border-radius: var(--radius); }
.btn-sm { padding: .45rem 1rem; font-size: .8rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(184,134,11,.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184,134,11,.35);
  filter: brightness(1.05);
}

.btn-outline { background: transparent; color: var(--gray-700); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: rgba(21,101,192,.04); }

.btn-outline-light { background: transparent; color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.3); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-danger {
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(197,48,48,.2);
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(197,48,48,.35); }

.btn-glass { background: rgba(255,255,255,.1); color: var(--white); border-color: rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.2); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sh { text-align: center; margin-bottom: 3.25rem; }
.sh-label {
  display: inline-block;
  padding: .35rem 1.1rem;
  background: rgba(21,101,192,.08);
  color: var(--blue);
  font-weight: 600;
  font-size: .8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.sh-label--gold { background: var(--gold-pale); color: var(--gold-light); }
.sh-title { font-size: clamp(1.8rem, 3.8vw, 2.6rem); margin-bottom: .5rem; }
.sh-desc { font-size: 1.02rem; color: var(--gray-500); max-width: 580px; margin: 0 auto; }
.sh--light .sh-title { color: var(--white); }
.sh--light .sh-desc { color: var(--gray-400); }

/* ============================================================
   HERO / INICIO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--navy);
  background-image: url('../assets/img/hero-banner.jpg');
  background-image: image-set(
    url('../assets/img/hero-banner.webp') type('image/webp'),
    url('../assets/img/hero-banner.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center 40%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,25,41,.9) 0%, rgba(19,47,76,.82) 50%, rgba(10,25,41,.94) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 100%;
  padding: 6.5rem 1.5rem 4.5rem;
  box-sizing: border-box;
}

.hero-badge {
  display: inline-block;
  padding: .4rem 1.2rem;
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  text-transform: uppercase;
}
.hero-title { font-size: clamp(2.5rem, 7.5vw, 4.8rem); color: var(--white); letter-spacing: 1px; margin-bottom: .5rem; }
.hero-title span { color: var(--gold); }
.hero-sub { font-size: clamp(.95rem, 2.3vw, 1.25rem); color: var(--gray-300); font-weight: 300; margin-bottom: .75rem; }

.hero-typing { font-size: clamp(.85rem, 2vw, 1.05rem); color: var(--blue-light); font-style: italic; min-height: 1.8rem; margin-bottom: 2.5rem; }
.cursor { animation: blink 1s step-end infinite; color: var(--gold); font-style: normal; }

.hero-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--gray-500);
  font-size: .75rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  transition: color var(--transition);
}
.hero-scroll:hover { color: var(--gold); }
.hero-scroll i { font-style: normal; font-size: 1.1rem; animation: bounce 2s ease-in-out infinite; }

/* ============================================================
   STATS / METRICS
   ============================================================ */
.stats { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.stat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: .85rem .75rem;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-2px);
}
.stat-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(184,134,11,.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .45rem;
}
.stat-icon-wrapper svg { width: 16px; height: 16px; }
.stat-num { display: block; font-family: var(--font-heading); font-size: clamp(1.45rem, 3.2vw, 1.85rem); font-weight: 800; color: var(--gold); line-height: 1; }
.stat-card span { display: block; font-size: .68rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .6px; margin-top: .3rem; line-height: 1.3; }

/* ============================================================
   CARDS
   ============================================================ */
.card { border-radius: var(--radius-lg); padding: 2rem; transition: all var(--transition); }
.card--elevated { background: var(--white); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.card--elevated:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gray-300); }
.card--white { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; text-align: left; box-shadow: var(--shadow-md); transition: all var(--transition); color: var(--gray-700); }
.card--white:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.card--white .card-title { color: var(--gray-900); }
.card--center { text-align: center; }
.card--compact { display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.2rem 1.5rem; font-weight: 600; color: var(--gray-800); font-size: .92rem; }

.card-title { font-size: 1.05rem; margin-bottom: .4rem; }
.card-sub { font-size: .85rem; color: var(--blue); font-weight: 600; margin-bottom: .5rem; }
.card-text { font-size: .88rem; line-height: 1.6; color: var(--gray-600); }

/* Benefit Cards (Compact & Differentiated) */
.card--benefit {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.card--benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(21,101,192,.12);
  border-color: var(--blue-light);
}
.card--benefit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .85rem;
}
.card-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--blue-pale);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon-box svg { width: 20px; height: 20px; stroke-width: 2; }
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--gray-100);
}
.card-tag {
  font-size: .72rem;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: .2rem .5rem;
  border-radius: 4px;
  font-weight: 500;
}

/* Course card */
.card--course { display: flex; flex-direction: column; }
.card--course .card-title { text-align: left; }
.card--course .card-text { flex-grow: 1; }
.course-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: .8rem; color: var(--gray-500); }
.course-info { display: flex; justify-content: space-between; padding: .75rem 0; margin: .75rem 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); font-size: .85rem; color: var(--gray-600); }
.section--navy .course-info { border-color: rgba(255,255,255,.1); color: var(--gray-400); }

/* Future Project Presentation */
.future-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(184,134,11,.12);
  border: 1px solid rgba(184,134,11,.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.25rem;
  color: var(--white);
}
.future-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(184,134,11,.2);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.future-banner-icon svg { width: 22px; height: 22px; }
.future-banner strong { font-size: 1.02rem; color: var(--gold); display: block; margin-bottom: .2rem; }
.future-banner p { font-size: .88rem; color: var(--gray-300); margin: 0; line-height: 1.6; }

/* Centro de Formación Laboral */
.cfl-banner {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  background: rgba(184,134,11,.12);
  border: 1px solid rgba(184,134,11,.3);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  margin-bottom: 2.25rem;
  color: var(--white);
}
.cfl-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(184,134,11,.22);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cfl-banner-icon svg { width: 24px; height: 24px; }
.cfl-banner > div { flex: 1 1 220px; min-width: 0; }
.cfl-banner strong { font-size: 1.05rem; color: var(--gold); display: block; margin-bottom: .25rem; }
.cfl-banner p { font-size: .9rem; color: var(--gray-300); margin: 0; line-height: 1.6; }
.cfl-banner-cta { flex-shrink: 0; }
.cfl-logo {
  width: 132px;
  height: 132px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.28));
}

/* Escalas salariales */
.scale-block {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.25rem 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.scale-block-head { margin-bottom: 1rem; }
.scale-kicker {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}
.scale-block h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--navy);
  margin-bottom: .4rem;
}
.scale-org {
  font-size: .86rem;
  color: var(--gray-700);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: .45rem;
}
.scale-scope {
  text-align: left;
  max-width: none;
  margin: 0;
  color: var(--gray-600);
  font-size: .88rem;
  line-height: 1.55;
}
.scale-table-wrap {
  overflow: visible;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  margin-bottom: 1rem;
}
.scale-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .74rem;
}
.scale-table caption {
  caption-side: top;
  text-align: left;
  padding: .85rem 1rem .5rem;
  font-weight: 700;
  color: var(--navy);
  font-size: .92rem;
  line-height: 1.35;
}
.scale-table th,
.scale-table td {
  padding: .55rem .4rem;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.scale-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: .64rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.25;
  hyphens: auto;
}
.scale-table thead th:first-child,
.scale-table tbody th {
  text-align: left;
  width: 16%;
}
.scale-table tbody th {
  font-weight: 700;
  color: var(--navy);
  background: var(--gray-50);
}
.scale-table tbody tr:last-child th,
.scale-table tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 900px) {
  .scale-table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .scale-table {
    display: block;
    table-layout: auto;
    font-size: .86rem;
  }
  .scale-table caption {
    display: none;
  }
  .scale-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .scale-table tbody {
    display: grid;
    gap: .8rem;
  }
  .scale-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
    padding: .85rem .8rem .75rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    box-shadow: 0 10px 24px -18px rgba(10, 22, 40, .5);
  }
  .scale-table tbody th {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    font-size: 1.02rem;
    padding: 0 0 .55rem;
    margin: 0;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    background: none;
  }
  .scale-table tbody td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .2rem;
    width: auto;
    min-width: 0;
    padding: .55rem .6rem;
    text-align: left;
    white-space: normal;
    border: 0;
    border-radius: 10px;
    background: var(--gray-50);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: var(--navy);
    font-size: .92rem;
    line-height: 1.25;
  }
  .scale-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--gray-600);
    text-align: left;
    font-size: .68rem;
    letter-spacing: .02em;
    text-transform: uppercase;
  }
  .scale-table tbody td[data-label="Mov. de fondos 0,00%"] {
    display: none;
  }
  .scale-table tbody tr:last-child th,
  .scale-table tbody tr:last-child td,
  .scale-table tbody td:last-child {
    border-bottom: 0;
  }
  .scale-official .btn {
    width: 100%;
    justify-content: center;
  }
}
.scale-official {
  margin: 0 0 .85rem;
}
.scale-official .btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.scale-block .scale-notes {
  margin-top: .15rem;
}
.scale-notes {
  list-style: none;
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  display: grid;
  gap: .55rem;
}
.scale-notes li {
  font-size: .88rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.course-status-pill {
  padding: .55rem 1rem;
  background: rgba(255,255,255,.05);
  border: 1px dashed rgba(184,134,11,.3);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  margin-top: .5rem;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge { display: inline-block; padding: .25rem .7rem; border-radius: 50px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.badge-blue { background: rgba(21,101,192,.1); color: var(--blue); }
.badge-gold { background: var(--gold-pale); color: var(--gold); }
.badge-red { background: rgba(197,48,48,.1); color: var(--red); }

/* ============================================================
   TABS
   ============================================================ */
.tab-btns { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.tab-btn { padding: .55rem 1.3rem; border-radius: 50px; font-weight: 500; font-size: .85rem; color: var(--gray-500); border: 1px solid var(--gray-200); transition: all var(--transition); background: var(--white); }
.section--navy .tab-btn { border-color: rgba(255,255,255,.12); color: var(--gray-400); background: transparent; }
.tab-btn:hover { color: var(--blue); border-color: var(--blue); }
.section--navy .tab-btn:hover { color: var(--blue-light); border-color: var(--blue-light); }
.tab-btn.active { background: var(--blue)!important; color: var(--white)!important; border-color: var(--blue)!important; }
.tab-panel { display: none; animation: fadeIn .4s ease; }
.tab-panel.active { display: block; }

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion { display: flex; flex-direction: column; gap: .5rem; }
.acc-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); }
.acc-item.open { border-color: rgba(66,165,245,.2); background: rgba(255,255,255,.08); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; font-weight: 600; font-size: .95rem; color: var(--white); text-align: left; transition: background var(--transition); }
.acc-head:hover { background: rgba(255,255,255,.04); }
.acc-arrow { font-size: 1.2rem; transition: transform var(--transition); color: var(--gray-400); }
.acc-item.open .acc-arrow { transform: rotate(90deg); color: var(--gold); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; padding: 0 1.25rem; color: var(--gray-400); font-size: .92rem; line-height: 1.75; }
.acc-item.open .acc-body { max-height: 500px; padding: 0 1.25rem 1.25rem; }
.acc-body ul { padding: .5rem 0; }
.acc-body li { padding: .25rem 0 .25rem 1.2rem; position: relative; }
.acc-body li::before { content: '▸'; position: absolute; left: 0; color: var(--gold); }

/* ============================================================
   FORMS
   ============================================================ */
.form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-md); }
.form-card h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.form-desc { color: var(--gray-500); margin-bottom: 1.5rem; font-size: .88rem; }
.form-card--dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); color: var(--gray-300); }
.form-card--dark h3 { color: var(--white); }
.form-card--dark .form-input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: var(--white); }
.form-card--dark .form-input:focus { border-color: var(--blue-light); }
.form-card--dark label { color: var(--gray-400); }

.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 0; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--gray-600); margin-bottom: .4rem; letter-spacing: .3px; }
.form-input { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: .9rem; color: var(--gray-800); background: var(--white); transition: all var(--transition); font-family: var(--font-body); }
.form-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,.1); }
.form-input::placeholder { color: var(--gray-400); }
select.form-input { cursor: pointer; }
select.form-input option { background: var(--white); color: var(--gray-800); }
textarea.form-input { resize: vertical; min-height: 100px; }

.form-input.valid { border-color: var(--green); }
.form-input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(197,48,48,.08); }

.form-docs { margin: 1rem 0 1.5rem; }
.form-docs label { display: block; font-size: .8rem; font-weight: 600; color: var(--gray-600); margin-bottom: .5rem; }
.doc-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.doc-tags span { padding: .4rem .8rem; background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-size: .8rem; color: var(--gray-600); }

/* ============================================================
   QUIÉNES SOMOS
   ============================================================ */
.qs-tab-btns {
  gap: .4rem;
  margin-bottom: 2.25rem;
  padding: .35rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.qs-tab-btns .tab-btn {
  flex: 1 1 auto;
  min-width: 140px;
  border: none;
  background: transparent;
  color: var(--gray-500);
  font-weight: 600;
}
.qs-tab-btns .tab-btn:hover { color: var(--navy); background: var(--gray-50); }
.qs-tab-btns .tab-btn.active {
  background: var(--navy) !important;
  color: var(--white) !important;
  box-shadow: 0 6px 16px rgba(10,25,41,.18);
}

.qs-historia {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  align-items: stretch;
}
.qs-historia-main {
  display: flex;
  flex-direction: column;
}
.qs-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.qs-historia-main h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.qs-historia-main p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: .9rem;
}
.qs-quote {
  margin-top: auto;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(184,134,11,.08), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.qs-quote p {
  margin: 0;
  font-style: italic;
  font-weight: 600;
  color: var(--navy);
  font-size: .95rem;
}

.qs-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .75rem;
  position: relative;
  height: 100%;
  min-height: 100%;
}
.qs-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: .55rem;
  bottom: .55rem;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--gold));
  opacity: .35;
}
.qs-timeline li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .85rem;
  align-items: center;
  position: relative;
  flex: 1 1 0;
  min-height: 4.5rem;
  padding: .85rem .95rem .85rem 1.9rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.qs-timeline li::before {
  content: '';
  position: absolute;
  left: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
}
.qs-timeline li.is-current {
  background: rgba(184,134,11,.08);
  border-color: rgba(184,134,11,.28);
}
.qs-timeline li.is-current::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184,134,11,.15);
}
.qs-year {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--blue);
  font-size: 1rem;
}
.qs-timeline li.is-current .qs-year { color: var(--gold); }
.qs-tl-text { font-size: .86rem; color: var(--gray-600); line-height: 1.4; }

.qs-mv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.qs-mv-card {
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  border: 1px solid transparent;
  min-height: 100%;
}
.qs-mv-card--mision {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gray-300);
}
.qs-mv-card--mision h3 { color: var(--white); }
.qs-mv-card--vision {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.qs-mv-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .65rem;
  padding: .25rem .65rem;
  border-radius: 999px;
}
.qs-mv-card--mision .qs-mv-label {
  background: rgba(184,134,11,.18);
  color: var(--gold-light);
}
.qs-mv-card--vision .qs-mv-label {
  background: var(--blue-pale);
  color: var(--blue);
}
.qs-mv-card h3 {
  font-size: 1.25rem;
  margin-bottom: .65rem;
}
.qs-mv-card p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.75;
}
.qs-mv-card--vision p { color: var(--gray-600); }

.qs-values {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .65rem;
  margin: 0;
  padding: 0;
}
.qs-values li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .85rem .9rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  transition: border-color var(--transition), transform var(--transition);
}
.qs-values li:hover {
  border-color: rgba(21,101,192,.35);
  transform: translateY(-2px);
}
.qs-values strong {
  font-size: .88rem;
  color: var(--navy);
}
.qs-values span {
  font-size: .75rem;
  color: var(--gray-500);
}

.qs-auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
}
.qs-auth-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  border-top: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.qs-auth-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.qs-auth-role {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .35rem;
}
.qs-auth-card h3 {
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: .4rem;
}
.qs-auth-card p {
  margin: 0;
  font-size: .86rem;
  color: var(--gray-600);
  line-height: 1.55;
}
.qs-auth-name {
  font-weight: 700 !important;
  color: var(--navy) !important;
  font-size: .95rem !important;
}

/* ============================================================
   SECRETARÍAS Y SEDES
   ============================================================ */
.org-section {
  background:
    radial-gradient(1200px 400px at 10% 0%, rgba(21,101,192,.08), transparent 60%),
    radial-gradient(900px 360px at 90% 20%, rgba(184,134,11,.08), transparent 55%),
    var(--off-white);
}
.org-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: stretch;
}
.org-block {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.org-block-head {
  margin-bottom: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.org-block-head h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: .25rem;
}
.org-block-head p {
  margin: 0;
  font-size: .86rem;
  color: var(--gray-500);
}
.org-sec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
  flex: 1 1 auto;
}
.org-sec-list li {
  padding: .7rem .9rem .7rem 1.15rem;
  border-radius: var(--radius);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--gold);
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-800);
  position: relative;
}
.org-sec-list li::before { display: none; }
.org-sec-list--named li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .12rem;
  line-height: 1.3;
}
.org-sec-list--named li.is-lead {
  background: linear-gradient(90deg, rgba(184,134,11,.1), var(--gray-50));
  border-color: rgba(184,134,11,.28);
  border-left-color: var(--gold);
}
.org-sec-list--named strong {
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}
.org-sec-list--named span {
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
}
.org-sede-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  flex: 1 1 auto;
  min-height: 0;
}
.org-sede {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-height: 0;
}
.org-sede-head {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}
.org-sede h4 {
  color: var(--white);
  font-size: 1.02rem;
  margin: 0;
}
.org-sede p {
  font-size: .86rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.org-sede .btn { align-self: flex-start; margin-top: auto; }
.org-sede-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(184,134,11,.16);
  padding: .2rem .5rem;
  border-radius: 999px;
}
.org-sede-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .32rem;
}
.org-sede-meta li {
  font-size: .84rem;
  color: var(--gray-300);
  padding-left: .85rem;
  position: relative;
}
.org-sede-meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.card--featured {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card--featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-pale);
}

.card--leadership {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.card--leadership:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ci-icon-svg {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--blue-pale);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-icon-svg svg { width: 18px; height: 18px; }
.highlight { font-weight: 700; font-style: italic; color: var(--gold); font-size: 1.05rem; margin-top: .5rem; }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; width: 2px; height: 100%; background: linear-gradient(180deg, var(--blue), var(--gold)); }
.tl-item { position: relative; padding: .75rem 0 .75rem 1.5rem; }
.tl-item::before { content: ''; position: absolute; left: -2rem; top: 1rem; width: 10px; height: 10px; background: var(--gray-200); border: 2px solid var(--blue); border-radius: 50%; }
.tl-item.current::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 8px rgba(184,134,11,.4); }
.tl-item strong { font-family: var(--font-heading); color: var(--blue); font-size: 1.05rem; display: block; }
.tl-item span { font-size: .88rem; color: var(--gray-600); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 2rem; }
.value { display: flex; flex-direction: column; align-items: center; padding: 1.2rem; text-align: center; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); transition: all var(--transition); font-size: .88rem; color: var(--gray-700); }
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-pale); }
.value strong { color: var(--gray-900); font-size: .92rem; margin-bottom: .2rem; }
.value span { font-size: .78rem; color: var(--gray-500); }

/* ============================================================
   WORKERS
   ============================================================ */
.workers-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: stretch; }
.workers-aside { display: flex; flex-direction: column; gap: .75rem; }
.aside-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.aside-card-top {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.aside-card-top .card-icon-box { margin: 0; }
.aside-card h3 { color: var(--white); font-size: 1.02rem; margin: 0; }
.aside-card p { color: var(--gray-400); font-size: .86rem; margin: 0; line-height: 1.5; }
.aside-card p a { color: var(--blue-light); font-weight: 600; }
.aside-card .btn { margin-top: auto; }
.aside-card--urgent { background: linear-gradient(135deg, rgba(197,48,48,.12), rgba(184,134,11,.08)); border-color: rgba(197,48,48,.2); }
.aside-card--cfl { border-color: rgba(184,134,11,.28); background: linear-gradient(180deg, rgba(184,134,11,.1), rgba(255,255,255,.04)); }

/* ============================================================
   AFFILIATION & CREDENTIAL
   ============================================================ */
.affiliation-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.affiliation-info h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--blue); }
.check-list { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 2rem; }
.check-item { font-size: .92rem; padding: .35rem 0; color: var(--gray-700); display: flex; align-items: flex-start; gap: .5rem; }
.check-item svg { color: var(--green); margin-top: 3px; }

.credential { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); border: 2px solid var(--gold); border-radius: var(--radius-lg); padding: 1.5rem; max-width: 380px; box-shadow: var(--shadow-lg); }
.credential-head { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.1); color: var(--white); font-size: .85rem; margin-bottom: 1rem; }
.credential-head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); }
.credential-head small { display: block; font-size: .7rem; color: var(--gold); }
.credential-body { display: flex; gap: 1rem; margin-bottom: 1rem; }
.credential-photo { width: 55px; height: 65px; background: rgba(255,255,255,.08); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--gray-400); flex-shrink: 0; }
.credential-photo svg { width: 28px; height: 28px; }
.credential-data { display: flex; flex-direction: column; gap: .2rem; font-size: .75rem; color: var(--gray-400); }
.credential-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .75rem; color: var(--gray-500); }
.credential-foot span { background: rgba(255,255,255,.08); padding: .3rem .6rem; border-radius: var(--radius-sm); font-size: .7rem; color: var(--gray-300); }

/* ============================================================
   PORTAL
   ============================================================ */
.portal { padding: 3rem 0; background: linear-gradient(135deg, var(--navy-light), var(--navy)); border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); }
.portal-card { display: grid; grid-template-columns: 1fr; gap: 2rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-xl); padding: 2.5rem; }
.portal-card h2 { color: var(--white); font-size: 1.5rem; margin-bottom: .5rem; }
.portal-card p { color: var(--gray-400); font-size: .92rem; }
.portal-login { display: flex; flex-direction: column; gap: .6rem; max-width: 320px; margin: 1.5rem 0 .75rem; }
.portal-login .form-input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: var(--white); }
.portal-login .form-input:focus { border-color: var(--blue-light); }
.portal-card small { color: var(--gray-500); font-size: .8rem; }
.portal-card small a { color: var(--blue-light); text-decoration: underline; }
.portal-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.portal-features span { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); padding: .65rem .9rem; border-radius: var(--radius-sm); font-size: .82rem; color: var(--gray-400); transition: all var(--transition); }
.portal-features span:hover { background: rgba(255,255,255,.08); color: var(--white); }

/* ============================================================
   DELEGACIONES
   ============================================================ */
.deleg-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.deleg-map { text-align: center; width: 100%; }
.deleg-map--wide { width: 100%; }
.deleg-map-frame {
  background: var(--white);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: .85rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: .65rem;
  width: 100%;
}
.deleg-map-frame img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  max-height: min(72vh, 640px);
  object-fit: contain;
  margin: 0 auto;
  background: var(--gray-50);
}
.deleg-map-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--gray-600);
  font-weight: 600;
  padding: .15rem 0;
}
.deleg-hint {
  margin: 0;
  text-align: center;
  font-size: .85rem;
  color: var(--gray-400);
}

.deleg-acc { gap: .65rem; }
.deleg-acc .region-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.deleg-acc .region-card:hover {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
}
.deleg-acc .region-card.open {
  border-color: rgba(184,134,11,.35);
  background: rgba(255,255,255,.07);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.deleg-acc .acc-head {
  gap: 1rem;
  padding: 1rem 1.15rem;
  align-items: center;
}
.region-card__title {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--white);
  text-align: left;
}
.region-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,134,11,.18);
}
.region-card--blue { --region-accent: #1565C0; }
.region-card--sky { --region-accent: #0284C7; }
.region-card--green { --region-accent: #059669; }
.region-card--gold { --region-accent: #B8860B; }
.region-card--violet { --region-accent: #7C3AED; }
.region-card--blue .region-card__dot,
.region-card--sky .region-card__dot,
.region-card--green .region-card__dot,
.region-card--gold .region-card__dot,
.region-card--violet .region-card__dot {
  background: var(--region-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--region-accent) 25%, transparent);
}
.region-card__meta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}
.deleg-acc .region-card .badge {
  background: rgba(255,255,255,.08);
  color: var(--gray-300);
  border: 1px solid rgba(255,255,255,.1);
  font-size: .68rem;
}
.deleg-acc .region-card.open .badge {
  background: color-mix(in srgb, var(--region-accent) 18%, transparent);
  color: #fff;
  border-color: color-mix(in srgb, var(--region-accent) 35%, transparent);
}
.deleg-acc .acc-body {
  color: var(--gray-300);
}
.deleg-acc .acc-item.open .acc-body {
  max-height: none;
  padding: 0 1.15rem 1.15rem;
}

.place-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
}
.place-list li {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: .45rem .65rem;
  font-size: .8rem;
  color: var(--gray-200);
  line-height: 1.35;
}
.place-list li::before { display: none; }

.comuna-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.comuna-detail-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: .75rem;
  align-items: start;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: .7rem .85rem;
}
.comuna-detail-list li::before { display: none; }
.comuna-detail-list strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--gold);
  line-height: 1.2;
}
.comuna-detail-list span {
  font-size: .86rem;
  color: var(--gray-200);
  line-height: 1.45;
}

/* ============================================================
   FISCALIZACIÓN
   ============================================================ */
.fisc-section {
  background:
    radial-gradient(900px 320px at 0% 0%, rgba(21,101,192,.08), transparent 55%),
    radial-gradient(700px 280px at 100% 10%, rgba(184,134,11,.07), transparent 50%),
    var(--off-white);
}
.fisc-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--gray-300);
  box-shadow: var(--shadow-md);
}
.fisc-intro__copy h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: .5rem;
}
.fisc-intro__copy p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.7;
  max-width: 52ch;
}
.fisc-intro__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
}
.fisc-intro__stats li {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: .85rem .75rem;
  text-align: center;
}
.fisc-intro__stats strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: .95rem;
  margin-bottom: .2rem;
}
.fisc-intro__stats span {
  display: block;
  font-size: .72rem;
  color: var(--gray-400);
  line-height: 1.3;
}

.fisc-steps {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  counter-reset: none;
}
.fisc-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.fisc-steps__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--gold);
  line-height: 1;
  min-width: 2rem;
}
.fisc-steps h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: .25rem;
}
.fisc-steps p {
  margin: 0;
  font-size: .86rem;
  color: var(--gray-600);
  line-height: 1.55;
}

.fisc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.fisc-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.fisc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(21,101,192,.25);
}
.fisc-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, rgba(10,25,41,.04), rgba(21,101,192,.08));
  border-bottom: 1px solid var(--gray-100);
}
.fisc-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fisc-card__icon svg { width: 20px; height: 20px; }
.fisc-card__tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  padding: .28rem .65rem;
  border-radius: 999px;
}
.fisc-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 1.1rem 1.25rem .45rem;
}
.fisc-card > p {
  margin: 0 1.25rem 1rem;
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.65;
  flex-grow: 1;
}
.fisc-card__list {
  list-style: none;
  margin: 0;
  padding: .9rem 1.25rem 1.2rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  background: var(--gray-50);
}
.fisc-card__list li {
  position: relative;
  padding-left: 1rem;
  font-size: .8rem;
  color: var(--gray-700);
  font-weight: 500;
}
.fisc-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .45rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.fisc-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.fisc-cta h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: .25rem;
}
.fisc-cta p {
  margin: 0;
  font-size: .88rem;
  color: var(--gray-600);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
.contact-info { display: flex; height: 100%; min-height: 100%; }
.ci-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
  height: 100%;
  justify-content: space-between;
}
.ci-item { display: flex; align-items: flex-start; gap: .85rem; }
.ci-item strong { display: block; color: var(--gray-900); margin-bottom: .15rem; font-size: .9rem; }
.ci-item p { color: var(--gray-600); font-size: .88rem; margin: 0; }
#contacto .form-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
#contacto .form-card .btn-block { margin-top: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--gray-900); padding: 3.5rem 0 1.5rem; color: var(--gray-500); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-logo img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.footer-logo strong { color: var(--white); font-family: var(--font-heading); display: block; font-size: 1rem; }
.footer-logo em { font-size: .75rem; color: var(--gold); font-style: italic; }
.footer-brand p { font-size: .85rem; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: .92rem; margin-bottom: 1rem; position: relative; padding-bottom: .5rem; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 24px; height: 2px; background: var(--gold); }
.footer-col a, .footer-col span { display: block; font-size: .85rem; color: var(--gray-400); margin-bottom: .4rem; transition: all var(--transition); }
.footer-col a:hover { color: var(--blue-light); padding-left: 4px; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.06); font-size: .78rem; color: var(--gray-600); }
.footer-bottom p { margin-bottom: .2rem; }

/* ============================================================
   BACK TO TOP & MODAL
   ============================================================ */
.btt { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 42px; height: 42px; background: var(--blue); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; opacity: 0; visibility: hidden; transition: all var(--transition); z-index: 90; box-shadow: 0 4px 15px rgba(21,101,192,.3); border: none; cursor: pointer; }
.btt.visible { opacity: 1; visibility: visible; }
.btt:hover { transform: translateY(-4px); background: var(--gold); box-shadow: 0 6px 20px rgba(184,134,11,.3); }

.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.modal-box { position: relative; background: var(--white); border-radius: var(--radius-xl); padding: 2.75rem; text-align: center; max-width: 420px; width: 90%; animation: fadeUp .4s ease; box-shadow: var(--shadow-xl); }
.modal-box h3 { font-size: 1.3rem; margin-bottom: .5rem; color: var(--gray-900); }
.modal-box p { color: var(--gray-600); margin-bottom: 1.5rem; font-size: .92rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.anim { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.anim.animated { opacity: 1; transform: translateY(0); }
.anim[data-delay="1"] { transition-delay: .12s; }
.anim[data-delay="2"] { transition-delay: .24s; }
.anim[data-delay="3"] { transition-delay: .36s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(min-width: 640px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(6, 1fr); }
  .qs-values { grid-template-columns: repeat(3, 1fr); }
  .qs-auth-grid { grid-template-columns: repeat(2, 1fr); }
  .org-sec-list { grid-template-columns: repeat(2, 1fr); }
}

@media(min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .workers-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
    gap: 1.15rem;
    align-items: stretch;
  }
  .workers-grid > .accordion {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }
  .workers-grid > .accordion .acc-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .workers-grid > .accordion .acc-item:not(.open) .acc-head {
    flex: 1;
    display: flex;
    align-items: center;
  }
  .workers-aside {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    height: 100%;
    min-height: 0;
    align-self: stretch;
  }
  .workers-aside .aside-card {
    flex: unset;
    min-height: 0;
    height: 100%;
    justify-content: space-between;
  }
  .affiliation-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .contact-grid > .contact-info,
  .contact-grid > .form-card {
    height: 100%;
    min-height: 100%;
  }
  .place-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deleg-map-frame img { max-height: min(70vh, 720px); }
  .fisc-intro {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 1.75rem;
    padding: 2rem;
  }
  .fisc-steps { grid-template-columns: repeat(3, 1fr); }
  .fisc-grid { grid-template-columns: repeat(3, 1fr); }
  .fisc-cta {
    flex-direction: row;
    align-items: center;
  }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .portal-card { grid-template-columns: 1fr auto; }
  .qs-historia { grid-template-columns: 1.15fr .85fr; gap: 2.25rem; padding: 2rem; align-items: stretch; }
  .qs-timeline { height: 100%; }
  .qs-mv { grid-template-columns: 1fr 1fr; }
  .org-layout { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .org-block { height: 100%; }
  .org-sec-list--named { grid-template-columns: 1fr 1fr; }
  .org-sec-list--named li.is-lead,
  .org-sec-list--named li:last-child { grid-column: 1 / -1; }
  .org-sede-cards { grid-template-columns: 1fr; grid-template-rows: 1.15fr .85fr; height: 100%; }
}

@media(min-width: 1024px) {
  .nav { padding: .7rem 0; }
  .nav.scrolled { padding: .45rem 0; }
  .nav-logo { gap: .55rem; min-width: 0; }
  .nav-logo-badge { width: 36px; height: 36px; }
  .brand-name { font-size: .98rem; letter-spacing: .2px; }
  .brand-sub { display: none; }

  .nav-links {
    position: static;
    width: auto;
    height: auto;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
    border: none;
    gap: 0;
    overflow: visible;
  }
  .nav-links .nav-link {
    padding: .35rem .42rem;
    border-bottom: none;
    font-size: .76rem;
    letter-spacing: -.01em;
    position: relative;
    color: rgba(255,255,255,.85);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
  }
  /* CTA del nav ya cubre Contacto: evita duplicar y ganar espacio */
  .nav-links > .nav-link[href="#contacto"] { display: none; }
  .nav-links .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all var(--transition);
    transform: translateX(-50%);
  }
  .nav-links .nav-link:hover::after, .nav-links .nav-link.active::after { width: 70%; }
  .nav-links .nav-link:hover { color: var(--white); }

  /* Desktop Dropdowns */
  .nav-item-dropdown { display: inline-block; position: relative; }
  .nav-item-dropdown:hover .icon-chevron { transform: rotate(180deg); color: var(--gold); }
  .nav-item-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

  .dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    padding: .5rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 1005;
  }
  .dropdown-menu a {
    display: block;
    padding: .6rem 1.2rem !important;
    color: rgba(255,255,255,.75) !important;
    font-size: .83rem !important;
    white-space: nowrap;
    transition: all var(--transition);
  }
  .dropdown-menu a::after { display: none !important; }
  .dropdown-menu a:hover {
    background: rgba(255,255,255,.06);
    color: var(--gold) !important;
    padding-left: 1.45rem !important;
  }

  .nav-links__mobile-actions { display: none; }
  .nav-actions { display: flex; flex-shrink: 0; }
  .nav-actions .btn-sm {
    padding: .4rem .75rem;
    font-size: .74rem;
    white-space: nowrap;
  }
  .nav-actions .btn-label-full { display: none; }
  .nav-actions .btn-label-short { display: inline; }
  .nav-toggle { display: none; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .qs-auth-grid { grid-template-columns: repeat(3, 1fr); }
  .qs-values { grid-template-columns: repeat(6, 1fr); }
  .org-sec-list:not(.org-sec-list--named) { grid-template-columns: repeat(3, 1fr); }

  /* Hero PC: botones en una sola línea, sin wrap */
  .hero-inner {
    max-width: 960px;
    padding: 6rem 1.5rem 3.75rem;
  }
  .hero-badge { margin-bottom: 1.15rem; }
  .hero-typing { margin-bottom: 1.75rem; }
  .hero-actions {
    flex-wrap: nowrap;
    gap: .55rem;
  }
  .hero-actions .btn-lg {
    padding: .7rem 1.1rem;
    font-size: .86rem;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .hero-actions .btn-lg .svg-icon {
    width: 16px;
    height: 16px;
  }
}

/* Laptop / pantallas anchas con poca altura (ej. 1366x768) */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
  }
  .hero-inner { padding: 5.25rem 1.25rem 3.25rem; }
  .hero-badge {
    margin-bottom: .85rem;
    padding: .3rem 1rem;
    font-size: .75rem;
  }
  .hero-title {
    font-size: clamp(2.2rem, 4.8vw, 3.4rem);
    margin-bottom: .35rem;
  }
  .hero-sub { margin-bottom: .45rem; font-size: 1rem; }
  .hero-typing { min-height: 1.4rem; margin-bottom: 1.25rem; font-size: .95rem; }
  .hero-actions {
    flex-wrap: nowrap;
    gap: .45rem;
  }
  .hero-actions .btn-lg {
    padding: .6rem .9rem;
    font-size: .8rem;
  }
  .hero-scroll { bottom: 1rem; }
}

@media (min-width: 1280px) {
  .brand-sub { display: block; }
  .brand-name { font-size: 1.08rem; }
  .nav-logo-badge { width: 40px; height: 40px; }
  .nav-links .nav-link {
    padding: .4rem .62rem;
    font-size: .82rem;
  }
  .nav-actions .btn-sm {
    padding: .45rem 1rem;
    font-size: .8rem;
  }
  .nav-actions .btn-label-full { display: inline; }
  .nav-actions .btn-label-short { display: none; }
  .hero-actions .btn-lg {
    padding: .75rem 1.35rem;
    font-size: .9rem;
  }
}

@media (min-width: 1440px) {
  .nav-links .nav-link {
    padding: .4rem .75rem;
    font-size: .84rem;
  }
}

/* ============================================================
   MÓVIL / HOSTINGER — safe responsive
   ============================================================ */
:root {
  --header-offset: calc(4.25rem + env(safe-area-inset-top, 0px));
}
html {
  scroll-padding-top: var(--header-offset);
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; touch-action: none; }
.nav { padding-top: calc(.85rem + env(safe-area-inset-top, 0px)); }
.container { min-width: 0; }
.nav-links { -webkit-overflow-scrolling: touch; }

@media (max-width: 1023px) {
  .hero {
    min-height: auto;
    height: auto;
    align-items: flex-start;
    overflow-x: clip;
    overflow-y: visible;
  }
  .hero-inner {
    padding: calc(var(--header-offset) + 1.25rem) 1.15rem 3.25rem;
    max-width: 100%;
  }
  .hero-bg { transform: scale(1.03); }
  .hero-actions {
    flex-wrap: wrap;
    width: 100%;
  }
  .hero-actions .btn-lg {
    flex: 1 1 calc(50% - .4rem);
    min-width: 0;
    white-space: normal;
    text-align: center;
    font-size: .82rem;
    padding: .7rem 1rem;
  }
  .hero-scroll { position: static; transform: none; margin: 1.25rem auto 0; }
  .qs-tab-btns {
    border-radius: var(--radius-lg);
    flex-direction: column;
  }
  .qs-tab-btns .tab-btn { min-width: 0; width: 100%; }
  .qs-historia { padding: 1.25rem; }
  .qs-timeline li { grid-template-columns: 1fr; gap: .25rem; padding-left: 1.9rem; }
  .org-layout { grid-template-columns: 1fr; }
  .fisc-intro__stats { grid-template-columns: 1fr; }
  .fisc-steps { grid-template-columns: 1fr; }
  .fisc-grid { grid-template-columns: 1fr; }
  .place-list { grid-template-columns: 1fr 1fr; }
  .deleg-map-frame img { max-height: none; }
  .workers-grid { grid-template-columns: 1fr; }
  .cfl-logo { width: 108px; height: 108px; }
  .cfl-banner { justify-content: center; text-align: center; }
  .scale-notes { padding: .95rem 1rem; }
  .region-card__title { font-size: .88rem; }
  .btt { bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); right: 1rem; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .qs-values { grid-template-columns: 1fr 1fr; }
  .qs-auth-grid { grid-template-columns: 1fr; }
  .org-sec-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .tab-btns { justify-content: stretch; }
  .tab-btn { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn,
  .hero-actions .btn-lg {
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
  }
  .section { padding: 3.25rem 0; }
  .form-card { padding: 1.35rem; }
  .ci-card { padding: 1.35rem; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .tab-btns { gap: .4rem; }
  .tab-btn { padding: .45rem .85rem; font-size: .78rem; }
  .place-list { grid-template-columns: 1fr; }
  .brand-name { font-size: .95rem; }
  .nav-logo-text .brand-sub { display: none; }
  .modal-box { width: calc(100% - 1.5rem); padding: 1.75rem 1.25rem; }
}

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

/* ============================================================
   REGLAS 0000 — crédito, WhatsApp, grid SEO (sin alterar estética)
   ============================================================ */
.footer-credit {
  margin-top: 1rem;
  text-align: center;
  font-size: .72rem;
  font-weight: 300;
  color: var(--gray-600);
}
.footer-credit a {
  color: var(--gray-600);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color var(--transition);
}
.footer-credit a:hover { color: var(--gold); }

.whatsapp-float {
  position: fixed;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: max(22px, calc(22px + env(safe-area-inset-bottom, 0px)));
  z-index: 1500;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(37, 211, 102, .55);
  color: #fff;
}
.whatsapp-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.whatsapp-float-icon { width: 30px; height: 30px; }
.btt {
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  right: max(1.5rem, env(safe-area-inset-right, 0px));
}

.seo-index-section {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  background:
    radial-gradient(900px 280px at 8% 0%, rgba(21,101,192,.07), transparent 55%),
    radial-gradient(700px 240px at 92% 12%, rgba(184,134,11,.08), transparent 50%),
    var(--off-white);
}
.seo-feat {
  display: grid;
  gap: .35rem;
  margin-bottom: 1.75rem;
  padding: 1.4rem 1.5rem 1.35rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(184,134,11,.16), transparent 42%),
    linear-gradient(180deg, var(--navy-light), var(--navy));
  color: var(--white);
  border: 1px solid rgba(184,134,11,.35);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.seo-feat::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(184,134,11,.12);
}
.seo-feat-kicker {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.seo-feat strong {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--white);
}
.seo-feat span {
  color: var(--gray-300);
  font-size: .9rem;
  max-width: 38rem;
  line-height: 1.55;
}
.seo-feat em {
  font-style: normal;
  margin-top: .45rem;
  color: var(--gold-light);
  font-weight: 700;
  font-size: .86rem;
}
.seo-feat:hover em { color: var(--gold); }
.seo-groups { display: grid; gap: 1.5rem; }
.seo-group h3 {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.seo-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
.seo-cards a {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: .85rem;
  align-items: start;
  padding: 1.05rem 1.1rem;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.seo-cards a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(184,134,11,.35);
}
.seo-card-ico {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold-pale);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.seo-card-ico svg { width: 18px; height: 18px; }
.seo-cards strong {
  font-size: .95rem;
  color: var(--navy);
  line-height: 1.3;
}
.seo-cards span {
  font-size: .8rem;
  color: var(--gray-500);
  line-height: 1.45;
}
@media (min-width: 700px) {
  .seo-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .seo-groups { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
  .seo-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .whatsapp-float {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(20px, calc(18px + env(safe-area-inset-bottom, 0px)));
    width: 54px;
    height: 54px;
  }
  .whatsapp-float-icon { width: 28px; height: 28px; }
  .btt { bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)); }
}
