/* ============================================================
   SHARED.CSS — Estilos compartidos para todo el sitio
   Modifica las variables en :root para cambiar colores globalmente
   ============================================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   VARIABLES GLOBALES — CAMBIA AQUÍ LOS COLORES DEL SITIO
   ============================================================ */
:root {
  --navy:       #1a2a4a;   /* Azul institucional principal */
  --navy-dark:  #0f1d35;   /* Azul muy oscuro (footer) */
  --navy-mid:   #253a5e;   /* Azul intermedio */
  --gold:       #c8a435;   /* Dorado principal */
  --gold-light: #e8c860;   /* Dorado claro */
  --gold-pale:  #fdf6e3;   /* Fondo dorado muy suave */
  --white:      #ffffff;
  --gray-light: #f4f6f9;
  --gray-mid:   #e0e4ea;
  --gray-text:  #5a6070;
  --black:      #111827;

  /* TIPOGRAFÍA — Cambia los nombres de fuente si lo deseas */
  --font-head: 'Playfair Display', serif;   /* Títulos elegantes */
  --font-ui:   'Montserrat', sans-serif;    /* Menú, botones, etiquetas */
  --font-body: 'Source Serif 4', serif;     /* Texto de lectura */

  /* ESPACIADOS */
  --section-v: 80px;
  --section-h: 60px;
  --radius:    8px;
  --radius-lg: 14px;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.7;
}

/* ============================================================
   BARRA SUPERIOR
   ============================================================ */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 60px;
  font-family: var(--font-ui);
  font-size: 12px;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar .socials { display: flex; gap: 3px; }
.top-bar .socials a {
  color: var(--gold-light);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  transition: background .2s, color .2s;
  font-size: 11px;
}
.top-bar .socials a:hover { background: var(--gold); color: var(--navy); }
.top-bar .contact-info { display: flex; gap: 22px; opacity: .8; flex-wrap: wrap; }
.top-bar .contact-info span { display: flex; align-items: center; gap: 5px; }

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  padding: 16px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 20px rgba(0,0,0,.09);
}
.logo-wrap { display: flex; flex-direction: column; gap: 1px; }
.logo-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -.3px;
}
.logo-name span { color: var(--gold); }
.logo-sub {
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--gray-text);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.header-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.partner-logo {
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: 5px;
  padding: 5px 13px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: border-color .2s;
}
.partner-logo:hover { border-color: var(--gold); }
.header-btn {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.header-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ============================================================
   NAVEGACIÓN PRINCIPAL
   ============================================================ */
nav {
  background: var(--navy);
  position: sticky;
  top: 81px;
  z-index: 998;
  box-shadow: 0 3px 14px rgba(0,0,0,.22);
}
nav > ul { display: flex; padding: 0 60px; flex-wrap: wrap; }
nav > ul > li { position: relative; }
nav > ul > li > a {
  display: block;
  color: rgba(255,255,255,.88);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  padding: 14px 16px;
  letter-spacing: .8px;
  text-transform: uppercase;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
nav > ul > li > a:hover,
nav > ul > li > a.active,
nav > ul > li:hover > a {
  background: var(--gold);
  color: var(--navy);
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  border-top: 3px solid var(--gold);
  z-index: 1000;
}
nav > ul > li:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 20px;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--gray-mid);
  transition: background .15s, color .15s, padding-left .15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--gray-light); color: var(--gold); padding-left: 26px; }

/* ============================================================
   BOTONES REUTILIZABLES
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 4px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all .22s;
  cursor: pointer;
  border: none;
}
.btn-gold  { background: var(--gold); color: var(--navy); }
.btn-gold:hover  { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(200,164,53,.35); }
.btn-navy  { background: var(--navy); color: var(--white); }
.btn-navy:hover  { background: var(--navy-mid); transform: translateY(-2px); }
.btn-outline-navy { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-outline-white { background: transparent; border: 2px solid rgba(255,255,255,.7); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }

/* ============================================================
   PAGE HERO (encabezado interior de páginas)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 72px 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(200,164,53,.1);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -50px; left: 30%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(200,164,53,.06);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; max-width: 700px; }
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold-light); }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 17px;
  line-height: 1.7;
  opacity: .85;
  max-width: 580px;
}
.page-hero .gold-line {
  width: 60px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 20px 0;
}

/* ============================================================
   SECCIÓN GENÉRICA
   ============================================================ */
.section {
  padding: var(--section-v) var(--section-h);
}
.section-alt { background: var(--gray-light); }
.section-dark { background: var(--navy); color: var(--white); }
.section-gold { background: var(--gold-pale); }

.section-header { margin-bottom: 48px; }
.section-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.section-label.dark { color: var(--gold-light); }
.section-title {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 52px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
}
.section-title.white { color: var(--white); }
.section-title.white::after { background: var(--gold-light); }
.section-title.center { text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }
.section-desc {
  font-size: 16px;
  color: var(--gray-text);
  max-width: 640px;
  line-height: 1.75;
  margin-top: 4px;
}
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 12px auto 0; }

/* ============================================================
   CARDS GENÉRICAS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  transition: transform .28s, box-shadow .28s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,.13);
}
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.card-body { padding: 24px; }
.card-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
}
.card-text { font-size: 14px; color: var(--gray-text); line-height: 1.65; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: color .2s, gap .2s;
}
.card-link:hover { color: var(--gold); gap: 9px; }

/* ============================================================
   GRIDS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-align-center { align-items: center; }

/* ============================================================
   ANIMACIONES DE SCROLL
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.72);
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 60px 44px;
}
.footer-brand .logo-name { color: var(--white); font-size: 20px; margin-bottom: 4px; }
.footer-brand .logo-sub { margin-bottom: 18px; }
.footer-brand p { font-size: 13.5px; line-height: 1.75; opacity: .78; margin-bottom: 20px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 10px; font-size: 13px; align-items: flex-start; line-height: 1.5; }
.footer-contact-icon { color: var(--gold); font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.footer-social { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 18px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.09);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  color: var(--white);
  transition: background .2s, transform .2s;
}
.social-btn:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200,164,53,.22);
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: rgba(255,255,255,.58); font-size: 13px; transition: color .2s, padding-left .2s; display: block; }
.footer-col ul li a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-bottom {
  background: #060e1d;
  text-align: center;
  padding: 16px 60px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  color: rgba(255,255,255,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  :root { --section-h: 36px; }
  .top-bar, header, nav > ul, .footer-main, .footer-bottom { padding-left: 28px; padding-right: 28px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --section-v: 52px; --section-h: 20px; }
  .top-bar { padding: 6px 16px; }
  header { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  nav > ul { padding: 0 8px; }
  nav > ul > li > a { padding: 11px 10px; font-size: 11px; }
  .page-hero { padding: 48px 20px; }
  .page-hero h1 { font-size: 30px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; padding: 40px 20px; gap: 28px; }
  .footer-bottom { padding: 14px 20px; }
}


/* ============================================================
   ESPECIALIDADES.CSS — Estilos específicos de especialidades.html
   Se enlaza DESPUÉS de shared.css:
   <link rel="stylesheet" href="shared.css"/>
   <link rel="stylesheet" href="especialidades.css"/>
   ============================================================ */


/* ============================================================
   LOGO CON IMAGEN — Estilos para el header personalizado
   Ajusta .logo-img según el tamaño real de tu imagen
   ============================================================ */
.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  height: 52px;          /* Cambia la altura según tu logo */
  width: auto;
  object-fit: contain;
  display: block;
}

/* Nombre del liceo junto al logo */
.logo-container h1 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

/* Si el logo no carga, igual se ve bien el texto */
.logo-container h1 span {
  color: var(--gold);
}


/* ============================================================
   TABS DE NAVEGACIÓN ENTRE ESPECIALIDADES
   La barra oscura con las 3 pestañas
   ============================================================ */
.esp-tabs {
  display: flex;
  background: var(--navy-dark);
  padding: 0 60px;
  position: sticky;
  top: 81px;            /* Ajusta si tu nav tiene otra altura */
  z-index: 90;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
  overflow-x: auto;     /* Scroll horizontal en pantallas pequeñas */
  scrollbar-width: none;
}
.esp-tabs::-webkit-scrollbar { display: none; }

/* Cada pestaña individual */
.esp-tab {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  padding: 14px 26px;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap;
  user-select: none;
}
.esp-tab:hover {
  color: var(--white);
  background: rgba(255,255,255,.05);
}
/* Pestaña activa */
.esp-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}


/* ============================================================
   CONTENIDO DE CADA ESPECIALIDAD
   Solo la pestaña activa es visible
   ============================================================ */
.esp-content {
  display: none;
  animation: fadeContent .35s ease;
}
.esp-content.active {
  display: block;
}
@keyframes fadeContent {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   HERO DE ESPECIALIDAD
   Encabezado grande con imagen de fondo y texto superpuesto
   ============================================================ */
.esp-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  padding: 80px 60px;
  overflow: hidden;
  color: var(--white);
}

/* Gradiente oscuro que se superpone a la imagen */
.esp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Color del gradiente por especialidad — Cambia si quieres otros colores */
.esp-hero-prog::before {
  background: linear-gradient(135deg, rgba(15,29,53,.97) 38%, rgba(0,60,150,.65) 100%);
}
.esp-hero-quim::before {
  background: linear-gradient(135deg, rgba(15,29,53,.97) 38%, rgba(0,100,60,.65) 100%);
}
.esp-hero-mine::before {
  background: linear-gradient(135deg, rgba(15,29,53,.97) 38%, rgba(100,45,0,.65) 100%);
}

/* Imagen de fondo del hero */
.esp-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 6s ease;
}
.esp-hero:hover .esp-hero-bg {
  transform: scale(1.03); /* Leve zoom al pasar el cursor */
}

/* ── Imágenes de fondo — CAMBIA LAS URLs POR TUS FOTOS ── */
.esp-hero-prog .esp-hero-bg {
  background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1400&q=80');
}
.esp-hero-quim .esp-hero-bg {
  background-image: url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?w=1400&q=80');
}
.esp-hero-mine .esp-hero-bg {
  background-image: url('https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?w=1400&q=80');
}

/* Contenido sobre el hero (texto + stats) */
.esp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

/* Badge pequeño sobre el título: "💻 Técnico en" */
.esp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 2px;
  margin-bottom: 22px;
}

/* Título principal del hero */
.esp-hero-inner h1 {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.06;
  margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}

/* Descripción bajo el título */
.esp-hero-inner > p {
  font-size: 17px;
  line-height: 1.72;
  opacity: .87;
  margin-bottom: 32px;
  max-width: 560px;
}

/* Estadísticas inline (duración, empleabilidad, cupos) */
.esp-stats-inline {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.esp-stat-mini {
  text-align: center;
}
.esp-stat-mini strong {
  display: block;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 5px;
}
.esp-stat-mini span {
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  opacity: .65;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}


/* ============================================================
   PLAN DE ESTUDIOS — Grilla de 3 columnas por nivel
   ============================================================ */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

/* Tarjeta de cada nivel (2°, 3°, 4° Medio) */
.plan-nivel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.plan-nivel:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

/* Encabezado del nivel */
.plan-nivel-header {
  background: var(--navy);
  color: var(--white);
  padding: 18px 24px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}
.plan-nivel-header span {
  color: var(--gold-light);
  font-weight: 600;
}

/* Lista de asignaturas */
.plan-nivel-body {
  padding: 18px 22px;
}
.plan-asignatura {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-mid);
  font-size: 13.5px;
  color: var(--black);
  line-height: 1.4;
}
.plan-asignatura:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
/* Punto dorado antes del nombre */
.plan-asignatura::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
/* Horas semanales alineadas a la derecha */
.plan-horas {
  font-family: var(--font-ui);
  font-size: 11px;
  color: #aaa;
  margin-left: auto;
  font-weight: 600;
  white-space: nowrap;
}


/* ============================================================
   SALIDAS LABORALES — Grilla de 4 tarjetas oscuras
   ============================================================ */
.salidas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

/* Tarjeta de salida laboral */
.salida-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-bottom: 3px solid var(--gold);
  transition: background .2s, transform .25s, box-shadow .25s;
}
.salida-card:hover {
  background: var(--navy-mid);
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}
.salida-icon {
  font-size: 36px;
  line-height: 1;
}
.salida-name {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .5px;
}
.salida-empresa {
  font-size: 12px;
  opacity: .6;
  font-family: var(--font-ui);
}


/* ============================================================
   CTA DE INSCRIPCIÓN — Bloque dorado al final de cada especialidad
   ============================================================ */
.cta-inscripcion {
  background: var(--gold-pale);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 64px;
}
.cta-inscripcion h3 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.cta-inscripcion p {
  font-size: 15.5px;
  color: var(--gray-text);
  line-height: 1.65;
  max-width: 480px;
}
.cta-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}


/* ============================================================
   PERFIL DE EGRESO (si lo agregas en el futuro)
   ============================================================ */
.perfil-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.perfil-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: border-color .2s, transform .2s;
}
.perfil-item:hover {
  border-left-color: var(--navy);
  transform: translateX(4px);
}
.perfil-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.perfil-text { flex: 1; }
.perfil-text strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.perfil-text p {
  font-size: 13.5px;
  color: var(--gray-text);
  line-height: 1.58;
}


/* ============================================================
   GALERÍA DE ESPECIALIDAD (si la usas)
   ============================================================ */
.galeria-esp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 32px;
}
.galeria-esp img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .35s, filter .3s, box-shadow .3s;
}
.galeria-esp img:hover {
  transform: scale(1.04);
  filter: brightness(1.06);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
/* Imagen grande que ocupa 2 columnas */
.galeria-esp .gal-big {
  grid-column: span 2;
  aspect-ratio: 2/1;
}


/* ============================================================
   RESPONSIVE — Adaptaciones para pantallas pequeñas
   ============================================================ */
@media (max-width: 1100px) {
  .plan-grid     { grid-template-columns: repeat(2, 1fr); }
  .salidas-grid  { grid-template-columns: repeat(2, 1fr); }
  .galeria-esp   { grid-template-columns: repeat(2, 1fr); }
  .galeria-esp .gal-big { grid-column: span 1; aspect-ratio: 1/1; }
}

@media (max-width: 900px) {
  .cta-inscripcion { flex-direction: column; align-items: flex-start; }
  .perfil-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Tabs con scroll horizontal en móvil */
  .esp-tabs { padding: 0 12px; }
  .esp-tab  { padding: 12px 16px; font-size: 11px; }

  /* Hero más compacto */
  .esp-hero { padding: 52px 20px; min-height: 320px; }
  .esp-hero-inner h1 { font-size: 32px; }
  .esp-hero-inner > p { font-size: 15px; }
  .esp-stats-inline { gap: 20px; }
  .esp-stat-mini strong { font-size: 24px; }

  /* Plan y salidas en 1 columna */
  .plan-grid    { grid-template-columns: 1fr; }
  .salidas-grid { grid-template-columns: repeat(2, 1fr); }

  /* Logo adaptado a móvil */
  .logo-img { height: 38px; }
  .logo-container h1 { font-size: 15px; }

  /* CTA */
  .cta-inscripcion { padding: 32px 24px; }
  .cta-inscripcion h3 { font-size: 22px; }
}

@media (max-width: 480px) {
  .salidas-grid { grid-template-columns: 1fr; }
  .galeria-esp  { grid-template-columns: 1fr; }
}


/* ============================================================
   QUIMICA.CSS — Estilos específicos de quimica.html
   Se enlaza DESPUÉS de shared.css y especialidades.css:
   <link rel="stylesheet" href="shared.css"/>
   <link rel="stylesheet" href="especialidades.css"/>
   <link rel="stylesheet" href="quimica.css"/>
   ============================================================ */


/* ============================================================
   COLOR DE ACENTO DE QUÍMICA
   Cambia --quim-accent para personalizar el color de esta especialidad
   Por defecto: verde esmeralda (asociado a química/naturaleza)
   ============================================================ */
:root {
  --quim-accent:       #1a7a4a;   /* Verde principal de Química */
  --quim-accent-light: #2da866;   /* Verde claro */
  --quim-accent-pale:  #e8f7ef;   /* Fondo verde muy suave */
  --quim-gradient:     linear-gradient(135deg, rgba(15,29,53,.97) 38%, rgba(0,100,60,.65) 100%);
}


/* ============================================================
   HERO — Sobreescribe el gradiente del shared
   ============================================================ */
.esp-hero-quim::before {
  background: var(--quim-gradient);
}

/* Imagen de fondo del hero
   CAMBIA LA URL por una foto real del laboratorio de Química */
.esp-hero-quim .esp-hero-bg {
  background-image: url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?w=1400&q=80');
  background-position: center 40%;
}


/* ============================================================
   TABS — Resalta la pestaña activa con el color de Química
   ============================================================ */
.esp-tab.active {
  color: var(--quim-accent-light);
  border-bottom-color: var(--quim-accent-light);
}


/* ============================================================
   BADGE DEL HERO — Color verde en vez de dorado
   ============================================================ */
.esp-hero-quim .esp-badge {
  background: var(--quim-accent);
  color: var(--white);
}


/* ============================================================
   ENCABEZADO DEL PLAN DE ESTUDIOS
   Verde en vez del azul navy estándar
   ============================================================ */
.esp-hero-quim ~ * .plan-nivel-header,
.plan-nivel-header {
  /* El color lo hereda de shared — si quieres verde descomentar: */
  /* background: var(--quim-accent); */
}

/* Punto de cada asignatura en color acento */
.plan-asignatura::before {
  background: var(--quim-accent);
}


/* ============================================================
   SALIDAS LABORALES — Hover con acento verde
   ============================================================ */
.salida-card:hover {
  background: var(--quim-accent);
}


/* ============================================================
   PERFIL DE EGRESO — Borde izquierdo verde
   ============================================================ */
.perfil-item {
  border-left-color: var(--quim-accent);
}
.perfil-item:hover {
  border-left-color: var(--quim-accent-light);
}


/* ============================================================
   CTA DE INSCRIPCIÓN — Fondo verde pálido
   ============================================================ */
.cta-inscripcion {
  background: var(--quim-accent-pale);
  border-color: var(--quim-accent);
}


/* ============================================================
   SECCIÓN DE EQUIPOS — Bloque especial de Química
   Muestra íconos de equipos de laboratorio disponibles
   ============================================================ */
.equipos-section {
  padding: var(--section-v) var(--section-h);
  background: var(--white);
}

.equipos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

/* Tarjeta de equipo/instrumento */
.equipo-card {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-top: 3px solid var(--quim-accent);
  transition: background .2s, transform .25s, box-shadow .25s;
}
.equipo-card:hover {
  background: var(--quim-accent-pale);
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(26,122,74,.12);
}
.equipo-icon {
  font-size: 36px;
  line-height: 1;
}
.equipo-nombre {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .3px;
  line-height: 1.3;
}
.equipo-desc {
  font-size: 12.5px;
  color: var(--gray-text);
  line-height: 1.5;
}


/* ============================================================
   NORMAS Y CERTIFICACIONES — Bloque de sellos de calidad
   ============================================================ */
.normas-section {
  padding: var(--section-v) var(--section-h);
  background: var(--quim-accent);
  color: var(--white);
}

.normas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.norma-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: background .2s, transform .25s;
}
.norma-card:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-4px);
}
.norma-icon  { font-size: 38px; }
.norma-nombre {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
}
.norma-desc {
  font-size: 13px;
  opacity: .78;
  line-height: 1.55;
}


/* ============================================================
   GALERÍA — Overlay verde al hover
   ============================================================ */
.galeria-esp img:hover {
  filter: brightness(1.06) saturate(1.1);
}

/* Overlay de color en galería */
.gal-overlay {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.gal-overlay::after {
  content: '🔬';
  position: absolute;
  inset: 0;
  background: rgba(26,122,74,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  opacity: 0;
  transition: opacity .3s;
}
.gal-overlay:hover::after { opacity: 1; }


/* ============================================================
   ALIANZAS EMPRESARIALES — Logos de empresas socias
   ============================================================ */
.alianzas-section {
  padding: 48px var(--section-h);
  background: var(--gray-light);
  text-align: center;
}
.alianzas-section h3 {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 28px;
}
.alianzas-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
/* Cada logo de empresa aliada */
.alianza-logo {
  background: var(--white);
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 12px 28px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-text);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: border-color .2s, color .2s;
}
.alianza-logo:hover {
  border-color: var(--quim-accent);
  color: var(--quim-accent);
}


/* ============================================================
   RESPONSIVE — Química
   ============================================================ */
@media (max-width: 1100px) {
  .equipos-grid { grid-template-columns: repeat(2, 1fr); }
  .normas-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .equipos-grid { grid-template-columns: repeat(2, 1fr); }
  .normas-grid  { grid-template-columns: 1fr; }
  .alianzas-logos { gap: 16px; }
}

@media (max-width: 480px) {
  .equipos-grid { grid-template-columns: 1fr; }
}