/* ============================================================
   CARIA — Design System
   Cámara Argentina de Robótica e Inteligencia Artificial
   ============================================================ */

/* ─── Variables ───────────────────────────────────────────── */
:root {
  --navy-950: #060C1A;
  --navy-900: #0D1B35;
  --navy-800: #152244;
  --navy-700: #1E2F5A;
  --navy-600: #2A3F72;
  --teal-600: #0891B2;
  --teal-500: #06A8C1;
  --teal-400: #0BBFD6;
  --teal-300: #22D3EE;
  --teal-100: #CFFAFE;
  --teal-50:  #ECFEFF;
  --white:    #FFFFFF;
  --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;

  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 12px rgba(13,27,53,.08);
  --shadow-md: 0 8px 24px rgba(13,27,53,.12);
  --shadow-lg: 0 16px 48px rgba(13,27,53,.16);

  --transition: 200ms ease;
  --transition-md: 300ms ease;

  --container: 1200px;
  --container-sm: 800px;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { line-height: 1.2; font-weight: 700; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--gray-600); line-height: 1.7; }

.text-navy   { color: var(--navy-900); }
.text-teal   { color: var(--teal-500); }
.text-muted  { color: var(--gray-500); }
.text-white  { color: var(--white); }
.text-center { text-align: center; }
.font-medium { font-weight: 500; }
.font-bold   { font-weight: 700; }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .9375rem;
  transition: all var(--transition-md);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--teal-500);
  color: var(--white);
  border-color: var(--teal-500);
}
.btn-primary:hover {
  background: var(--teal-400);
  border-color: var(--teal-400);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6,168,193,.35);
}
.btn-secondary {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-secondary:hover {
  background: var(--navy-900);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--teal-50);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,255,255,.2);
}
.btn-sm { padding: 8px 20px; font-size: .875rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-icon { padding: 10px; border-radius: var(--radius); }

/* ─── Badge ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.badge-teal   { background: var(--teal-50);  color: var(--teal-600); }
.badge-navy   { background: var(--navy-900); color: var(--white); }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); }
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-error   { background: #FEE2E2; color: #991B1B; }

/* ─── Navigation ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition-md);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo img { height: 40px; width: auto; }
.nav-logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -.02em;
}
.nav-logo-text span { color: var(--teal-500); }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--navy-900);
  background: var(--gray-100);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.nav-lang-btn:hover { background: var(--gray-200); color: var(--navy-900); }
.nav-lang-flag { font-size: 1rem; line-height: 1; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: all var(--transition-md);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    gap: 2px;
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 12px 16px; }
  .nav-hamburger { display: flex; }
  .nav-actions .btn-sm { display: none; }
}

/* ─── Page header (inner pages) ───────────────────────────── */
.page-header {
  background: var(--navy-900);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(11,191,214,.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-header h1 { color: var(--white); }
.page-header p   { color: rgba(255,255,255,.7); max-width: 600px; }
.page-header-badge { margin-bottom: 16px; }

/* ─── Section ────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 112px 0; }
.section-alt { background: var(--gray-50); }
.section-navy {
  background: var(--navy-900);
  color: var(--white);
}
.section-navy h2 { color: var(--white); }
.section-navy p  { color: rgba(255,255,255,.75); }

.section-header { margin-bottom: 56px; }
.section-header.text-center { text-align: center; }
.section-label {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--gray-500);
  max-width: 600px;
}
.section-header.text-center .section-subtitle { margin: 0 auto; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--navy-900);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-bg-glow-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(11,191,214,.2) 0%, transparent 65%);
  border-radius: 50%;
}
.hero-bg-glow-2 {
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6,168,193,.12) 0%, transparent 65%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
  max-width: 780px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(11,191,214,.15);
  border: 1px solid rgba(11,191,214,.3);
  border-radius: var(--radius-full);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--teal-300);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal-400);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.3); }
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}
.hero h1 .accent { color: var(--teal-400); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255,255,255,.72);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Stats bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--gray-200);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px;
  border-right: 1px solid var(--gray-200);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -.02em;
}
.stat-number .stat-accent { color: var(--teal-500); }
.stat-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .06em;
}
@media (max-width: 640px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid var(--gray-200); }
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-md);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-300);
}
.card-body { padding: 24px; }
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

/* ─── Socios grid ────────────────────────────────────────── */
.socios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.socio-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-md);
  text-align: center;
  position: relative;
}
.socio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-300);
}
.socio-card.featured {
  border-color: var(--teal-300);
  box-shadow: 0 0 0 3px rgba(11,191,214,.1);
}
.socio-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}
.socio-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--gray-50);
  padding: 8px;
  border: 1px solid var(--gray-100);
}
.socio-logo-placeholder {
  width: 80px;
  height: 80px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-400);
}
.socio-name {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.3;
}
.socio-rubro {
  font-size: .8125rem;
  color: var(--gray-500);
}

/* Logos carousel (home) */
.socios-logos-carousel {
  display: flex;
  align-items: center;
  gap: 40px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 16px 0;
}
.socios-logos-carousel::-webkit-scrollbar { display: none; }
.socio-logo-item {
  flex-shrink: 0;
  width: 140px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1) opacity(.6);
  transition: filter var(--transition-md);
}
.socio-logo-item:hover { filter: none; }
.socio-logo-item img { max-height: 48px; max-width: 120px; object-fit: contain; }

/* ─── Noticias grid ──────────────────────────────────────── */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.noticia-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-md);
}
.noticia-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-300);
}
.noticia-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-100);
}
.noticia-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-md);
}
.noticia-card:hover .noticia-card-img img { transform: scale(1.03); }
.noticia-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.noticia-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.noticia-cat {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal-600);
}
.noticia-date {
  font-size: .8125rem;
  color: var(--gray-400);
}
.noticia-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.noticia-excerpt {
  font-size: .9rem;
  color: var(--gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 20px;
}
.noticia-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--teal-600);
  transition: gap var(--transition);
}
.noticia-link:hover { gap: 10px; }
.noticia-link svg { width: 14px; height: 14px; }

/* ─── Sectores grid ──────────────────────────────────────── */
.sectores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.sector-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition-md);
}
.sector-card:hover {
  border-color: var(--teal-400);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.sector-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--teal-600);
}
.sector-icon svg { width: 24px; height: 24px; }
.sector-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.sector-desc {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.55;
}

/* ─── Beneficios grid ────────────────────────────────────── */
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.beneficio-card {
  padding: 28px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-md);
}
.beneficio-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(11,191,214,.4);
  transform: translateY(-3px);
}
.beneficio-icon {
  width: 52px;
  height: 52px;
  background: rgba(11,191,214,.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal-300);
}
.beneficio-icon svg { width: 26px; height: 26px; }
.beneficio-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.beneficio-desc {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

/* ─── Mission strip ──────────────────────────────────────── */
.mision-strip {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.mision-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 48px;
  padding: 56px 0;
}
@media (max-width: 768px) { .mision-inner { grid-template-columns: 1fr; gap: 24px; } }
.mision-label-col .badge { font-size: .75rem; }
.mision-text {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 500;
  color: var(--navy-900);
  line-height: 1.55;
  border-left: 3px solid var(--teal-400);
  padding-left: 24px;
}

/* ─── CTA Final ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(11,191,214,.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 96px 0;
}
.cta-inner h2 { color: var(--white); font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 16px; }
.cta-inner p  { color: rgba(255,255,255,.72); font-size: 1.125rem; max-width: 560px; margin: 0 auto 40px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-label .required { color: var(--teal-500); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .9375rem;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control::placeholder { color: var(--gray-400); }
.form-control:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(11,191,214,.15);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; cursor: pointer; }
.form-hint { font-size: .8125rem; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: .8125rem; color: #DC2626; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--teal-500);
  cursor: pointer;
  margin-top: 2px;
}
.form-check-label {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.5;
  cursor: pointer;
}

/* Alert */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: .9375rem;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info    { background: var(--teal-50); color: var(--teal-600); border: 1px solid var(--teal-100); }

/* ─── Tabs / Filters ─────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--navy-900); color: var(--navy-900); }
.filter-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0;
}

/* ─── Breadcrumbs ────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: .4; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-950);
  color: var(--white);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo img { height: 36px; }
.footer-logo-text { font-size: 1rem; font-weight: 800; color: var(--white); }
.footer-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.footer-social-link:hover {
  background: var(--teal-500);
  color: var(--white);
}
.footer-social-link svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--teal-300); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--teal-400); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal {
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-link {
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
  transition: color var(--transition);
}
.footer-bottom-link:hover { color: rgba(255,255,255,.7); }

/* ─── Hero section cinta institucional ─────────────────── */
.institutional-strip {
  background: var(--teal-500);
  padding: 12px 0;
}
.institutional-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--white);
}

/* ─── Socio perfil ───────────────────────────────────────── */
.socio-perfil-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 36px;
  padding: 40px 0;
}
@media (max-width: 600px) { .socio-perfil-header { grid-template-columns: 1fr; } }
.socio-perfil-logo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  background: var(--white);
  padding: 16px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.socio-perfil-info h1 { font-size: 1.75rem; margin-bottom: 8px; }
.socio-perfil-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.socio-perfil-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  color: var(--gray-500);
}
.socio-perfil-meta-item svg { width: 15px; height: 15px; color: var(--teal-500); }

/* ─── Noticia post ───────────────────────────────────────── */
.post-header { padding: 100px 0 48px; background: var(--navy-900); }
.post-header h1 { color: var(--white); font-size: clamp(1.5rem, 3.5vw, 2.5rem); max-width: 800px; }
.post-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.post-meta-item { font-size: .875rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 6px; }
.post-meta-item svg { width: 15px; height: 15px; color: var(--teal-400); }
.post-featured-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; }
.post-featured-img img { width: 100%; max-height: 500px; object-fit: cover; }
.post-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--gray-700);
  max-width: 720px;
}
.post-content h2 { margin: 36px 0 16px; color: var(--navy-900); }
.post-content h3 { margin: 28px 0 12px; color: var(--navy-900); }
.post-content p  { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 16px 0 20px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-left: 3px solid var(--teal-400);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy-900);
}
.post-content a { color: var(--teal-600); text-decoration: underline; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.post-tag {
  padding: 6px 14px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gray-600);
}

/* ─── Contact ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--teal-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal-600);
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-label { font-size: .8125rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.contact-info-value { font-size: .9375rem; color: var(--navy-900); font-weight: 500; }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-900);
  gap: 16px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--teal-500);
  transition: transform var(--transition-md);
}
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: .9375rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ─── Legal pages ────────────────────────────────────────── */
.legal-content h2 { font-size: 1.25rem; margin: 36px 0 14px; color: var(--navy-900); }
.legal-content h3 { font-size: 1.0625rem; margin: 24px 0 10px; color: var(--navy-800); }
.legal-content p  { margin-bottom: 16px; }
.legal-content ul { margin: 12px 0 16px 24px; }
.legal-content li { margin-bottom: 6px; color: var(--gray-600); }

/* ─── 404 ────────────────────────────────────────────────── */
.error-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.error-code {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gray-200);
  letter-spacing: -.04em;
  margin-bottom: 8px;
}
.error-title { font-size: 1.75rem; color: var(--navy-900); margin-bottom: 16px; }
.error-desc  { color: var(--gray-500); max-width: 440px; margin: 0 auto 32px; }

/* ─── Portal / Auth ──────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) { .auth-page { grid-template-columns: 1fr; } }
.auth-side-brand {
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}
.auth-side-brand::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(11,191,214,.2) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.auth-side-brand-logo { margin-bottom: 40px; position: relative; z-index: 1; }
.auth-side-brand-logo img { height: 48px; }
.auth-side-brand h2 {
  color: var(--white);
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.auth-side-brand p {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 360px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) { .auth-side-brand { display: none; } }
.auth-side-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px;
  background: var(--white);
}
@media (max-width: 600px) { .auth-side-form { padding: 48px 24px; } }
.auth-form-inner { max-width: 400px; width: 100%; }
.auth-mobile-logo { display: none; margin-bottom: 32px; }
@media (max-width: 768px) { .auth-mobile-logo { display: block; } }
.auth-title { font-size: 1.625rem; margin-bottom: 8px; }
.auth-subtitle { font-size: .9375rem; color: var(--gray-500); margin-bottom: 36px; }

/* ─── Portal dashboard ───────────────────────────────────── */
.portal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 72px);
}
@media (max-width: 900px) { .portal-layout { grid-template-columns: 1fr; } }
.portal-sidebar {
  background: var(--gray-50);
  border-right: 1px solid var(--gray-200);
  padding: 32px 16px;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
}
.portal-main { padding: 40px 48px; }
@media (max-width: 600px) { .portal-main { padding: 24px 20px; } }
.portal-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
}
.portal-nav-item:hover { background: var(--gray-200); color: var(--navy-900); }
.portal-nav-item.active { background: var(--navy-900); color: var(--white); }
.portal-nav-item svg { width: 18px; height: 18px; }
.portal-nav-sep { height: 1px; background: var(--gray-200); margin: 12px 0; }
.portal-welcome {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.portal-welcome::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(11,191,214,.2) 0%, transparent 65%);
  border-radius: 50%;
}
.portal-welcome h2 { color: var(--white); margin-bottom: 8px; position: relative; z-index: 1; }
.portal-welcome p  { color: rgba(255,255,255,.65); position: relative; z-index: 1; }
.portal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.portal-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.portal-card-label { font-size: .8125rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.portal-card-value { font-size: 1.5rem; font-weight: 800; color: var(--navy-900); }

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up .5s ease forwards; }
.animate-delay-1 { animation-delay: .1s; opacity: 0; }
.animate-delay-2 { animation-delay: .2s; opacity: 0; }
.animate-delay-3 { animation-delay: .3s; opacity: 0; }
.animate-delay-4 { animation-delay: .4s; opacity: 0; }

/* ─── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── Utility ────────────────────────────────────────────── */
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.pt-nav { padding-top: 72px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── Responsive overrides ───────────────────────────────── */
@media (max-width: 1024px) { :root { --container: 100%; } }
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-lg { padding: 80px 0; }
  .noticias-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .btn-lg { padding: 14px 28px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
