@font-face {
  font-family: 'PermanentMarker';
  src: url('../fonts/PermanentMarker-Regular.ttf') format('truetype');
}
/* ============================================================
   E.E.S.T. N°8 ALMAFUERTE — styles.css  (tema oscuro, estilo Nicepage)
   ============================================================ */

/* === VARIABLES === */
:root {
  --dark:           #0d0f14;
  --dark-2:         #141720;
  --dark-3:         #1a1d26;
  --dark-card:      #1e2130;
  --dark-card-2:    #252838;
  --accent:         #ffffff;
  --accent-2:       #e8e8e8;
  --accent-dim:     rgba(255,255,255,0.1);
  --accent-glow:    rgba(255,255,255,0.2);
  --white:          #ffffff;
  --off-white:      #f0ece4;
  --text-primary:   #f0ece4;
  --text-secondary: #a8a29e;
  --text-muted:     #6b6560;
  --border:         rgba(255,255,255,0.18);
  --border-dim:     rgba(255,255,255,0.08);
  --shadow-sm:      0 2px 12px rgba(0,0,0,0.4);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:      0 20px 60px rgba(0,0,0,0.6);
  --font-display:   'Playfair Display', Georgia, serif;
  --font-sans:      'DM Sans', system-ui, sans-serif;
  --font-mono:      'IBM Plex Mono', monospace;
  --radius:         15px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-custom {
  background: rgba(13,15,20,0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  padding: 1.1rem 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.3s ease;
}
.navbar-custom.scrolled {
  background: rgba(13,15,20,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  padding: 0.65rem 0;
}

.navbar-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255,255,255,0.3));
  transition: filter 0.3s, transform 0.3s;
  border-radius: 50%;
}
.navbar-logo:hover {
  filter: drop-shadow(0 3px 14px rgba(255,255,255,0.55));
  transform: scale(1.06);
}

.navbar-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--white) !important;
  line-height: 1.2;
}
.navbar-brand-text span { color: var(--accent); }
.navbar-brand-text tall {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  font-weight: 400;
  text-transform: uppercase;
  font-style: normal;
}

.nav-link-custom {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.9rem !important;
  transition: color 0.25s;
  position: relative;
}
.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.9rem; right: 0.9rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link-custom:hover { color: var(--accent) !important; }
.nav-link-custom:hover::after { transform: scaleX(1); }

.nav-bolsa {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 500;
  margin-left: 0.5rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.nav-bolsa::after { display: none; }
.nav-bolsa:hover {
  background: var(--accent) !important;
  color: var(--dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px var(--accent-glow);
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.3rem 0.6rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28201%2C169%2C110%2C0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: -10%;
  background:
    url('../img/hero-bg.jpg')
    center center / cover no-repeat;
  z-index: 0;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      165deg,
      rgba(13,15,20,0.92) 0%,
      rgba(13,15,20,0.55) 50%,
      rgba(13,15,20,0.85) 100%
    ),
    linear-gradient(
      to top,
      rgba(255,255,255,0.14) 0%,
      transparent 40%
    );
  z-index: 1;
}

.hero-line {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: heroFadeUp 0.8s 0.2s ease forwards;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 7rem);
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: heroFadeUp 0.9s 0.35s ease forwards;
}
.hero-title .accent-line {
  color: var(--accent);
  display: block;
  font-style: italic;
}
.hero-title .dim-line {
  color: rgba(240,236,228,0.4);
  font-size: 0.5em;
  font-weight: 400;
  font-style: normal;
  display: block;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(240,236,228,0.7);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: heroFadeUp 0.9s 0.5s ease forwards;
}

.hero-cta-group {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  opacity: 0;
  animation: heroFadeUp 0.9s 0.65s ease forwards;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  opacity: 0;
  animation: heroFadeUp 0.9s 0.85s ease forwards;
}
.stat-item {
  flex: 1;
  padding: 1.5rem 0;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-item .stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}
.stat-item .stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-badge-stack {
  display: flex; flex-direction: column; gap: 0.85rem;
  max-width: 300px;
  opacity: 0;
  animation: heroFadeLeft 0.9s 0.55s ease forwards;
}

.spec-badge {
  background: rgba(30,33,48,0.78);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s, box-shadow 0.25s;
}
.spec-badge:nth-child(2) { border-left-color: #a78bfa; }
.spec-badge:nth-child(3) { border-left-color: #34d399; }
.spec-badge:hover {
  transform: translateX(-5px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

.badge-icon { font-size: 1.75rem; line-height: 1; }
.badge-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}
.badge-sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: heroFadeUp 1s 1.2s ease forwards;
  opacity: 0;
}
.scroll-arrow {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s infinite;
}

/* ============================================================
   BOTONES GLOBALES
   ============================================================ */
.btn-primary-custom {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--dark);
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary-custom:hover {
  background: var(--accent-2);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  text-decoration: none;
}

.btn-secondary-custom {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-dim);
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-secondary-custom:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  text-decoration: none;
}

/* ============================================================
   SECTION LABELS & TITLES
   ============================================================ */
section { position: relative; z-index: 1; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0;
}

/* ============================================================
   ESPECIALIDADES
   ============================================================ */
#especialidades {
  padding: 7rem 0;
  background: var(--dark-2);
}

.spec-card {
  background: var(--dark-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  height: 100%;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  box-shadow: var(--shadow-sm);
}
.spec-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.spec-card-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border-dim);
}
.spec-icon-wrap { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1; }
.spec-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.spec-card-subtitle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.spec-card.informatica   { border-top: 3px solid var(--accent); }
.spec-card.construcciones { border-top: 3px solid #a78bfa; }
.spec-card.electromecanica { border-top: 3px solid #34d399; }

.spec-card-body { padding: 1.5rem 2rem; flex: 1; }
.spec-description { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.25rem; }
.spec-modules-title {
  font-family: var(--font-mono);
  font-size: 0.63rem; color: var(--text-muted);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.spec-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  padding: 0.2rem 0.55rem;
  margin: 0.2rem 0.2rem 0.2rem 0;
}
.spec-card-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-dim);
  display: flex; justify-content: space-between; align-items: center;
}
.spec-duration {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.spec-duration span { color: var(--accent); font-weight: 600; }
.spec-link {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap 0.2s, color 0.2s;
}
.spec-link:hover { gap: 0.7rem; color: var(--accent-2); }

/* ============================================================
   BOLSA DE TRABAJO
   ============================================================ */
#bolsa {
  padding: 7rem 0;
  background: var(--dark-3);
  position: relative;
  overflow: hidden;
}
#bolsa::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 100% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.bolsa-wrapper {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.bolsa-content { padding: 3.5rem; }

.bolsa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #34d399;
  border: 1px solid rgba(52,211,153,0.25);
  background: rgba(52,211,153,0.08);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.5rem;
}
.bolsa-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  animation: pulse 2s infinite;
}

.bolsa-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--white); line-height: 1.15; margin-bottom: 1rem;
}
.bolsa-description { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 2rem; }
.bolsa-features { display: flex; flex-direction: column; gap: 0.75rem; }
.bolsa-feature {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.9rem; color: var(--text-secondary);
}
.bolsa-feature i { color: var(--accent); font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }

.bolsa-cta-side {
  background: var(--dark-card-2);
  border-left: 1px solid var(--border-dim);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3.5rem 2.5rem;
  gap: 1.5rem;
}

.bolsa-terminal {
  background: #0a0c11;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 1.25rem;
  width: 100%;
  font-size: 0.78rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}
.terminal-bar { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.td-red    { background: #e03e3e; }
.td-yellow { background: #f5c518; }
.td-green  { background: #22c55e; }
.terminal-line { margin: 0.25rem 0; font-family: var(--font-mono); }
.terminal-line .prompt  { color: var(--accent); }
.terminal-line .cmd     { color: var(--off-white); }
.terminal-line .out     { color: #6b7280; }
.terminal-line .success { color: #34d399; }
.terminal-line .error   { color: #f87171; }

.btn-bolsa {
  font-family: var(--font-mono);
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent; color: #34d399;
  border: 1px solid rgba(52,211,153,0.4);
  padding: 1rem 2.5rem; border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  width: 100%; justify-content: center; max-width: 320px;
}
.btn-bolsa:hover {
  background: rgba(52,211,153,0.12);
  border-color: #34d399; color: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(52,211,153,0.2);
}

/* ============================================================
   INSTITUCIONAL
   ============================================================ */
#institucional { padding: 7rem 0; background: var(--dark-2); }

.info-card {
  background: var(--dark-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 2rem; height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.info-card-icon { font-size: 1.5rem; color: var(--accent); margin-bottom: 1.25rem; }
.info-card-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem;
  color: var(--white); margin-bottom: 0.6rem;
}
.info-card-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

/* ============================================================
   NOTICIAS
   ============================================================ */
#noticias { padding: 7rem 0; background: var(--dark-3); }

.news-card {
  background: var(--dark-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 2rem; height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex; flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.news-card-meta {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 1.1rem;
}
.news-tag {
  font-family: var(--font-mono); font-size: 0.63rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px; padding: 0.2rem 0.6rem;
}
.news-tag--informatica {
  background: rgba(167,139,250,0.1); color: #a78bfa;
  border-color: rgba(167,139,250,0.25);
}
.news-date {
  font-family: var(--font-mono); font-size: 0.63rem;
  letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase;
}
.news-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.2rem; color: var(--white);
  line-height: 1.25; margin-bottom: 0.75rem;
}
.news-excerpt {
  font-size: 0.875rem; color: var(--text-secondary);
  line-height: 1.65; flex: 1; margin-bottom: 1.5rem;
}
.news-link {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  align-self: flex-start; transition: gap 0.2s, color 0.2s;
}
.news-link:hover { gap: 0.7rem; color: var(--accent-2); }

/* ============================================================
   GALERÍA ACORDEÓN
   ============================================================ */
#galeria { padding: 6rem 0 0; background: var(--dark-2); }
#galeria .galeria-header { padding-bottom: 3rem; }

.acordeon-wrap {
  position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  width: 100vw; height: 500px;
  display: flex; overflow: hidden;
}
.acordeon-item {
  position: relative; flex: 1; min-width: 0;
  overflow: hidden; cursor: pointer;
  transition: flex 0.55s cubic-bezier(0.4,0,0.2,1);
  border-right: 1px solid rgba(255,255,255,0.12);
}
.acordeon-item:last-child { border-right: none; }
.acordeon-wrap:hover .acordeon-item       { flex: 0.3; }
.acordeon-wrap:hover .acordeon-item:hover { flex: 5; }

.acordeon-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1), filter 0.4s ease;
  filter: brightness(0.65) saturate(0.85);
}
.acordeon-item:hover .acordeon-img {
  transform: scale(1.05);
  filter: brightness(0.82) saturate(1.1);
}

.acordeon-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem;
  background: var(--dark-card);
  border-right: 1px solid var(--border-dim);
  transition: background 0.3s;
}
.acordeon-item:hover .acordeon-placeholder { background: var(--dark-card-2); }
.acordeon-placeholder-icon {
  font-size: 2.5rem; color: rgba(255,255,255,0.3);
  transition: color 0.3s, transform 0.3s; line-height: 1;
}
.acordeon-item:hover .acordeon-placeholder-icon {
  color: var(--accent); transform: scale(1.15);
}
.acordeon-placeholder-label {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); text-align: center; padding: 0 0.5rem;
  transition: color 0.3s;
}
.acordeon-item:hover .acordeon-placeholder-label { color: var(--accent); }

.acordeon-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,12,20,0.9) 0%, rgba(10,12,20,0.3) 45%, transparent 70%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem 1.75rem; opacity: 0; transition: opacity 0.35s ease;
}
.acordeon-item:hover .acordeon-overlay { opacity: 1; }
.acordeon-caption-tag {
  font-family: var(--font-mono); font-size: 0.63rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.4rem;
}
.acordeon-caption-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1rem,2vw,1.5rem);
  color: var(--white); line-height: 1.15;
}
.acordeon-num {
  position: absolute; top: 1rem; left: 1rem;
  font-family: var(--font-mono); font-size: 0.62rem;
  color: rgba(255,255,255,0.35); letter-spacing: 0.1em; z-index: 2;
}
.galeria-hint {
  text-align: center; font-family: var(--font-mono);
  font-size: 0.66rem; color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1.25rem 0 4.5rem;
}
.galeria-hint i { margin-right: 0.35rem; color: var(--accent); }

@media (max-width: 767px) {
  .acordeon-wrap { flex-direction: column; height: auto; }
  .acordeon-item {
    flex: none !important; height: 220px;
    border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .acordeon-item:last-child { border-bottom: none; }
  .acordeon-overlay { opacity: 1; }
}

/* ============================================================
   CONTACTO
   ============================================================ */
#contacto {
  padding: 7rem 0;
  background: var(--dark-3);
  border-top: 1px solid var(--border-dim);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border-dim);
  border: 1px solid var(--border-dim);
  border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.contact-cell {
  background: var(--dark-card); padding: 2rem;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: background 0.2s;
}
.contact-cell:hover { background: var(--dark-card-2); }
.contact-cell-icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.1rem; flex-shrink: 0;
}
.contact-cell-label {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted); letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 0.3rem;
}
.contact-cell-value { font-size: 0.9rem; color: var(--text-primary); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #080a0f;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-logo {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: rgba(240,236,228,0.65);
}
.footer-logo span { color: var(--accent); }
.footer-text {
  font-family: var(--font-mono); font-size: 0.68rem;
  color: rgba(255,255,255,0.25); letter-spacing: 0.06em;
}
.footer-logo-img {
  width: 34px; height: 34px; object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255,255,255,0.35));
  margin-right: 0.6rem; border-radius: 50%;
}
.footer-social { display: flex; gap: 0.5rem; }
.footer-social-link {
  width: 32px; height: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.35); font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-social-link:hover {
  color: var(--accent); border-color: var(--border);
  background: var(--accent-dim);
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeLeft {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.6; }
  50%     { opacity: 1; }
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 6px #34d399; }
  50%     { opacity: 0.5; box-shadow: 0 0 12px #34d399; }
}

.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   BOTÓN IR ARRIBA
   ============================================================ */
#btn-top {
  position: fixed; bottom: 2rem; right: 2rem;
  z-index: 999; width: 48px; height: 48px;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--dark-card); color: var(--accent);
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, background 0.2s, transform 0.2s;
  cursor: pointer;
}
#btn-top.visible { opacity: 1; pointer-events: auto; }
#btn-top:hover { background: var(--accent-dim); transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .bolsa-cta-side {
    border-left: none;
    border-top: 1px solid var(--border-dim);
    align-items: flex-start;
    padding: 2.5rem;
  }
  .bolsa-cta-side .bolsa-terminal,
  .bolsa-cta-side .btn-bolsa { max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hero-stats { gap: 0; }
  .stat-item { padding: 1rem 0; }
  .bolsa-content, .bolsa-cta-side { padding: 2rem; }
  .hero-visual { margin-top: 2rem; justify-content: center; }
  .hero-badge-stack { max-width: 100%; }
}

/* ============================================================
   TEMA CLARO
   ============================================================ */
body.theme-light {
  --dark:           #f5f7fa;
  --dark-2:         #edf0f5;
  --dark-3:         #e4e8f0;
  --dark-card:      #ffffff;
  --dark-card-2:    #f0f4f9;
  --accent:         #1565c0;
  --accent-2:       #1976d2;
  --accent-dim:     rgba(21,101,192,0.1);
  --accent-glow:    rgba(21,101,192,0.2);
  --white:          #0f1923;
  --off-white:      #1a2535;
  --text-primary:   #0f1923;
  --text-secondary: #3d5068;
  --text-muted:     #7a92a8;
  --border:         rgba(21,101,192,0.2);
  --border-dim:     rgba(0,0,0,0.08);
  --shadow-sm:      0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.1);
  --shadow-lg:      0 20px 60px rgba(0,0,0,0.12);
  background: var(--dark);
  color: var(--text-primary);
  .nav-link-custom { color: rgba(255,255,255,0.75) !important; }
}

body.theme-light .hero-bg {
  filter: brightness(0.55);
}

body.theme-light footer {
  background: #1a2535;
  color: rgba(255,255,255,0.7);
}
body.theme-light .footer-logo { color: rgba(255,255,255,0.8); }
body.theme-light .footer-text { color: rgba(255,255,255,0.4); }
body.theme-light .footer-social-link { color: rgba(255,255,255,0.5); }

body.theme-light .navbar-brand-text { color: var(--white) !important; }
body.theme-light .nav-bolsa { color: var(--accent) !important; border-color: var(--accent); }
body.theme-light .nav-bolsa:hover { background: var(--accent) !important; color: #fff !important; }

body.theme-light .btn-primary-custom { color: #fff; }
body.theme-light .btn-primary-custom:hover { color: #fff; }

body.theme-light .spec-card,
body.theme-light .info-card,
body.theme-light .news-card { border-color: rgba(0,0,0,0.1); }

body.theme-light .bolsa-wrapper { border-color: rgba(21,101,192,0.2); }

body.theme-light .section-title { color: var(--white); }
body.theme-light .spec-card-title,
body.theme-light .info-card-title,
body.theme-light .news-title,
body.theme-light .bolsa-title { color: var(--white); }

body.theme-light .acordeon-placeholder { background: #dde3ec; }
body.theme-light .acordeon-item:hover .acordeon-placeholder { background: #ccd6e8; }

/* ============================================================
   BOTÓN TOGGLE LIGHT/DARK
   ============================================================ */
#theme-toggle {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 999;
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--dark-card);
  color: var(--accent);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
#theme-toggle:hover {
  background: var(--accent-dim);
  transform: translateY(-3px);
}

/* Navbar: letras siempre blancas (fondo oscuro/imagen) */

.hero-lema {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: heroFadeUp 0.9s 0.5s ease forwards;
}

    /* Bot — colores fijos oscuros independiente del tema */
    #bot-window,
    #bot-window .bot-msg.bot .bot-msg-bubble,
    #bot-window #bot-options,
    #bot-window .bot-opt-btn {
      color-scheme: dark;
    }
    #bot-window { background: #1e2130 !important; border-color: rgba(255,255,255,0.1) !important; }
    #bot-window .bot-msg.bot .bot-msg-bubble { background: #252838 !important; color: #e2e8f0 !important; }
    #bot-window #bot-options { background: #1e2130 !important; border-color: rgba(255,255,255,0.06) !important; }
    #bot-window .bot-opt-btn { background: #252838 !important; color: #e2e8f0 !important; border-color: rgba(255,255,255,0.1) !important; }
    #bot-window .bot-opt-btn:hover { background: #2f3347 !important; }
    #bot-window .bot-result-card { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(99,102,241,0.15)) !important; }
    #bot-window .bot-result-desc { color: #a0aec0 !important; }
    #bot-window .bot-result-esp { color: #ffffff !important; }
    #bot-window .bot-msg-bubble { color: #e2e8f0 !important; }
