/* ==========================================================================
   FUNDACIÓN RAMÓN DÍAZ — 
   ========================================================================== */

/* --- CUSTOM PROPERTIES --- */
:root {
  --navy:        #113A5E;
  --navy-mid:    #113A5E;
  --gold:        #C9972E;
  --gold-light:  #E8C96A;
  --warm-white:  #F4F0EA;
  --off-white:   #FDFBF8;
  --white:       #FFFFFF;
  --text:        #1C1C1C;
  --text-muted:  #6B6B6B;
  --border:      #E2DAD0;

  --font-display: 'Alumni Sans', sans-serif;
  --font-serif:   'Alumni Sans', serif;
  --font-sans:    'Alumni Sans', sans-serif;

  --card-radius:  10px;
  --nav-height:   84px;

  --shadow-sm:  0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:  0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.14);

  --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-fast: 0.2s;
  --t-med:  0.4s;
  --t-slow: 0.7s;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  font-family: var(--font-serif);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- CONTAINERS --- */
.container {
  max-width: 1320px;
  padding: 0 48px;
  margin: 0 auto;
}
.container-narrow {
  max-width: 860px;
  padding: 0 48px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 20px; }
}

/* --- PAGE LOADER --- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.page-loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  animation: loaderPulse 1.4s var(--ease) infinite;
}
.loader-logo span { color: var(--gold); }
@keyframes loaderPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* --- NAVIGATION (clases fd-* para no pisar Bootstrap) --- */
.site-header {
  position: static;
  z-index: 900;
  padding: 18px 0;
  background: rgba(253, 251, 248, 0.97);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Contenedor interno del nav — flex row */
.fd-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px;
  width: 100%;
}

/* Logo */
.fd-logo {
  font-family: var(--font-display) !important;
  font-size: 42px !important;
  font-weight: 800 !important;
  color: var(--navy) !important;
  letter-spacing: -0.5px;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--t-fast);
}
.fd-logo:hover { color: var(--gold) !important; }

/* Contenedor de enlaces de navegación */
.fd-nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

/* Enlace individual — blanco por defecto, oscuro al hacer scroll */
.fd-nav-link {
  display: inline-block;
  font-family: var(--font-sans) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: var(--text) !important;
  padding: 8px 13px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
  line-height: 1 !important;
}
.fd-nav-link:hover,
.fd-nav-link.is-active {
  background: var(--navy) !important;
  color: var(--white) !important;
}

/* Botón búsqueda */
.fd-search-btn {
  width: 34px !important; height: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
}

/* CTA Contacto — estilo cuadrado con flecha (inspirado en referencia) */
.fd-nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 3px !important;
  font-family: var(--font-sans) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  text-decoration: none !important;
  transition: background var(--t-fast), transform var(--t-fast);
  margin-left: 10px;
}
.fd-nav-cta:hover { background: var(--navy) !important; color: var(--white) !important; }

/* Mobile toggle */
.fd-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
  z-index: 910;
  flex-shrink: 0;
}
.fd-nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy);
  transition: all var(--t-med) var(--ease);
  transform-origin: center;
}
.fd-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fd-nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.fd-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Responsive menú */
@media (max-width: 1100px) {
  .fd-nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 900;
  }
  .fd-nav-links.mobile-open { display: flex; }
  .fd-nav-links .fd-nav-link { font-size: 15px; color: rgba(255,255,255,0.7); padding: 14px 28px; border-radius: 4px; }
  .fd-nav-links .fd-nav-link:hover,
  .fd-nav-links .fd-nav-link.is-active { background: rgba(255,255,255,0.1); color: var(--white); }
  .fd-nav-links .fd-nav-cta { margin-left: 0; margin-top: 12px; }
  .fd-nav-toggle { display: flex; }
}

/* --- AI SEARCH OVERLAY --- */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(13,31,53,0.96);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-modal { width: 90%; max-width: 780px; position: relative; }
.search-modal-label {
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold);
  display: block; margin-bottom: 28px;
}
.search-input-wrap {
  display: flex; align-items: center; gap: 16px;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding-bottom: 20px; margin-bottom: 48px;
}
.search-input-wrap input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 300;
  color: var(--white);
  caret-color: var(--gold);
}
.search-input-wrap input::placeholder { color: rgba(255,255,255,0.2); }
.search-ai-badge {
  font-family: var(--font-sans); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--gold); border: 1px solid var(--gold);
  border-radius: 100px; padding: 6px 14px; white-space: nowrap;
}
.search-close {
  position: absolute; top: -60px; right: 0;
  background: transparent; border: none;
  color: rgba(255,255,255,0.4); font-size: 36px;
  cursor: pointer; line-height: 1;
  transition: color var(--t-fast);
}
.search-close:hover { color: var(--white); }
.search-results { max-height: 50vh; overflow-y: auto; }
.search-result-item {
  display: block; padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding-left var(--t-fast);
}
.search-result-item:hover { padding-left: 12px; }
.search-result-type {
  font-family: var(--font-sans); font-size: 10px;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--gold); margin-bottom: 6px;
}
.search-result-title {
  font-family: var(--font-display); font-size: 24px;
  color: var(--white); margin-bottom: 6px;
}
.search-result-excerpt { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; }
.search-ai-thinking {
  display: flex; align-items: center; gap: 14px;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-sans); font-size: 11px;
  text-transform: uppercase; letter-spacing: 2px;
}
.thinking-dots { display: flex; gap: 5px; }
.thinking-dots span {
  display: inline-block; width: 5px; height: 5px;
  background: var(--gold); border-radius: 50%;
  animation: thinkBlink 1.2s infinite;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes thinkBlink { 0%,60%,100% { opacity:0; } 30% { opacity:1; } }

/* --- HERO — Pantalla completa con foto de fondo --- */
.hero {
  min-height: 58vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}

/* Foto de fondo que cubre todo el viewport */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.42) contrast(1.1);
}
/* Gradiente oscuro de izquierda a derecha — como referencia */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(13,31,53,0.88) 0%,
    rgba(13,31,53,0.55) 50%,
    rgba(13,31,53,0.2) 100%
  );
}

/* Container del hero — posiciona el texto al fondo */
.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 72px;
  padding-top: 40px;
}

/* Texto del hero — posicionado abajo-izquierda */
.hero-text {
  display: flex;
  flex-direction: column;
  max-width: 680px;
}

.hero-eyebrow {
  font-family: var(--font-sans); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3.5px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.3s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 10vw, 148px);
  font-weight: 800;
  line-height: 0.86;
  color: var(--white);
  margin-bottom: 32px;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.45s forwards;
}
.hero-title .line-italic { font-style: italic; font-weight: 300; color: var(--gold); }
.hero-description {
  font-family: var(--font-sans);
  font-size: 20px; line-height: 1.5;
  color: rgba(255,255,255,0.55);
  margin-bottom: 52px;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.6s forwards;
}
.hero-actions {
  display: flex; gap: 32px; align-items: center;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.75s forwards;
}

/* Etiqueta "■ Bienvenido" en esquina superior izquierda del hero */
.hero-welcome {
  position: absolute;
  top: 32px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}
.hero-welcome-dot {
  display: block;
  width: 10px; height: 10px;
  background: var(--gold);
  flex-shrink: 0;
}
.hero-welcome-text {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.45);
}

/* Indicador lateral izquierdo (scroll) — oculto para evitar solapamiento */
.hero-side-indicator { display: none; }
.scroll-line { width: 48px; height: 1px; background: rgba(255,255,255,0.25); }
.scroll-text {
  font-family: var(--font-sans); font-size: 9px;
  text-transform: uppercase; letter-spacing: 2.5px; color: rgba(255,255,255,0.3);
}

/* --- BOTONES FLECHA — estilo cuadrado como en referencia --- */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  transition: gap var(--t-fast);
}
.btn-arrow:hover { gap: 26px; color: var(--white); }
.btn-arrow-icon {
  width: 46px; height: 46px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--white);
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}
.btn-arrow:hover .btn-arrow-icon { background: var(--white); color: var(--navy); }

/* Variante oscura (sobre fondo claro) */
.btn-arrow.on-light { color: var(--navy); }
.btn-arrow.on-light .btn-arrow-icon { background: var(--navy); color: var(--white); }
.btn-arrow.on-light:hover { color: var(--navy); }
.btn-arrow.on-light:hover .btn-arrow-icon { background: var(--gold); color: var(--white); }

/* Botón fantasma secundario en hero */
.btn-arrow-ghost {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.btn-arrow-ghost:hover { color: rgba(255,255,255,0.88); border-color: rgba(255,255,255,0.45); }

/* --- SECTION SIDE LABELS (patrón referencia: ■ Label) --- */
.section-labeled {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}
.side-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 8px;
  position: sticky;
  top: 24px;
}
.side-label::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.side-label span {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  line-height: 0.8;
}
/* Variante sobre fondo oscuro */
.side-label.on-dark::before { background: var(--gold); }
.side-label.on-dark span { color: rgba(255,255,255,0.4); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px; border-radius: 100px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  transition: all var(--t-med) var(--ease);
  cursor: pointer; border: none;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201,151,46,0.35); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--navy); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--gold);
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 0; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap var(--t-fast);
}
.btn-ghost:hover { gap: 14px; color: var(--gold); }

/* --- SECTION COMMONS --- */
.section     { padding: 100px 0; background: var(--white); }
.section-sm  { padding: 64px 0; }
.section-lg  { padding: 140px 0; }
.bg-warm     { background: var(--warm-white); }
.bg-navy     { background: var(--navy); }

/* Separador visual entre secciones blancas */
.section + .section { border-top: 1px solid var(--border); }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 64px; padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.section-label {
  display: block;
  font-family: var(--font-sans); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px; color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800; line-height: 0.92; color: var(--navy);
}
.section-title .italic { font-style: italic; font-weight: 300; }
.divider { width: 56px; height: 3px; background: var(--gold); margin-bottom: 28px; }

/* --- ABOUT STRIP — Fondo blanco, 2 columnas --- */
.about-strip {
  background: var(--white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Left col: label + split heading */
.about-heading {
  margin-top: 28px;
  line-height: 0.88;
}
.about-heading-strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(64px, 7.5vw, 112px);
  font-weight: 800;
  color: var(--navy);
  line-height: 0.9;
}
.about-heading-thin {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(64px, 7.5vw, 112px);
  font-weight: 800;
  color: var(--gold);
  line-height: 0.9;
}

/* Right col: text + button */
.about-text-col p {
  color: var(--text-muted);
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 20px;
}

/* --- STATS BAND — Franja navy separada --- */
.stats-band {
  background: var(--navy);
  padding: 72px 0;
}
.stats-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-item {
  border-left: 1px solid rgba(255,255,255,0.1);
  padding: 0 48px;
}
.stat-item:first-child { border-left: none; padding-left: 0; }
.stat-number {
  font-family: var(--font-display); font-size: clamp(52px, 5.5vw, 76px); font-weight: 800;
  color: var(--gold); line-height: 1; margin-bottom: 10px;
}
.stat-label {
  font-family: var(--font-sans); font-size: 10px;
  text-transform: uppercase; letter-spacing: 2.5px; color: rgba(255,255,255,0.35);
}

/* --- CARDS GRID --- */
.cards-grid   { display: grid; gap: 24px; }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border-radius: var(--card-radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-image {
  aspect-ratio: 16/10; overflow: hidden;
  background: var(--navy);
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.card:hover .card-image img { transform: scale(1.06); }
.card-body { padding: 30px; }
.card-tag {
  font-family: var(--font-sans); font-size: 17px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--gold);
  display: inline-block; margin-bottom: 12px;
}
.card-title {
  font-family: var(--font-display); font-size: 23px; font-weight: 700;
  color: var(--navy); line-height: 1.15; margin-bottom: 12px;
  transition: color var(--t-fast);
}
.card:hover .card-title { color: var(--gold); }
.card-excerpt { font-size: 18px; color: var(--text-muted); line-height: 1.2; margin-bottom: 22px; }
.card-meta {
  font-family: var(--font-sans); font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}

/* Conference card icon style */
.card-icon-wrap {
  width: 52px; height: 52px;
  background: var(--navy); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon-wrap i { color: var(--gold); font-size: 20px; }

/* --- MEDIA CARDS --- */
.media-card {
  background: var(--white); border-radius: var(--card-radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.media-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.media-embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}
.media-card-body { padding: 22px 26px; }
.media-type-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--warm-white); border-radius: 100px;
  padding: 4px 14px;
  font-family: var(--font-sans); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted);
  margin-bottom: 10px;
}
.media-type-badge.youtube { color: #CC0000; }
.media-type-badge.spotify { color: #1DB954; }
.media-card-title {
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  color: var(--navy); line-height: 1.2; margin-bottom: 6px;
}
.media-card-date {
  font-family: var(--font-sans); font-size: 11px; color: var(--text-muted);
}

/* Spotify embed */
.spotify-embed { border-radius: var(--card-radius); overflow: hidden; }
.spotify-embed iframe { width: 100%; border: none; border-radius: var(--card-radius); }

/* --- ARTICLES TABLE --- */
.articles-table { width: 100%; border-collapse: collapse; }
.articles-table thead th {
  font-family: var(--font-sans); font-size: 22px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted);
  padding: 14px 20px; text-align: left; border-bottom: 2px solid var(--border);
}
.articles-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--t-fast);
}
.articles-table tbody tr:hover { background: var(--warm-white); }
.articles-table td { padding: 18px 20px; vertical-align: middle; }
.article-row-title {
  font-family: var(--font-serif); font-size: 23px; font-weight: 700;
  color: var(--navy); transition: color var(--t-fast);
}
.article-row-title:hover { color: var(--gold); }
.article-row-source { font-family: var(--font-sans); font-size: 20px; color: var(--text-muted); }
.article-row-date   { font-family: var(--font-sans); font-size: 20px; color: var(--text-muted); white-space: nowrap; }
.article-row-pdf a {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 22px; color: var(--gold);
  transition: color var(--t-fast);
}
.article-row-pdf a:hover { color: var(--navy); }

/* --- CATEGORÍAS PILLS (articulos.php) --- */
.cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cat-pill {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  transition: all var(--t-fast);
}
.cat-pill:hover { border-color: var(--navy); color: var(--navy); }
.cat-pill.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* --- BARRA DE FILTROS (articulos.php) --- */
.filter-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-search-form {
  display: flex;
  flex: 1;
  min-width: 260px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
  background: var(--white);
}
.filter-search-form input {
  flex: 1;
  padding: 11px 24px;
  border: none;
  outline: none;
  font-family: var(--font-serif);
  font-size: 18px;
  background: transparent;
  color: var(--text);
}
.filter-search-form button {
  padding: 11px 22px;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  flex-shrink: 0;
  font-size: 18px;
  transition: background var(--t-fast);
}
.filter-search-form button:hover { background: var(--gold); }
.filter-select {
  padding: 11px 18px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color var(--t-fast);
  -webkit-appearance: auto;
  appearance: auto;
}
.filter-select:hover, .filter-select:focus { border-color: var(--navy); }

/* --- DROPDOWN CATEGORÍA COLAPSABLE --- */
.cat-collapse { position: relative; flex-shrink: 0; }
.cat-collapse-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--t-fast);
}
.cat-collapse-trigger:hover,
.cat-collapse.is-open .cat-collapse-trigger { border-color: var(--navy); }
.cat-collapse-trigger.has-value { color: var(--navy); font-weight: 600; border-color: var(--navy); }
.cat-collapse-arrow {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform var(--t-fast);
  flex-shrink: 0;
}
.cat-collapse.is-open .cat-collapse-arrow { transform: rotate(180deg); }
.cat-collapse-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 300;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.cat-collapse.is-open .cat-collapse-panel {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cat-collapse-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.cat-collapse-option:last-child { border-bottom: none; }
.cat-collapse-option:hover { background: var(--warm-white); color: var(--navy); }
.cat-collapse-option.is-selected { color: var(--navy); font-weight: 700; background: var(--warm-white); }
.cat-collapse-option.is-selected::after { content: '✓'; float: right; color: var(--gold); }

/* --- CUSTOM DROPDOWN (reemplaza select nativo) --- */
.fd-select {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.fd-select-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color var(--t-fast);
  white-space: nowrap;
}
.fd-select-trigger:hover,
.fd-select.is-open .fd-select-trigger { border-color: var(--navy); }
.fd-select-trigger-text {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.fd-select-arrow {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform var(--t-fast);
  flex-shrink: 0;
}
.fd-select.is-open .fd-select-arrow { transform: rotate(180deg); }
.fd-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 200;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  max-height: 300px;
  overflow-y: auto;
}
.fd-select.is-open .fd-select-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.fd-select-option {
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.fd-select-option:hover { background: var(--warm-white); color: var(--navy); }
.fd-select-option.is-selected { color: var(--navy); font-weight: 600; background: var(--warm-white); }

/* --- RESULTS INFO (articulos.php) --- */
.results-info {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.results-info .results-cat  { color: var(--navy); font-weight: 700; }
.results-info .results-tag  { color: var(--gold); font-weight: 700; }
.results-info .results-clear {
  margin-left: 12px;
  color: var(--text-muted);
  text-decoration: underline;
  font-size: 11px;
}
.results-info .results-clear:hover { color: var(--navy); }

/* --- CATEGORÍAS EN DETALLE DE ARTÍCULO (document.php) --- */
.doc-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.doc-cat-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: background var(--t-fast);
}
.doc-cat-badge:hover { background: var(--gold); color: var(--white); }

/* --- TAGS EN DETALLE DE ARTÍCULO (document.php) --- */
.doc-tags {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.doc-tags-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.doc-tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.doc-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.doc-tag:hover { border-color: var(--navy); color: var(--navy); }

/* --- TABLA ARTICULOS: wrapper --- */
.articles-table-wrap {
  background: var(--white);
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* --- CARGAR MÁS --- */
.load-more-wrap { text-align: center; margin-top: 40px; }

/* --- EMPTY STATE --- */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state-icon { font-size: 48px; color: var(--border); margin-bottom: 20px; display: block; }
.empty-state-title { font-family: var(--font-display); font-size: 28px; color: var(--navy); margin-bottom: 12px; }
.empty-state-desc  { color: var(--text-muted); margin-bottom: 24px; }

/* --- NEWSLETTER --- */
.newsletter-section { background: var(--navy); padding: 100px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.newsletter-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.newsletter-form {
  display: flex; border: 1.5px solid var(--navy); border-radius: 100px; overflow: hidden;
}
.newsletter-form input {
  flex: 1; padding: 16px 28px;
  background: transparent; border: none; outline: none;
  font-family: var(--font-serif); font-size: 15px; color: var(--text);
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form button {
  padding: 16px 32px;
  background: var(--navy); color: var(--white); border: none;
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  cursor: pointer; transition: background var(--t-fast);
  border-radius: 0 100px 100px 0; white-space: nowrap;
}
.newsletter-form button:hover { background: var(--gold); }
.newsletter-msg { margin-top: 12px; font-family: var(--font-sans); font-size: 13px; }
.newsletter-msg.success { color: #2e7d32; }
.newsletter-msg.error   { color: #c62828; }

/* --- FOOTER --- */
.site-footer { background: var(--navy); padding: 88px 0 44px; color: rgba(255,255,255,0.55); }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 64px; padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .logo { color: var(--white); font-size: 35px; margin-bottom: 18px; }
.footer-brand p { font-size: 18px; line-height: 1.5; max-width: 280px; }
.footer-nav h4 {
  font-family: var(--font-sans); font-size: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px; color: var(--white); margin-bottom: 24px;
}
.footer-nav li { margin-bottom: 16px; }
.footer-nav a { color: rgba(255,255,255,0.45); font-size: 20px; transition: color var(--t-fast); margin-left: -35px; }
.footer-nav a:hover { color: var(--gold); }
.social-links { display: flex; gap: 10px; margin-top: 28px; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.35); font-size: 15px;
  transition: all var(--t-fast);
}
.social-link:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-sans); font-size: 20px; color: rgba(255,255,255,0.25);
}

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed; bottom: 40px; right: 40px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--white); border: none;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  opacity: 0; transform: translateY(16px);
  transition: all var(--t-med) var(--ease);
  z-index: 100; cursor: pointer; box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); transform: translateY(-3px); }

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal.visible p {  font-size: 20px !important; line-height:1.5 !important;}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- PAGE HEADER (inner pages) --- */
.page-hero {
  padding: 64px 0 56px;
  background: var(--navy);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.page-hero-label {
  font-family: var(--font-sans); font-size: 20px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px; color: var(--gold);
  display: block; margin-bottom: 0px;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 800; line-height: 0.9; color: var(--white);
}
.page-hero-title em { font-style: italic; font-weight: 300; color: var(--gold); }
.page-hero-desc { font-size: 24px; color: rgba(255,255,255,0.6); line-height: 1.8; max-width: none; margin-top: 28px; }

/* --- FILTER BAR --- */
.filter-bar {
  background: var(--white); border-radius: 100px;
  padding: 8px; display: flex; gap: 4px;
  border: 1px solid var(--border); width: fit-content;
  margin-bottom: 48px;

}
.filter-btn-item {
  padding: 10px 22px; border-radius: 100px; cursor: pointer;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted);
  transition: all var(--t-fast); border: none; background: transparent;
}
.filter-btn-item:hover { color: var(--navy); background: var(--warm-white); }
.filter-btn-item.active { background: var(--navy); color: var(--white); }

/* --- PAGINATION --- */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 64px;
}
.pagination a, .pagination span {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  color: var(--text-muted); border: 1px solid var(--border);
  transition: all var(--t-fast);
}
.pagination a:hover { border-color: var(--navy); color: var(--navy); }
.pagination .active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* --- SINGLE CONTENT PAGE --- */
.content-page {
  max-width: 900px;
  margin: 60px auto 80px;
  padding: 0 48px;
}
.content-page-header { margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.content-page-type {
  font-family: var(--font-sans); font-size: 20px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px; color: var(--gold);
  display: block; margin-bottom: 16px;
}
.content-page-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800; line-height: 0.92; color: var(--navy);
  margin-bottom: 20px;
}
.content-page-meta {
  font-family: var(--font-sans); font-size: 17px; color: var(--text-muted);
  display: flex; gap: 24px; flex-wrap: wrap;
}
.content-page-meta span { display: flex; align-items: center; gap: 8px; }
.content-page-body { font-size: 1.1rem; line-height: 1.9; color: #2a2a2a; }
.content-page-body p { margin-bottom: 1.4em; }
.content-page-body h2 { font-family: var(--font-display); font-size: 2em; color: var(--navy); margin: 1.8em 0 0.8em; }
.content-page-body h3 { font-family: var(--font-display); font-size: 1.5em; color: var(--navy); margin: 1.5em 0 0.7em; }
.content-page-image {
  width: 100%; border-radius: var(--card-radius);
  overflow: hidden; margin-bottom: 48px; aspect-ratio: 16/7;
}
.content-page-image img { width: 100%; height: 100%; object-fit: cover; }

/* --- DOCUMENT/ARTICLE DETAIL --- */
.article-page-container {
  max-width: 1050px;
  margin: 48px auto 80px;
  padding: 0 48px;
}
.article-header-section { margin-bottom: 48px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.article-main-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800; line-height: 0.92; color: var(--navy);
  margin-bottom: 20px;
}
.article-meta { font-family: var(--font-sans); font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.article-author { font-style: italic; }
.btn-download-article {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: var(--white);
  padding: 12px 28px; border-radius: 100px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  transition: all var(--t-fast);
}
.btn-download-article:hover { background: var(--gold); color: var(--white); }
.article-copete {
  font-style: italic; font-size: 1.2em; line-height: 1.75;
  border-bottom: 1px solid var(--border);
  padding-bottom: 36px; margin-bottom: 36px; color: #3a3a3a;
}
.article-content-text { font-size: 1.1rem; line-height: 1.9; color: #2a2a2a; }
.article-content-text p { margin-bottom: 1.4em; }
.article-content-text a { color: var(--gold); text-decoration: underline; }
.article-content-text.multi-column {
  column-count: 2; column-gap: 44px; text-align: justify; margin-top: 36px;
}
.document-tags-below-content { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.section-title-small { font-family: var(--font-sans); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 12px; }
.tags-list .tag-item {
  display: inline-block;
  background: var(--warm-white); color: var(--text-muted);
  padding: 5px 14px; margin: 4px 4px 4px 0; border-radius: 100px;
  font-family: var(--font-sans); font-size: 11px; border: 1px solid var(--border);
  transition: all var(--t-fast);
}
.tags-list .tag-item:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pdf-preview-section { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.pdf-preview-section .section-title {
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 20px;
}
.pdf-frame-article { width: 100%; height: 640px; border: 1px solid var(--border); border-radius: var(--card-radius); }
.article-page-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.btn-back-main {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-family: var(--font-sans); font-size: 16px;
  text-transform: uppercase; letter-spacing: 1.5px; transition: color var(--t-fast);
}
.btn-back-main:hover { color: var(--navy); }

/* --- CONTACT PAGE --- */
.contact-form-wrapper .form-control-custom {
  padding: 15px 24px; background: var(--white);
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: var(--font-serif); font-size: 15px; color: var(--text);
  width: 100%; transition: border-color var(--t-fast);
}
.contact-form-wrapper .form-control-custom:focus { outline: none; border-color: var(--navy); }
.contact-form-wrapper textarea.form-control-custom { padding-top: 18px; }
.btn-submit-custom {
  background: var(--navy); color: var(--white); border: none;
  border-radius: 100px; padding: 16px 52px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; cursor: pointer;
  transition: all var(--t-med);
}
.btn-submit-custom:hover { background: var(--gold); transform: translateY(-2px); }
.contact-form-wrapper .input-group { position: relative; }
.contact-form-wrapper .input-icon {
  position: absolute; top: 50%; left: 20px; transform: translateY(-50%);
  color: var(--text-muted); font-size: 15px;
}
.contact-form-wrapper textarea ~ .input-icon { top: 22px; transform: none; }
.privacy-check-custom { font-family: var(--font-sans); font-size: 13px; color: var(--text-muted); }
.privacy-check-custom a { color: var(--navy); text-decoration: underline; }

/* --- ALERTS --- */
.alert { padding: 16px 24px; border-radius: 10px; margin-bottom: 24px; font-family: var(--font-sans); font-size: 14px; }
.alert-danger  { color: #7f1d1d; background: #fef2f2; border: 1px solid #fca5a5; }
.alert-success { color: #14532d; background: #f0fdf4; border: 1px solid #86efac; }

/* ==========================================================================
   COMPATIBILIDAD CON PÁGINAS ORIGINALES
   Clases del diseño anterior que siguen usándose en nosotros.php,
   ramondiaz.php, contacto.php, document.php y login.php
   ========================================================================== */

/* Título principal de sección (usado en nosotros, contacto, ramondiaz) */
.main-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.9;
  color: var(--navy);
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Texto general de sección */
.section-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Subtítulos de sección (nosotros, ramondiaz) */
.section-subtitle {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
}
.section-subtitle-color {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  padding-top: 40px;
  margin-bottom: 20px;
}

/* Texto destacado grande (nosotros, ramondiaz) */
.about-destacados {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 20px;
}

/* Contenedores de sección */
.content-section   { padding: 60px 0; }
.bottom-section    { padding: 60px 0; background: var(--warm-white); }

/* Imagen hero dentro de páginas internas */
.hero-image {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
  border-radius: var(--card-radius);
}

/* Botón genérico outline (document.php, etc.) */
.btn-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--white);
  border: 1.5px solid var(--navy);
  border-radius: 100px;
  cursor: pointer;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: all var(--t-fast);
}
.btn-custom:hover {
  background: var(--navy);
  color: var(--white);
}

/* Envoltorio de página de artículo (document.php) */
.page-article {
  padding-top: 20px;
  padding-bottom: 80px;
}

/* Contenido principal del artículo */
.article-main-content {
  margin-top: 32px;
}

/* Mensaje sin contenido */
.no-content-message {
  background: var(--warm-white);
  padding: 20px 24px;
  border-radius: var(--card-radius);
  border-left: 4px solid var(--gold);
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

/* Bootstrap override: que nuestros colores primen sobre Bootstrap */
.btn.btn-primary, a.btn-primary {
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
}
.btn.btn-primary:hover, a.btn-primary:hover {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
}

/* ------------------------------------------------------------------ */

/* --- ABOUT / NOSOTROS PAGE --- */
.page-quienes-somos .about-title {
  font-family: var(--font-display); font-weight: 800; font-size: 4rem;
  color: var(--navy); text-transform: uppercase; margin-bottom: 3rem;
}
.page-quienes-somos .about-subtitle { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--navy); text-transform: uppercase; margin-bottom: 1.25rem; }
.page-quienes-somos .about-text { font-size: 1.05rem; line-height: 1.85; color: #444; }
.page-quienes-somos .full-width-image { width: 100%; height: 420px; object-fit: cover; border-radius: var(--card-radius); }
.hero-image-nosotros { width: 100%; height: auto; max-height: 360px; object-fit: cover; border-radius: var(--card-radius); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  /* Hero — pantalla completa, ajustar padding inferior */
  .hero-container { padding-bottom: 64px; }
  .hero-text { max-width: 100%; }
  .hero-side-indicator { display: none; }

  /* About grid: de 2 cols a 1 col */
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-grid .side-label { display: flex; }
  /* Stats band: de 4 cols a 2x2 */
  .stats-band-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stats-band .stat-item:nth-child(odd) { border-left: none; padding-left: 0; }
  .stats-band .stat-item:nth-child(even) { padding-left: 40px; }
  .stats-band .stat-item { padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stats-band .stat-item:nth-child(3), .stats-band .stat-item:nth-child(4) { border-bottom: none; padding-bottom: 0; }

  /* Section labels: ocultar columna lateral */
  .section-labeled { grid-template-columns: 1fr; gap: 24px; }
  .side-label { display: none; }

  /* Cards */
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Newsletter */
  .newsletter-inner { grid-template-columns: 1fr; gap: 40px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Inner pages */
  .article-page-container, .content-page { padding: 0 24px; }
}

@media (max-width: 768px) {
  /* Hero — reducir título en mobile */
  .hero-title { font-size: clamp(56px, 14vw, 96px); }
  .hero-container { padding-bottom: 48px; }
  .hero-description { font-size: 14px; margin-bottom: 36px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-welcome { left: 20px; }
  /* Contacto — grid a 1 col */
  .contacto-grid { grid-template-columns: 1fr !important; gap: 48px !important; }

  /* About */
  .about-heading-strong, .about-heading-thin {
    font-size: clamp(48px, 12vw, 80px);
  }

  /* Stats band */
  .stats-band { padding: 48px 0; }
  .stats-band-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }

  /* Grids */
  .cards-grid-3, .cards-grid-4, .cards-grid-2 { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* Sections */
  .section { padding: 64px 0; }
  .section-lg { padding: 88px 0; }

  /* Article */
  .article-content-text.multi-column { column-count: 1; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }

  /* UI elements */
  .back-to-top { bottom: 24px; right: 24px; }
}
