/* ============================================
   CACF · Cámara Argentina de Contratistas Forrajeros
   Hoja de estilos · alineada al Manual de Marca 2026
   Paleta oficial: #2F579F (azul CACF) / #1F3B6E (azul oscuro)
                   #111111 (negro) / #FFFFFF (blanco)
   ============================================ */

:root {
  /* Paleta institucional (Manual de Marca CACF Ed. 2026) */
  --cacf-blue: #2F579F;
  --cacf-blue-dark: #1F3B6E;
  --cacf-black: #111111;
  --white: #FFFFFF;

  /* Derivados utilitarios (tonos del mismo azul, no nuevos colores) */
  --cacf-blue-tint: #EAF0FA;       /* fondo suave azul al 8% */
  --cacf-blue-soft: #5778BB;       /* azul claro, mismo hue, para acentos sutiles */
  --paper: #FAFAFA;
  --paper-warm: #F4F4F2;
  --ink: var(--cacf-black);
  --ink-soft: #3A4660;
  --ink-mute: #6B7794;
  --line: #E3E6EE;

  /* Tipografía: sans serif geométrica (alineada al espíritu del manual) */
  --font-sans: 'DM Sans', 'Calibri', system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(47,87,159,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,87,159,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  overflow-x: hidden;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 0;
  background: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), padding 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  padding: 8px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cacf-blue);
}
.brand-mark {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--cacf-blue-dark);
}
.brand-text em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s var(--ease);
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cacf-blue);
  transition: width 0.3s var(--ease);
}
.site-nav a:hover { color: var(--cacf-blue); }
.site-nav a:hover::after { width: 100%; }
.site-nav .nav-socios,
.mobile-nav .nav-socios {
  background: var(--cacf-blue);
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.site-nav .nav-socios::after { display: none; }
.site-nav .nav-socios:hover,
.mobile-nav .nav-socios:hover { background: var(--cacf-blue-dark); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cacf-blue-dark);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem var(--gutter) 2rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.mobile-nav.open { display: flex; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 130px 0 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--cacf-blue);
  opacity: 0.35;
}
.hero-grid-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-bottom: 4rem;
}

.hero-content { max-width: 580px; }

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--cacf-blue-tint);
  border: 1px solid rgba(47, 87, 159, 0.18);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--cacf-blue-dark);
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cacf-blue);
  box-shadow: 0 0 0 4px rgba(47, 87, 159, 0.2);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(47, 87, 159, 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(47, 87, 159, 0.04); }
}

.hero-title {
  font-weight: 700;
  font-size: clamp(2.3rem, 5.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--cacf-blue-dark);
  margin-bottom: 1.8rem;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.35s; }
.hero-title .line:nth-child(2) { animation-delay: 0.5s; }
.hero-title .line:nth-child(3) { animation-delay: 0.65s; }
.hero-title .hl {
  color: var(--cacf-blue);
  position: relative;
  display: inline-block;
}
.hero-title .hl::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.06em;
  width: 100%;
  height: 0.16em;
  background: var(--cacf-blue);
  opacity: 0.22;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 0.9s var(--ease-out) 1.3s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.95s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1.1s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--cacf-blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(47, 87, 159, 0.25);
}
.btn-primary:hover {
  background: var(--cacf-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(31, 59, 110, 0.35);
}
.btn-ghost {
  color: var(--cacf-blue-dark);
  border: 1.5px solid var(--cacf-blue-dark);
}
.btn-ghost:hover {
  background: var(--cacf-blue-dark);
  color: var(--white);
}

/* ====== GALERÍA HERO ====== */
.hero-gallery {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 620px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  animation: heroIn 1.1s var(--ease-out) 0.4s forwards;
  box-shadow:
    0 30px 60px -20px rgba(31, 59, 110, 0.35),
    0 18px 36px -18px rgba(31, 59, 110, 0.22);
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  pointer-events: none;
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.slide picture,
.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.0) 45%, rgba(17, 17, 17, 0.7) 100%),
    linear-gradient(135deg, rgba(47, 87, 159, 0.15), transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.slide::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  left: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 2;
}
.slide figcaption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
}
.cap-title {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
}
.cap-sub {
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.gallery-controls {
  position: absolute;
  bottom: 18px;
  right: 22px;
  display: flex;
  gap: 8px;
  z-index: 4;
}
.gal-dot {
  width: 22px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 0;
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
  padding: 0;
}
.gal-dot:hover { background: rgba(255, 255, 255, 0.7); }
.gal-dot.is-active {
  background: var(--white);
  width: 32px;
}

/* ====== STATS Y MARQUEE ====== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1.25s forwards;
}
.stat-num {
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--cacf-blue-dark);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}

.hero-marquee {
  padding: 1.2rem 0;
  background: var(--cacf-blue-dark);
  color: var(--white);
  overflow: hidden;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.marquee-track {
  display: inline-flex;
  gap: 1.5rem;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  padding-right: 1.5rem;
}
.marquee-track span:nth-child(even) {
  color: var(--cacf-blue-soft);
  opacity: 0.7;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ SECCIONES ============ */
.section-head {
  margin-bottom: 3.5rem;
  max-width: 60ch;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cacf-blue);
  margin-bottom: 1.2rem;
}
.eyebrow.light { color: var(--cacf-blue-soft); }

.section-title {
  font-weight: 500;
  font-size: clamp(1.8rem, 3.3vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--cacf-blue-dark);
}
.num-strong {
  white-space: nowrap;
  color: var(--cacf-blue);
  font-weight: 700;
}

/* INSTITUCIONAL */
.institucional {
  padding: 7rem 0 4rem;
  background: var(--paper);
}
.inst-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}
.inst-text .lead {
  font-weight: 500;
  font-size: clamp(1.18rem, 1.7vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.inst-text p {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.inst-photo {
  margin: 2.5rem 0 0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.inst-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.inst-photo figcaption {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-style: italic;
}

.inst-card {
  background: var(--cacf-blue-dark);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.inst-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--cacf-blue) 0%, transparent 70%);
  opacity: 0.5;
  transform: translate(50%, -50%);
}
.inst-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  gap: 1rem;
  position: relative;
}
.inst-card-row.last { border-bottom: none; padding-bottom: 0; }
.inst-card-row:first-child { padding-top: 0; }
.inst-card-row .k {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.inst-card-row .v {
  font-weight: 500;
  font-size: 1rem;
  color: var(--white);
  text-align: right;
}

/* ============ MVV ============ */
.mvv {
  padding: 3rem 0 7rem;
  background: var(--paper);
  position: relative;
}
.mvv::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  height: 1px;
  background: var(--line);
}

.mvv-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(47, 87, 159, 0.12);
}
.mvv-block:last-child { border-bottom: none; }
.mvv-block.reverse { grid-template-columns: 1fr 220px; }
.mvv-block.reverse .mvv-label { order: 2; text-align: right; }
.mvv-block.reverse .mvv-body { order: 1; }

.mvv-label {
  position: sticky;
  top: 100px;
  align-self: start;
}
.mvv-num {
  display: block;
  font-weight: 300;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--cacf-blue);
  opacity: 0.35;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}
.mvv-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cacf-blue-dark);
  padding-top: 0.5rem;
  border-top: 1.5px solid var(--cacf-blue-dark);
}

.mvv-title {
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--cacf-blue-dark);
  margin-bottom: 1.5rem;
}
.mvv-title .hl {
  background: linear-gradient(180deg, transparent 65%, rgba(47, 87, 159, 0.22) 65%, rgba(47, 87, 159, 0.22) 92%, transparent 92%);
  padding: 0 0.1em;
  color: var(--cacf-blue);
  font-weight: 700;
}

.mvv-text {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 60ch;
}

.mvv-list {
  list-style: none;
  margin-top: 1.5rem;
}
.mvv-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  border-bottom: 1px solid rgba(47, 87, 159, 0.1);
  color: var(--ink);
  font-weight: 500;
}
.mvv-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cacf-blue);
  font-weight: 600;
}
.mvv-list li:last-child { border-bottom: none; }

/* Valores */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 2rem;
  background: rgba(47, 87, 159, 0.12);
  border: 1px solid rgba(47, 87, 159, 0.12);
}
.value-card {
  padding: 2rem;
  background: var(--paper);
  transition: background 0.3s var(--ease);
  position: relative;
}
.value-card:hover {
  background: var(--cacf-blue-tint);
  z-index: 1;
}
.value-num {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--cacf-blue);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.value-card h4 {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cacf-blue-dark);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.value-card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============ CONVENIOS ============ */
.convenios {
  padding: 7rem 0 8rem;
  background: var(--paper-warm);
  position: relative;
}
.convenios::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.convenios-head { max-width: 64ch; }

.convenios-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 1.8rem;
  margin-top: 1.5rem;
}

.exclusivo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--cacf-blue);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
}
.exclusivo-badge svg { width: 14px; height: 14px; }

.convenios-disclaimer {
  font-size: 0.85rem;
  color: var(--ink-mute);
  max-width: 52ch;
  line-height: 1.45;
}

.convenios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3.5rem;
}

.convenio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.6rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.convenio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(31, 59, 110, 0.18);
  border-color: rgba(47, 87, 159, 0.3);
}

.logo-wrap {
  height: 51px;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.logo-wrap picture {
  display: block;
  height: 51px;
}
.logo-wrap img {
  display: block;
  width: auto;
  max-width: 75%;
  height: 51px;
  object-fit: contain;
  object-position: left center;
}

.conv-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--cacf-blue-dark);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}
.conv-sub {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-mute);
  display: block;
  margin-top: 2px;
}
.conv-cat {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cacf-blue);
  margin-bottom: 1.2rem;
}

.conv-discount {
  font-weight: 700;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1;
  color: var(--cacf-blue);
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.conv-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 0.8rem;
  flex-grow: 1;
}

.conv-note {
  font-size: 0.78rem;
  color: var(--ink-mute);
  line-height: 1.5;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(47, 87, 159, 0.18);
  font-style: italic;
}

/* Variante Uruguay */
.convenio-card.is-uruguay {
  border-color: rgba(47, 87, 159, 0.35);
  background: linear-gradient(180deg, var(--cacf-blue-tint) 0%, var(--white) 30%);
}
.card-flag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  background: var(--cacf-blue);
  color: var(--white);
  border-radius: 100px;
  text-transform: uppercase;
}

.convenios-foot {
  margin-top: 3.5rem;
  padding: 1.5rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.convenios-foot a {
  color: var(--cacf-blue);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s var(--ease);
}
.convenios-foot a:hover { color: var(--cacf-blue-dark); }

/* ============ ECONOMÍA ============ */
.economia {
  padding: 7rem 0 7rem;
  background: var(--paper);
  position: relative;
}
.economia::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.economia-head { max-width: 64ch; }
.hl-em {
  font-style: italic;
  color: var(--cacf-blue);
}
.economia-intro {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 1.2rem;
  max-width: 58ch;
}

/* Tabs del Área Económica */
.eco-tabs-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 2px solid var(--line);
  margin-top: 2rem;
  gap: 0;
}
.eco-tabs-nav::-webkit-scrollbar { display: none; }

.eco-tab {
  flex-shrink: 0;
  padding: 0.85rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-mute);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s var(--ease), border-bottom-color 0.2s var(--ease);
  white-space: nowrap;
}
.eco-tab:hover { color: var(--cacf-blue); }
.eco-tab.is-active {
  color: var(--cacf-blue-dark);
  font-weight: 600;
  border-bottom-color: var(--cacf-blue);
  background: var(--cacf-blue-tint);
}

.eco-tab-panel { display: none; }
.eco-tab-panel.is-active { display: block; }

.eco-placeholder {
  padding: 5rem 2rem;
  text-align: center;
  color: var(--ink-mute);
  font-style: italic;
  font-size: 1rem;
}

/* Tabla de precios */
.precios-tabla {
  margin-top: 3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  max-width: 820px;
  margin-left: 0;
  margin-right: auto;
  box-shadow: 0 30px 60px -30px rgba(31, 59, 110, 0.18);
}

.precios-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.8rem 2rem;
  background: var(--cacf-blue);
  color: var(--white);
  border-bottom: 4px solid var(--cacf-blue-dark);
}
.precios-logo {
  height: 36px;
  width: auto;
  border-radius: 4px;
  flex-shrink: 0;
}
.precios-titulo-wrap {
  flex-grow: 0;
}
.precios-titulo {
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--white);
  margin: 0;
  text-transform: uppercase;
}
.precios-vigencia {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.loading-skeleton {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: transparent;
  border-radius: 2px;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.precios-cuerpo { display: block; }

.precios-loading {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--ink-mute);
  font-style: italic;
}

.precios-error {
  padding: 2rem;
  text-align: center;
  color: #8b2c2c;
  background: #fdf3f3;
  border-top: 1px solid #f0d4d4;
}
.precios-error strong { display: block; margin-bottom: 0.4rem; }
.precios-error a { color: var(--cacf-blue); text-decoration: underline; }

.servicio-grupo + .servicio-grupo {
  border-top: 1px solid var(--line);
}
.servicio-cabezal {
  background: #3a4350;
  color: var(--white);
  padding: 0.85rem 2rem;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  text-align: center;
}
.servicio-cabezal .servicio-detalle {
  font-weight: 400;
  opacity: 0.85;
  font-style: italic;
}

.servicio-filas {
  background: var(--white);
}
.precio-fila {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2rem;
  padding: 0.95rem 2rem;
}
.precio-fila + .precio-fila {
  border-top: 1px solid var(--line);
}
.precio-label {
  font-weight: 600;
  color: var(--cacf-blue-dark);
  font-size: 1rem;
}
.precio-valor {
  font-weight: 700;
  color: var(--cacf-blue-dark);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.005em;
}

/* Footer de la tabla: notas */
.precios-footer {
  padding: 1.8rem 2rem 1.6rem;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
}
.precios-notas {
  list-style: none;
  counter-reset: nota-counter;
  padding: 0;
  margin: 0 0 1.2rem;
}
.precios-notas li {
  counter-increment: nota-counter;
  position: relative;
  padding-left: 2rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}
.precios-notas li::before {
  content: counter(nota-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--cacf-blue);
}
.precios-notas strong { color: var(--ink); font-weight: 700; }

.precios-fuente {
  font-size: 0.78rem;
  color: var(--ink-mute);
  line-height: 1.5;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(47, 87, 159, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.precios-fuente strong { color: var(--cacf-blue-dark); }
.precios-permiso { font-style: italic; }

/* Acciones (imprimir) */
.precios-acciones {
  display: flex;
  justify-content: flex-end;
  padding: 0.8rem 2rem 1.2rem;
  background: var(--paper-warm);
}
.btn-imprimir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cacf-blue-dark);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  cursor: pointer;
}
.btn-imprimir svg { width: 16px; height: 16px; }
.btn-imprimir:hover {
  background: var(--cacf-blue-tint);
  border-color: var(--cacf-blue);
}

/* Costos Silaje — selector de cultivo */
.cultivos-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}
.cultivo-btn {
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cultivo-btn:hover { border-color: var(--cacf-blue); color: var(--cacf-blue); }
.cultivo-btn.is-active {
  background: var(--cacf-blue);
  color: var(--white);
  border-color: var(--cacf-blue);
  box-shadow: 0 2px 10px rgba(47, 87, 159, 0.28);
}

/* Bloques de datos (Costos Silaje y futuras tabs) */
.precios-tabla--silaje { max-width: 900px; }

.eco-bloque { border-top: 1px solid var(--line); }
.eco-bloque:first-child { border-top: none; }

.eco-bloque-header {
  background: #3a4350;
  color: var(--white);
  padding: 0.75rem 1.6rem;
  font-weight: 500;
  font-size: 0.9rem;
  border-left: 3px solid var(--cacf-blue);
}

.eco-bloque-desc {
  padding: 0.65rem 1.6rem;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}

.eco-tabla-wrap { overflow-x: auto; }

.eco-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.eco-tabla th {
  background: var(--cacf-blue-tint);
  color: var(--cacf-blue-dark);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1.6rem;
  text-align: right;
  border-bottom: 2px solid rgba(47, 87, 159, 0.18);
}
.eco-tabla th:first-child { text-align: left; }
.eco-tabla td {
  padding: 0.85rem 1.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--cacf-blue-dark);
  font-weight: 700;
  font-size: 1rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.eco-tabla td:first-child {
  text-align: left;
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--ink);
}
.eco-tabla tbody tr:last-child td { border-bottom: none; }
.eco-tabla tbody tr:hover td { background: var(--cacf-blue-tint); transition: background 0.15s var(--ease); }
.eco-tabla tr.eco-tabla-total td {
  font-weight: 700;
  color: var(--cacf-blue-dark);
  border-top: 2px solid var(--cacf-blue);
  border-bottom: none;
  background: var(--cacf-blue-tint);
}

/* Nota al pie dentro del cuerpo de un panel (ej: precio gasoil de referencia) */
.eco-nota-pie {
  padding: 0.9rem 1.6rem;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-left: 3px solid var(--cacf-blue);
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-style: italic;
}
.eco-nota-pie strong { font-style: normal; color: var(--cacf-blue-dark); }

/* Variante para tablas donde la primera columna también es dato numérico */
.eco-tabla--datos th:first-child { text-align: right; }
.eco-tabla--datos td:first-child {
  text-align: right;
  font-weight: 700;
  font-size: 1rem;
  color: var(--cacf-blue-dark);
}

/* Print styles: solo la tabla cuando se imprime */
@media print {
  .site-header,
  .site-footer,
  .mobile-nav,
  .hero,
  .institucional,
  .mvv,
  .convenios,
  .contacto,
  .economia-head,
  .eco-tabs-nav,
  .cultivos-nav,
  .precios-acciones {
    display: none !important;
  }
  body { background: white; }
  .economia { padding: 0; }
  .precios-tabla {
    box-shadow: none;
    border: 1px solid #999;
    max-width: 100%;
    margin: 0;
  }
}

/* ============ ESTADÍSTICAS ============ */
.estadisticas {
  padding: 7rem 0;
  background: var(--white);
  position: relative;
}
.estadisticas::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.estadisticas-head { max-width: 64ch; }
.estadisticas-intro {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 1rem;
}

/* Tarjeta estrella */
.estad-hero-card {
  margin-top: 3rem;
  background: var(--cacf-blue-dark);
  color: var(--white);
  border-radius: 8px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.estad-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 10% 50%, rgba(47,87,159,0.45) 0%, transparent 65%),
    radial-gradient(ellipse 60% 100% at 90% 50%, rgba(15,30,70,0.55) 0%, transparent 65%);
  pointer-events: none;
}
.estad-hero-label {
  position: relative;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.1rem;
}
.estad-hero-num {
  position: relative;
  font-size: clamp(3.6rem, 9vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
}
.estad-hero-unit {
  position: relative;
  margin-top: 0.8rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* KPI grid */
.estad-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.estad-kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cacf-blue);
  border-radius: 6px;
  padding: 1.5rem 1.4rem;
}
.estad-kpi-val {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cacf-blue-dark);
  letter-spacing: -0.025em;
  line-height: 1;
}
.estad-kpi-lbl {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  color: var(--ink-mute);
  line-height: 1.35;
}

/* Distribución por provincia */
.estad-provincias {
  margin-top: 4rem;
}
.estad-subh {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cacf-blue);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}
.estad-barras {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 760px;
}
.estad-barra {
  display: grid;
  grid-template-columns: 170px 1fr 52px;
  align-items: center;
  gap: 1rem;
}
.estad-barra-lbl {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.estad-barra-track {
  height: 22px;
  background: var(--cacf-blue-tint);
  border-radius: 3px;
  overflow: visible;
  position: relative;
}
.estad-barra-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  min-width: 0;
  background: var(--cacf-blue);
  border-radius: 3px;
  transition: width 0.85s var(--ease-out);
}
.estad-barras.is-animated .estad-barra-fill {
  width: max(4px, var(--w, 0));
}
/* Stagger animación barra por barra */
.estad-barras.is-animated .estad-barra:nth-child(1)  .estad-barra-fill { transition-delay: 0.00s; }
.estad-barras.is-animated .estad-barra:nth-child(2)  .estad-barra-fill { transition-delay: 0.04s; }
.estad-barras.is-animated .estad-barra:nth-child(3)  .estad-barra-fill { transition-delay: 0.08s; }
.estad-barras.is-animated .estad-barra:nth-child(4)  .estad-barra-fill { transition-delay: 0.12s; }
.estad-barras.is-animated .estad-barra:nth-child(5)  .estad-barra-fill { transition-delay: 0.16s; }
.estad-barras.is-animated .estad-barra:nth-child(6)  .estad-barra-fill { transition-delay: 0.20s; }
.estad-barras.is-animated .estad-barra:nth-child(7)  .estad-barra-fill { transition-delay: 0.24s; }
.estad-barras.is-animated .estad-barra:nth-child(8)  .estad-barra-fill { transition-delay: 0.28s; }
.estad-barras.is-animated .estad-barra:nth-child(9)  .estad-barra-fill { transition-delay: 0.32s; }
.estad-barras.is-animated .estad-barra:nth-child(10) .estad-barra-fill { transition-delay: 0.36s; }
.estad-barras.is-animated .estad-barra:nth-child(11) .estad-barra-fill { transition-delay: 0.40s; }
.estad-barras.is-animated .estad-barra:nth-child(12) .estad-barra-fill { transition-delay: 0.44s; }
.estad-barras.is-animated .estad-barra:nth-child(13) .estad-barra-fill { transition-delay: 0.48s; }
.estad-barras.is-animated .estad-barra:nth-child(14) .estad-barra-fill { transition-delay: 0.52s; }
.estad-barras.is-animated .estad-barra:nth-child(15) .estad-barra-fill { transition-delay: 0.56s; }

.estad-barra-pct {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cacf-blue-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .estad-barra {
    grid-template-columns: 120px 1fr 46px;
    gap: 0.6rem;
  }
  .estad-barra-lbl { font-size: 0.8rem; }
}

/* Mapa coroplético */
.estad-mapa-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.estad-mapa-svg { line-height: 0; }
.estad-mapa-svg svg { width: 100%; height: auto; display: block; }
#estad-mapa-svg path { cursor: pointer; transition: filter 0.12s; }
#estad-mapa-svg path:hover { filter: brightness(0.82); }

.estad-mapa-leyenda {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.6rem;
}
.estad-leyenda-tit {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 1.1rem;
}
.estad-leyenda-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.estad-leyenda-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.estad-leyenda-nodata {
  margin-top: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.estad-swatch {
  width: 22px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.07);
}
.estad-swatch--nd { background: #E3E6EE; }
.estad-leyenda-hint {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-style: italic;
  line-height: 1.5;
}

/* Tooltip del mapa */
.estad-tooltip {
  position: fixed;
  background: var(--cacf-blue-dark);
  color: var(--white);
  padding: 6px 13px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  white-space: nowrap;
  z-index: 999;
}
.estad-tooltip.is-visible { opacity: 1; }

/* Sub-label barras */
.estad-barras-tit {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 720px) {
  .estad-mapa-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .estad-mapa-svg { max-width: 340px; margin: 0 auto; }
}

/* Serie histórica */
.estad-serie {
  margin-top: 4rem;
}
.estad-tabla-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.estad-tabla {
  min-width: 720px;
}

/* Primera columna fija al scroll horizontal */
.estad-tabla thead th:first-child,
.estad-tabla tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}
.estad-tabla thead th:first-child {
  background: var(--cacf-blue-tint);
  box-shadow: 2px 0 4px rgba(31, 59, 110, 0.08);
}
.estad-tabla tbody td:first-child {
  background: var(--white);
  box-shadow: 2px 0 4px rgba(31, 59, 110, 0.06);
}
.estad-tabla tbody tr:hover td:first-child {
  background: var(--cacf-blue-tint);
}

/* Columna actual (24/25) */
.estad-tabla th.col-actual {
  background: var(--cacf-blue-dark);
  color: var(--white);
}
.estad-tabla td.col-actual {
  background: var(--cacf-blue-tint);
  color: var(--cacf-blue-dark);
  font-weight: 600;
}
.estad-tabla tbody tr:hover td.col-actual {
  background: rgba(47, 87, 159, 0.15);
}

/* Fila superficie total en bold */
.estad-tabla .row-sup td {
  font-weight: 700;
  color: var(--cacf-blue-dark);
}
.estad-tabla .row-sup td:first-child {
  color: var(--ink);
}

/* Nota de fuente */
.estad-fuente {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-mute);
  line-height: 1.7;
  font-style: italic;
  max-width: 82ch;
}

@media (max-width: 900px) {
  .estad-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ============ ANÁLISIS DE FORRAJES ============ */
.analisis {
  background: #4a7c59;
  background-image: linear-gradient(135deg, #3a6348 0%, #4a7c59 60%);
  padding: 5rem 0;
}
.analisis-inner {
  max-width: 700px;
}
.analisis-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid rgba(255,255,255,0.35);
  display: inline-block;
}
.analisis-desc {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  line-height: 1.65;
  margin: 1.25rem 0 2rem;
  max-width: 60ch;
}
.analisis-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.analisis-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: opacity .2s;
}
.analisis-link:hover { opacity: .75; }
.analisis-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: .85;
}

/* ============ CONTACTO ============ */
.contacto {
  background: var(--cacf-blue-dark);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.contacto::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--cacf-blue) 0%, transparent 70%);
  opacity: 0.45;
  pointer-events: none;
}
.contacto::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--cacf-blue-soft) 0%, transparent 70%);
  opacity: 0.18;
  pointer-events: none;
}

.contacto-head {
  position: relative;
  z-index: 1;
  max-width: 62ch;
}
.section-title.light { color: var(--white); }
.hl-light {
  background: linear-gradient(180deg, transparent 65%, rgba(87, 120, 187, 0.5) 65%, rgba(87, 120, 187, 0.5) 92%, transparent 92%);
  padding: 0 0.1em;
  color: var(--white);
  font-weight: 700;
}
.contacto-intro {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin-top: 1.2rem;
  max-width: 56ch;
}

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.8rem 1.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--white);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.contact-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(87, 120, 187, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  margin-bottom: 0.8rem;
  color: var(--white);
}
.contact-icon svg { width: 22px; height: 22px; }

.contact-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.contact-value {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.contact-cta {
  font-size: 0.85rem;
  color: var(--cacf-blue-soft);
  font-weight: 500;
  margin-top: auto;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.contact-card:hover .contact-cta {
  color: var(--white);
}

/* Mapa */
.map-wrap {
  margin-top: 2.5rem;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}
.map-link {
  position: absolute;
  bottom: 14px;
  right: 14px;
  padding: 8px 14px;
  background: var(--cacf-blue-dark);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s var(--ease);
}
.map-link:hover { background: var(--cacf-blue); }

/* Redes sociales */
.social-wrap {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 1;
}
.social-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.2rem;
}
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover {
  background: var(--cacf-blue);
  border-color: var(--cacf-blue);
}

/* ============ ACCESO SOCIOS ============ */
.socios-login {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Panel izquierdo — marca */
.socios-brand-panel {
  background: var(--cacf-blue);
  background-image:
    linear-gradient(135deg, var(--cacf-blue-dark) 0%, var(--cacf-blue) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 3rem;
}
.socios-brand-inner {
  max-width: 380px;
  color: #fff;
}
.socios-brand-logo {
  margin-bottom: 1.75rem;
  opacity: 0.95;
}
.socios-brand-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.6rem;
}
.socios-brand-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.socios-brand-desc {
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.55;
  margin-bottom: 2rem;
}
.socios-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.socios-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  opacity: 0.9;
}
.socios-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}
.socios-brand-footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  opacity: 0.7;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.socios-brand-footer a {
  color: #fff;
  font-weight: 600;
  opacity: 1;
  text-decoration: none;
}
.socios-brand-footer a:hover { text-decoration: underline; }

/* Panel derecho — formulario */
.socios-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 3rem;
  background: var(--paper);
}
.socios-form-inner {
  width: 100%;
  max-width: 380px;
}
.socios-form-head {
  margin-bottom: 2rem;
}
.socios-form-head h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cacf-blue-dark);
  margin-bottom: 0.35rem;
}
.socios-form-head p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.socios-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 4px 24px rgba(47,87,159,0.07);
}
.socios-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.socios-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.socios-field input {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s var(--ease);
  outline: none;
}
.socios-field input:focus {
  border-color: var(--cacf-blue);
  box-shadow: 0 0 0 3px rgba(47,87,159,0.1);
}
.socios-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.socios-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.socios-forgot {
  font-size: 0.85rem;
  color: var(--cacf-blue);
  font-weight: 500;
}
.socios-forgot:hover { text-decoration: underline; }
.socios-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--cacf-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ease);
  letter-spacing: 0.02em;
}
.socios-submit:hover { background: var(--cacf-blue-dark); }

@media (max-width: 800px) {
  .socios-login { grid-template-columns: 1fr; }
  .socios-brand-panel { padding: 3.5rem 2rem 2.5rem; }
  .socios-brand-inner { max-width: 100%; }
  .socios-brand-title { font-size: 1.8rem; }
  .socios-features { display: none; }
  .socios-brand-footer { display: none; }
  .socios-form-panel { padding: 2.5rem 1.5rem 4rem; }
  .socios-form-inner { max-width: 100%; }
}

/* ============ COMISIÓN DIRECTIVA & STAFF ============ */
.comision-block {
  padding: 5rem 0;
}
.comision-block--dark {
  background: var(--cacf-blue-dark);
}
.comision-block--dark .section-title,
.comision-block--dark .eyebrow {
  color: rgba(255,255,255,0.6);
}
.comision-block--dark .section-title.light {
  color: #fff;
}
.comision-block--dark .eyebrow.light {
  color: rgba(255,255,255,0.5);
}
.comision-intro {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-top: 0.5rem;
}
.comision-intro.light { color: rgba(255,255,255,0.65); }

/* Staff */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.staff-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.staff-card:hover {
  box-shadow: 0 12px 32px -12px rgba(47,87,159,0.18);
  transform: translateY(-3px);
}
.staff-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cacf-blue);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
.staff-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cacf-blue-dark);
  margin: 0;
}
.staff-role {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cacf-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}
.staff-contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.staff-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.staff-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--cacf-blue);
}
.staff-link:hover { color: var(--cacf-blue); }

/* CD — Autoridades */
.cd-autoridades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}
.cd-auth-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 3px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cd-cargo {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
}
.cd-nombre {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

/* CD — Vocales y Junta */
.cd-groups {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cd-group {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cd-group-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.4;
}
.cd-group-label small {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.75;
}
.cd-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cd-member-name {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-autoridades { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .staff-grid { grid-template-columns: 1fr; }
  .cd-autoridades { grid-template-columns: repeat(2, 1fr); }
  .cd-group { grid-template-columns: 1fr; gap: 0.5rem; }
  .cd-group-label { color: rgba(255,255,255,0.4); font-size: 0.75rem; }
}

/* Link en línea dentro de texto corrido */
.inline-link {
  color: var(--cacf-blue);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(47,87,159,0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.inline-link:hover { text-decoration-color: var(--cacf-blue); }

/* FOOTER */
.site-footer {
  background: var(--cacf-black);
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 4px;
}
.footer-brand strong {
  display: block;
  font-weight: 700;
  color: var(--white);
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.footer-brand span {
  font-size: 0.82rem;
  display: block;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  text-align: right;
}
.footer-meta a {
  color: var(--white);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.footer-meta a:hover { color: var(--cacf-blue-soft); }
.footer-related {
  color: var(--white) !important;
  font-weight: 600 !important;
  font-size: 0.85rem;
  opacity: 0.9;
}
.footer-related:hover { opacity: 1; color: var(--cacf-blue-soft) !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .convenios-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .brand-text strong { display: none; }
  .brand-text em { display: block; font-size: 0.68rem; line-height: 1.3; }

  .hero { padding: 100px 0 0; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
  }
  .hero-gallery {
    aspect-ratio: 4 / 3;
    max-height: 460px;
  }
  .slide figcaption { left: 20px; right: 20px; bottom: 20px; }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding-bottom: 3.5rem;
  }
  .hero-stats .stat { padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
  .hero-stats .stat:last-child { border-bottom: none; padding-bottom: 0; }

  .inst-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .inst-card { position: relative; top: 0; }

  .mvv-block,
  .mvv-block.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .mvv-block.reverse .mvv-label { order: 0; text-align: left; }
  .mvv-block.reverse .mvv-body { order: 0; }
  .mvv-label { position: relative; top: 0; }
  .mvv-num { font-size: 2.5rem; }

  .values-grid { grid-template-columns: 1fr; }

  .convenios-grid { grid-template-columns: 1fr; gap: 1rem; }
  .convenios-meta { flex-direction: column; align-items: flex-start; }

  .contacto-grid { grid-template-columns: 1fr; }
  .map-wrap iframe { height: 280px; }
  .social-row { flex-direction: column; }
  .social-link { width: 100%; justify-content: flex-start; }

  .precios-header { padding: 1.4rem 1.2rem; }
  .precios-titulo { font-size: 1rem; }
  .servicio-cabezal { padding: 0.75rem 1.2rem; font-size: 0.9rem; }
  .precio-fila { padding: 0.85rem 1.2rem; gap: 1rem; }
  .precios-footer,
  .precios-acciones { padding-left: 1.2rem; padding-right: 1.2rem; }
  .precios-notas li { font-size: 0.82rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title .line,
  .hero-meta, .hero-sub, .hero-cta, .hero-stats, .hero-gallery {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   DIRECTORIO DE SOCIOS — LAYOUT SPLIT
   ======================================== */
.dir-layout {
  display: grid;
  grid-template-columns: 45% 55%;
  margin-top: 104px;
  height: calc(100vh - 104px);
  overflow: hidden;
}
.dir-map-panel {
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.dir-map-head {
  flex-shrink: 0;
  padding: 1.25rem 1.5rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.dir-map-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dir-map-sub {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .45rem .75rem;
  color: var(--muted);
  font-size: .78rem;
  margin: 0;
}
.dir-map-body {
  flex: 1;
  min-height: 0;
  padding: 1rem 1.25rem 1.25rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.dir-map-hint {
  flex-shrink: 0;
  color: var(--muted);
  font-size: .75rem;
  margin: .25rem 0 0;
}
#dirMap {
  flex: 1;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.dir-list-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-left: 1px solid var(--line);
}
.dir-list-head {
  padding: 1.25rem 1.5rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.dir-list-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dir-list-filters {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .45rem .75rem;
}
.dir-list-search {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: .88rem;
  background: transparent;
  color: var(--dark);
  min-width: 0;
}
.dir-list-search::placeholder { color: #aab; }
.dir-list-select {
  border: none;
  border-left: 1px solid var(--line);
  padding: .2rem 0 .2rem .65rem;
  font-family: inherit;
  font-size: .82rem;
  background: transparent;
  outline: none;
  cursor: pointer;
  color: var(--cacf-blue);
  font-weight: 500;
  flex-shrink: 0;
}
.dir-list-meta {
  color: var(--muted);
  font-size: .75rem;
  margin: .5rem 0 0;
}
.dir-list-body { flex: 1; overflow-y: auto; }
.dir-list-body .dir-table-wrap { border-radius: 0; box-shadow: none; }
.dir-list-body .dir-table { min-width: 0; }
.dir-list-body .dir-table th,
.dir-list-body .dir-table td { padding: .75rem .9rem; font-size: .83rem; }

/* Filas clicables */
.dir-table tbody tr { cursor: pointer; }
.dir-table tbody tr:hover td { background: #f0f4fb; }

/* Row highlight from map click */
.dir-row-hl td { background: #fffbea !important; transition: background .3s; }


.dir-map-popup { font-family: inherit; font-size: .85rem; line-height: 1.45; }
.dir-map-popup strong { display: block; font-weight: 700; color: var(--dark); margin-bottom: .2rem; }
.dir-map-popup span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: .55rem; }
.dir-map-popup-btn {
  display: block; width: 100%;
  background: var(--cacf-blue); color: #fff;
  border: none; border-radius: 6px; padding: .35rem .7rem;
  font-size: .78rem; font-family: inherit; font-weight: 600;
  cursor: pointer; text-align: center;
}
.dir-map-popup-btn:hover { background: var(--cacf-blue-dark); }

@media (max-width: 900px) {
  .dir-layout { grid-template-columns: 1fr; height: auto; overflow: visible; margin-top: 80px; }
  .dir-map-body { height: 65vw; min-height: 260px; flex: none; padding: 1rem 1.25rem; }
  .dir-list-panel { height: 75vh; }
}

/* ========================================
   DIRECTORIO — HERO / BÚSQUEDA (legacy)
   ======================================== */
.dir-hero {
  position: relative;
  background: var(--cacf-blue-dark);
  background-image: url('img/kempes-noche.webp');
  background-size: cover;
  background-position: center 40%;
  padding: 8rem 1.5rem 5rem;
  text-align: center;
  color: #fff;
}
.dir-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,25,55,.75) 0%, rgba(10,25,55,.6) 100%);
}
.dir-hero-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.dir-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 .5rem;
}
.dir-hero-sub {
  opacity: .75;
  font-size: .95rem;
  margin: 0 0 2.2rem;
}
.dir-search-wrap {
  display: flex;
  gap: .6rem;
  background: #fff;
  border-radius: 100px;
  padding: .4rem .4rem .4rem 1.3rem;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.dir-search-wrap svg { flex-shrink: 0; color: var(--muted); }
.dir-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .92rem;
  font-family: inherit;
  background: transparent;
  color: var(--dark);
  min-width: 0;
}
.dir-search-input::placeholder { color: #aab; }
.dir-prov-select {
  border: none;
  outline: none;
  background: var(--cacf-blue);
  color: #fff;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 500;
  padding: .55rem 1.1rem;
  border-radius: 100px;
  cursor: pointer;
  flex-shrink: 0;
}

.dir-section {
  padding: 2.5rem 0 5rem;
  background: var(--bg);
}
.dir-meta {
  color: var(--muted);
  font-size: .82rem;
  margin-bottom: 1rem;
}
.dir-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.dir-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 640px;
}
.dir-table thead tr {
  background: var(--cacf-blue);
  color: #fff;
}
.dir-table th {
  padding: .9rem 1.1rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.dir-table td {
  padding: .95rem 1.1rem;
  font-size: .9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.dir-table tbody tr:last-child td { border-bottom: none; }
.dir-table tbody tr:hover { background: #f4f7ff; }
.dir-th-sort { cursor: pointer; user-select: none; transition: background .15s; }
.dir-th-sort:hover { background: var(--cacf-blue-dark); }
.dir-th-sort.is-sorted { background: var(--cacf-blue-dark); }
.dir-sort-icon { margin-left: .3rem; opacity: .55; font-size: .8em; font-style: normal; }
.dir-th-sort.is-sorted .dir-sort-icon { opacity: 1; }
.dir-cell-prov { font-weight: 600; }
.dir-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #eef3ff;
  color: var(--cacf-blue);
  border: 1px solid #c8d8f8;
  border-radius: 8px;
  padding: .38rem .9rem;
  font-size: .78rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
  white-space: nowrap;
}
.dir-btn:hover { background: var(--cacf-blue); color: #fff; border-color: var(--cacf-blue); }
.dir-empty-row td { text-align: center; padding: 4rem 1rem; color: var(--muted); }

/* Modal */
.dir-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,18,40,.55);
  z-index: 800;
}
.dir-backdrop.open { display: block; }
.dir-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 801;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.dir-modal.open { display: flex; }
.dir-modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  max-height: 90vh;
  overflow-y: auto;
}
.dir-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  transition: color .15s;
}
.dir-modal-close:hover { color: var(--dark); }
.dir-modal-empresa {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 .35rem;
  padding-right: 2rem;
}
.dir-modal-badge {
  display: inline-block;
  background: #eef3ff;
  color: var(--cacf-blue);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  padding: .22rem .9rem;
  margin-bottom: 1.6rem;
}
.dir-modal-rows { display: flex; flex-direction: column; gap: .55rem; }
.dir-modal-row { display: flex; gap: .75rem; align-items: flex-start; font-size: .88rem; }
.dir-modal-lbl { color: var(--muted); font-size: .78rem; min-width: 82px; padding-top: .1rem; }
.dir-modal-val { color: var(--dark); }
.dir-modal-val a { color: var(--cacf-blue); }
.dir-modal-val a:hover { text-decoration: underline; }
.dir-modal-loading { color: var(--muted); font-size: .9rem; padding: 1rem 0; }
.dir-modal-error { color: #c00; font-size: .9rem; }
.dir-modal-otros { font-size: .85rem; color: var(--muted); margin-top: 1rem; }

.dir-modal-equipo {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--line);
}
.dir-equipo-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dir-equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .875rem;
}
.dir-equipo-section {
  background: var(--bg);
  border-radius: 8px;
  padding: .875rem 1rem;
}
.dir-equipo-cat {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 0 0 .6rem;
}
.dir-equipo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .32rem .7rem;
  margin-bottom: .3rem;
  font-size: .82rem;
}
.dir-equipo-item:last-child { margin-bottom: 0; }
.dir-equipo-marca { font-weight: 600; color: var(--dark); }
.dir-equipo-modelo { color: var(--muted); font-style: italic; font-size: .78rem; }

@media (max-width: 640px) {
  .dir-search-wrap { flex-direction: column; border-radius: 14px; padding: .75rem; }
  .dir-prov-select { border-radius: 8px; width: 100%; }
  .dir-table th:first-child, .dir-table td:first-child { display: none; }
}

/* ========================================
   CALCULADORA TRANSPORTE MV
   ======================================== */
.transp-calc {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.transp-ref {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .6rem 1rem;
  color: var(--muted);
  font-size: .82rem;
}
.transp-form {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.transp-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
  min-width: 140px;
  max-width: 220px;
}
.transp-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.transp-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s;
}
.transp-input-wrap:focus-within { border-color: var(--cacf-blue); }
.transp-input {
  flex: 1;
  border: none;
  outline: none;
  padding: .65rem .75rem;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  min-width: 0;
}
.transp-unit {
  padding: 0 .75rem 0 .25rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  flex-shrink: 0;
}
.transp-btn {
  padding: .68rem 2rem;
  background: var(--cacf-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
  align-self: flex-end;
}
.transp-btn:hover { background: var(--cacf-blue-dark); }
.transp-result {
  background: linear-gradient(135deg, var(--cacf-blue) 0%, var(--cacf-blue-dark) 100%);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.transp-result-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
  font-weight: 700;
}
.transp-result-value {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}
.transp-result-sub {
  font-size: .78rem;
  opacity: .65;
  margin-top: .15rem;
}
@media (max-width: 640px) {
  .transp-calc { padding: 1.25rem 1.25rem 1.5rem; }
  .transp-form { flex-direction: column; align-items: stretch; }
  .transp-field { max-width: 100%; }
  .transp-btn { width: 100%; text-align: center; }
  .transp-result-value { font-size: 1.7rem; }
}

/* ========================================
   CALCULADORA COSTO MS
   ======================================== */
.cms-calc {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cms-toggle {
  display: flex;
  gap: .4rem;
}
.cms-toggle-btn {
  padding: .5rem 1.25rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.cms-toggle-btn.is-active {
  background: var(--cacf-blue);
  color: #fff;
  border-color: var(--cacf-blue);
}
.cms-toggle-btn:not(.is-active):hover {
  border-color: var(--cacf-blue);
  color: var(--cacf-blue);
}
.cms-results {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.cms-result-total {
  background: linear-gradient(135deg, var(--cacf-blue) 0%, var(--cacf-blue-dark) 100%);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.cms-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
.cms-result-card {
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.cms-card-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.cms-card-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}
@media (max-width: 860px) {
  .cms-result-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cms-calc { padding: 1.25rem 1.25rem 1.5rem; }
  .cms-result-grid { grid-template-columns: repeat(2, 1fr); }
  .cms-result-total { padding: 1.25rem; }
}

/* ========================================
   VIDEO SECTION
   ======================================== */
.video-section {
  padding: 5rem 0 4rem;
  background: #f5f7fb;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 2.5rem auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
}
.video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-footer {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.video-channel-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--cacf-blue);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}
.video-channel-link svg:first-child { width: 20px; height: 20px; flex-shrink: 0; }
.video-channel-link:hover { color: var(--cacf-blue-dark); }

/* ========================================
   PRENSA / MEDIA
   ======================================== */
.media-section { padding: 6rem 0 5rem; }
.media-intro {
  color: var(--muted);
  font-size: .95rem;
  margin-top: .75rem;
  max-width: 560px;
}
.media-intro a { color: var(--cacf-blue); text-decoration: none; }
.media-intro a:hover { text-decoration: underline; }

/* Featured card — Manual de marca */
.media-featured-wrap { margin: 2.5rem 0 3rem; }
.media-featured-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.media-featured-card:hover {
  border-color: var(--cacf-blue);
  box-shadow: 0 4px 20px rgba(47,87,159,.1);
}
.media-featured-icon { flex-shrink: 0; width: 48px; height: 48px; }
.media-featured-icon svg { width: 48px; height: 48px; }
.media-featured-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.media-featured-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cacf-blue);
}
.media-featured-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}
.media-featured-meta {
  font-size: .82rem;
  color: var(--muted);
}
.media-featured-action {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  background: var(--cacf-blue);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: .55rem 1.25rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s;
}
.media-featured-card:hover .media-featured-action { background: var(--cacf-blue-dark); }
.media-featured-action svg { width: 16px; height: 16px; }

/* Section subtitle */
.media-section-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

/* Logo cards grid */
.media-logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.media-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.media-card-preview {
  background: #f5f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 180px;
}
.media-card-preview img {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
}
.media-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.media-card-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
}
.media-card-desc {
  font-size: .82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.media-formats {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .25rem;
}
.media-fmt-btn {
  display: inline-block;
  padding: .3rem .75rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: .04em;
  transition: border-color .15s, color .15s, background .15s;
}
.media-fmt-btn:hover {
  border-color: var(--cacf-blue);
  color: var(--cacf-blue);
  background: rgba(47,87,159,.05);
}

@media (max-width: 700px) {
  .media-logos-grid { grid-template-columns: 1fr; }
  .media-featured-card { flex-direction: column; align-items: flex-start; }
  .media-featured-action { width: 100%; justify-content: center; }
}
