/* ==========================================================================
   CSS DIRECTORY: MOBILE-FIRST RESPONSIVE STYLESHEET FOR ESAP TRANSITION PORTAL
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* --- 1. DESIGN TOKENS & VARIABLES --- */
:root {
  /* Brand Colors */
  --primary-color: #003366; /* Azul Institucional ESAP */
  --primary-hover: #001a33;
  --secondary-color: #0056b3;
  --yellow-color: #FFB800;
  --yellow-dark: #D49A00;
  --green-color: #2E7D32;
  --green-bg: #E8F5E9;
  --orange-color: #E65100;
  --orange-bg: #FFF8E1;
  --orange-border: #FFE082;
  
  /* Text & Surface Colors */
  --text-dark: #333333;  /* Gris oscuro para evitar fatiga visual */
  --text-medium: #555555;
  --text-light: #64748B;
  --text-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --border-color: #E2E8F0;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Border Radii */
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1.875rem;   /* 30px */
  
  /* Fonts & Layout */
  --font-heading: 'Montserrat', "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: 'Montserrat', "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 75rem;      /* 1200px */
}

/* --- 2. GLOBAL RESET & BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- GLOBAL TYPOGRAPHY SYSTEM --- */
h1 {
  font-family: var(--font-heading);
  font-size: 2rem; /* Mobile default size */
  font-weight: 700; /* Bold */
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin-bottom: 0.5em;
}

h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem; /* Mobile default size */
  font-weight: 600; /* Semi-Bold */
  line-height: 1.3;
  color: var(--primary-color);
  margin-bottom: 0.5em;
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem; /* Mobile default size */
  font-weight: 500; /* Medium */
  line-height: 1.3;
  color: var(--primary-color);
  margin-bottom: 0.5em;
}

p, li {
  font-size: 1rem; /* 16px */
  font-weight: 400; /* Regular */
  line-height: 1.6;
  color: var(--text-dark); /* #333333 */
}

span {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* Global Responsive Images & Media */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- 3. PRELOADER SCREEN --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #FFFFFF; /* Fondo blanco solicitado */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 90%;
  max-width: 22rem;
  text-align: center;
  opacity: 0;
  transform: scale(0.95);
  animation: preloader-content-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preloader-content-enter {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hex-path {
  fill: none;
  stroke: url(#gold-glow);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  filter: drop-shadow(0 0 3px rgba(255, 184, 0, 0.35));
  animation: draw-hex 4.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, pulse-glow 3s ease-in-out infinite alternate;
}

@keyframes draw-hex {
  0% {
    stroke-dashoffset: 240;
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes pulse-glow {
  0% {
    filter: drop-shadow(0 0 2px rgba(255, 184, 0, 0.25));
    stroke-width: 1.8;
  }
  100% {
    filter: drop-shadow(0 0 7px rgba(255, 184, 0, 0.65));
    stroke-width: 2.5;
  }
}

@keyframes rotate-honeycomb {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


.preloader-text {
  color: var(--primary-color); /* Texto en azul institucional de la ESAP */
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.preloader-progress-container {
  width: 100%;
  height: 0.25rem;
  background-color: #E2E8F0; /* Carril gris claro */
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.preloader-progress-bar {
  width: 0%;
  height: 100%;
  background-color: var(--yellow-color); /* Barra de progreso en oro ESAP */
  border-radius: var(--radius-sm);
  animation: preloader-progress-fill 5s linear forwards; /* Progreso de 5 segundos */
}

@keyframes preloader-progress-fill {
  0% { width: 0%; }
  100% { width: 100%; }
}


/* --- 4. HEADER & NAVIGATION (MOBILE BASE) --- */
header {
  background-color: var(--text-white);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.esap-logo-img {
  height: 2.75rem;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.esap-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.esap-subtitle {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--text-dark);
  line-height: 1.2;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-divider {
  display: none; /* hidden on mobile base */
}

.program-text {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-medium);
  line-height: 1.3;
  width: 100%;
  margin-top: 0.25rem;
}

.program-text span:last-child {
  font-weight: 700;
  color: var(--primary-color);
}

/* Nav Menu Mobile */
nav {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.menu-toggle {
  display: block; /* Hamburger visible by default */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 1.5625rem;
  height: 0.1875rem;
  background-color: var(--primary-color);
  margin: 0.3125rem 0;
  transition: all 0.3s ease;
}

.nav-links {
  display: none; /* Toggle behavior on mobile */
  flex-direction: column;
  list-style: none;
  gap: 0;
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--text-white);
  border: 1px solid var(--border-color);
  border-top: none;
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 0.5rem 0;
  z-index: 100;
}

.nav-links.active {
  display: flex;
}

.nav-links li {
  width: 100%;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-medium);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  width: 100%;
}

.nav-links li a:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.nav-links li a svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: currentColor;
}


/* --- 5. HERO SECTION (MOBILE BASE) --- */
.hero {
  position: relative;
  background-color: #0b1a30;
  background-image: linear-gradient(135deg, #003B7C 0%, #00234a 100%);
  color: var(--text-white);
  padding: 3.5rem 1.25rem 4.5rem 1.25rem;
  text-align: center;
  overflow: hidden;
}

#hero-honeycomb-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-hex-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.035); /* Muy tenue para la red base */
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-neuron-pulse {
  fill: none;
  stroke: #FFB800; /* Oro ESAP */
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50 350; /* Pulso de luz corto de 50px */
  stroke-dashoffset: 400;
  animation: neural-signal 6s linear infinite;
  filter: drop-shadow(0 0 3px rgba(255, 184, 0, 0.7));
}

@keyframes neural-signal {
  0% {
    stroke-dashoffset: 400;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9375rem;
  width: 100%;
}

.hero-image-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
}

.hero-students-img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.hero-badge {
  background-color: var(--secondary-color);
  color: var(--text-white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 700;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin: 0;
}

.hero .highlight-yellow {
  color: var(--yellow-color);
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 0.3125rem;
}

.hero-description {
  font-size: 1rem;
  max-width: 43.75rem;
  margin-top: 0.625rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  color: var(--text-white);
}

.hero-tagline {
  color: var(--yellow-color);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.625rem;
  display: none; /* Hide on mobile */
}


/* --- 6. FLOATING CARDS (MOBILE BASE) --- */
.floating-cards-container {
  max-width: var(--max-width);
  margin: -3.5rem auto 2.5rem auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 10;
}

.floating-cards {
  background-color: var(--text-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr; /* Stacked */
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.floating-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15), box-shadow 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}

/* Shine sweep animation overlay */
.floating-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.floating-card:last-child {
  border-bottom: none;
}

.floating-card:hover {
  background-color: #f8fafc;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 59, 124, 0.06);
}

.floating-card:hover::after {
  left: 150%;
  transition: left 0.85s cubic-bezier(0.19, 1, 0.22, 1);
}

.card-border-svg {
  position: absolute;
  top: 1.5px;
  left: 1.5px;
  width: calc(100% - 3px);
  height: calc(100% - 3px);
  pointer-events: none;
  z-index: 5;
}

.card-border-rect {
  stroke: rgba(255, 184, 0, 0.055); /* Muy tenue de fondo */
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 12 88; /* Pulso corto de 12% del perímetro */
  stroke-dashoffset: 100;
  animation: card-border-neutral 6s linear infinite;
  transition: stroke 0.3s ease;
}

@keyframes card-border-neutral {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Cuando se pasa el mouse, el pulso se vuelve dorado brillante y corre más rápido */
.floating-card:hover .card-border-rect {
  stroke: #FFB800; /* Oro ESAP */
  animation: card-border-pulse 1.8s linear infinite;
  filter: drop-shadow(0 0 3px rgba(255, 184, 0, 0.9));
}

@keyframes card-border-pulse {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.floating-card-icon {
  background-color: #EEF2F6;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-card:hover .floating-card-icon {
  background-color: #E2E8F0;
  transform: scale(1.12) rotate(4deg);
}

.floating-card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: var(--primary-color);
}

.floating-card-text {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color);
}

/* Custom Colored Themes for Floating Cards */
.floating-card.card-virtual .floating-card-icon {
  background-color: var(--green-bg);
}
.floating-card.card-virtual .floating-card-icon svg {
  fill: var(--green-color);
}
.floating-card.card-virtual:hover .floating-card-icon {
  background-color: #c8e6c9;
}
.floating-card.card-virtual .floating-card-text {
  color: var(--green-color);
}

.floating-card.card-interperiodo .floating-card-icon {
  background-color: var(--orange-bg);
}
.floating-card.card-interperiodo .floating-card-icon svg {
  fill: var(--orange-color);
}
.floating-card.card-interperiodo:hover .floating-card-icon {
  background-color: #ffe0b2;
}
.floating-card.card-interperiodo .floating-card-text {
  color: var(--orange-color);
}

.floating-card.card-normativa .floating-card-icon {
  background-color: #F3E5F5;
}
.floating-card.card-normativa .floating-card-icon svg {
  fill: #8E44AD;
}
.floating-card.card-normativa:hover .floating-card-icon {
  background-color: #E1BEE7;
}
.floating-card.card-normativa .floating-card-text {
  color: #8E44AD;
}


/* --- 7. MAIN CONTENT AREA & RESPONSIVE GRID LAYOUTS (MOBILE BASE) --- */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 3.125rem;
}

/* Base Multi-Column Containers stacked for Mobile */
.intro-section,
.equivalences-section,
.support-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Dynamic Auto-Fit Grid for Three Columns */
.three-columns-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: 1.5625rem;
}


/* --- 8. INTRO SECTION --- */
.intro-column h2 {
  color: var(--primary-color);
  margin-bottom: 1.25rem;
}

.intro-column p {
  color: var(--text-medium);
  font-size: 1rem;
  margin-bottom: 0.9375rem;
  text-align: justify;
}

.intro-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
}

.intro-column li {
  font-size: 1rem;
  color: var(--text-dark);
  padding-left: 1.25rem;
  position: relative;
  font-weight: 400;
}

.intro-column li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.25rem;
  position: absolute;
  left: 0;
  top: -0.25rem;
}


/* --- 9. EQUIVALENCES CARD SECTION --- */
.card-eq {
  background-color: var(--text-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 1.5625rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card-eq-blue {
  border-left: 5px solid var(--primary-color);
}

.card-eq-orange {
  border-left: 5px solid var(--yellow-color);
  background-color: #FFFCF5;
  border-color: var(--orange-border) var(--orange-border) var(--orange-border) var(--yellow-color);
}

.card-eq-header {
  display: flex;
  align-items: center;
  gap: 0.9375rem;
  margin-bottom: 1.25rem;
}

.card-eq-header svg {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.card-eq-blue .card-eq-header svg { fill: var(--primary-color); }
.card-eq-orange .card-eq-header svg { fill: var(--yellow-color); }

.card-eq-header h3 {
  color: var(--primary-color);
}

.card-eq-orange .card-eq-header h3 {
  color: #c27d00;
}

.card-eq-body {
  font-size: 1rem;
  color: var(--text-medium);
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
  flex-grow: 1;
}

.card-eq-body p {
  text-align: justify;
}

.attention-text {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1rem;
}

.warning-desc {
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.6;
}

/* Tip Box */
.tip-box {
  margin-top: 1.25rem;
  background-color: #FFFDE7;
  border: 1px dashed var(--yellow-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9375rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tip-box svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--yellow-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.tip-text {
  font-size: 0.875rem;
  color: #6d4c00;
  font-weight: 600;
  line-height: 1.4;
}

/* Button style */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary-color);
  color: var(--text-white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
  margin-top: 1.25rem;
  width: fit-content;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}


/* --- 10. THREE COLUMNS CARD ELEMENTS --- */
.card-col {
  background-color: var(--text-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 1.5625rem;
  display: flex;
  flex-direction: column;
}

.card-col-green { border-top: 4px solid var(--green-color); }
.card-col-blue { border-top: 4px solid var(--primary-color); }
.card-col-outline { 
  border: 1px solid var(--border-color); 
  border-top: 4px solid #8E44AD; 
  box-shadow: var(--shadow-md); 
}

.card-col-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.card-col-header svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.card-col-green .card-col-header svg { fill: var(--green-color); }
.card-col-blue .card-col-header svg { fill: var(--primary-color); }
.card-col-outline .card-col-header svg { fill: #8E44AD; }

.card-col-header h3 {
  /* Inherits h3 global styles */
}

.card-col-green .card-col-header h3 { color: var(--green-color); }
.card-col-blue .card-col-header h3 { color: var(--primary-color); }
.card-col-outline .card-col-header h3 { color: #8E44AD; }

.card-col-body {
  font-size: 1rem;
  color: var(--text-medium);
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
  flex-grow: 1;
}

.card-col-body p {
  text-align: justify;
}

.card-col-body p strong {
  display: block;
  margin-top: 5px;
  color: var(--text-dark);
}

.benefits-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 5px;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 5px;
}

.benefits-list li {
  position: relative;
  padding-left: 0.9375rem;
}

.benefits-list li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--text-white);
  color: var(--secondary-color);
  border: 1.5px solid var(--secondary-color);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  margin-top: 1.25rem;
  width: fit-content;
}

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: var(--text-white);
}

/* Checklist */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-medium);
}

.checklist-item svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: var(--green-color);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Megaphone Box */
.megaphone-box {
  margin-top: 1.25rem;
  background-color: #004D99;
  border-radius: var(--radius-md);
  padding: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.9375rem;
  color: var(--text-white);
}

.megaphone-box svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--yellow-color);
  flex-shrink: 0;
}

.megaphone-text {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}


/* --- 11. SUPPORT & FAQ ACCORDIONS (MOBILE BASE) --- */
.support-column h2 {
  margin-bottom: 1.5625rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.support-column h2 svg {
  width: 1.625rem;
  height: 1.625rem;
  fill: var(--primary-color);
}

/* Theme colors for support columns */
.support-column.col-faqs h2 {
  color: #8E44AD;
}
.support-column.col-faqs h2 svg {
  fill: #8E44AD;
}
.support-column.col-faqs .accordion-header {
  color: #8E44AD;
}
.support-column.col-faqs .accordion-header::after {
  color: #8E44AD;
}

.support-column.col-help h2 {
  color: var(--orange-color);
}
.support-column.col-help h2 svg {
  fill: var(--orange-color);
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.625rem;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  padding: 0.625rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9375rem;
}

.accordion-header::after {
  content: "+";
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.2s ease;
}

.accordion-item.active .accordion-header::after {
  content: "-";
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-body p {
  padding: 0.3125rem 0 0.625rem 0;
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.6;
  text-align: justify;
}

.accordion-item.active .accordion-body {
  max-height: 12.5rem;
}

/* Help Card */
.help-card {
  background-color: var(--text-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
  box-shadow: var(--shadow-md);
}

.support-column.col-help .help-card {
  border-left: 5px solid var(--orange-color);
  background-color: var(--orange-bg);
  border-color: var(--orange-border) var(--orange-border) var(--orange-border) var(--orange-color);
}

.help-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-color);
  line-height: 1.3;
}

.support-column.col-help .help-card-title {
  color: var(--orange-color);
}

.help-card-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.support-column.col-help .btn-primary {
  background-color: var(--orange-color);
}
.support-column.col-help .btn-primary:hover {
  background-color: #d35400;
}

.help-card-text {
  font-size: 0.9rem;
  color: var(--text-medium);
  font-style: italic;
}


/* --- 12. FOOTER SECTION (MOBILE BASE) --- */
footer {
  background-color: #00224a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 L56 16 L56 48 L28 64 L0 48 L0 16 Z M0 80.5 L28 96.5 L56 80.5 M28 64 L28 80.5 M0 16 L0 0 L28 -16 M56 16 L56 0' fill='none' stroke='rgba(255,255,255,0.035)' stroke-width='1.25'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  color: var(--text-white);
  padding: 3.125rem 1.25rem;
  margin-top: 3.125rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr; /* Stacked */
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
}

.footer-info h2 {
  color: var(--text-white);
  margin-bottom: 0.9375rem;
}

.footer-info p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.9;
  text-align: justify;
  color: var(--text-white);
}

.footer-graphic {
  display: flex;
  justify-content: center;
}

.footer-graphic-svg {
  width: 100%;
  max-width: 20rem;
  height: auto;
  opacity: 0.45;
}


/* --- 13. MODALS & OVERLAYS --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  padding: 0.625rem; /* tight on mobile */
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--text-white);
  border-radius: var(--radius-lg);
  width: fit-content;
  max-width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transform: translateY(-25px);
  transition: transform 0.25s ease;
}

.modal-content-wide {
  max-width: 98%;
}

.modal-content-medium {
  width: 40.625rem; /* 650px */
  max-width: 95%;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 1.125rem 1.5rem;
  border-bottom: 1.5px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.625rem;
  font-weight: bold;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--primary-color);
}

.modal-search {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: #F8FAFC;
}

.modal-search input {
  width: 100%;
  padding: 0.5rem 0.9375rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.modal-search input:focus {
  border-color: var(--primary-color);
}

.modal-body {
  padding: 0.9375rem;
  overflow-y: auto;
  overflow-x: auto;
  flex-grow: 1;
}

/* Modals Mobile Tables tweaks */
.modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.6875rem; /* compact on mobile */
  text-align: left;
}

.modal-table th {
  background-color: var(--primary-color);
  color: var(--text-white);
  padding: 0.75rem 0.625rem;
  font-weight: 700;
  font-family: var(--font-heading);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-table td {
  padding: 0.625rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

.modal-table tr:nth-child(even) { background-color: #F8FAFC; }
.modal-table tr:hover { background-color: #F1F5F9; }

.modal-table-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

#sin-equivalencia-modal .modal-table-img {
  width: 100%;
  max-width: 64rem;
}

#cronograma-perdida-modal .modal-table-img {
  width: 100%;
  max-width: 37.125rem;
}


/* --- 14. TRANSITION PORTAL CODE-RENDERED TABLES (MOBILE BASE) --- */
.transition-table-container {
  margin: 0.9375rem 0;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background-color: var(--text-white);
  padding: 0.625rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.transition-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.5rem; /* tiny base text size for mobile */
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  background-color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.transition-table th {
  background-color: var(--primary-color) !important;
  color: var(--text-white) !important;
  padding: 0.375rem 0.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  text-align: center;
  vertical-align: middle;
}

.transition-table td {
  border: 1px solid var(--border-color) !important;
  padding: 0.375rem 0.5rem;
  text-align: center;
  vertical-align: middle;
}

.transition-table tr:hover td:not(.col-cohort) {
  background-color: #F8FAFC;
}

.bg-lightblue {
  background-color: #EBF3FC !important;
  color: var(--primary-color) !important;
  font-weight: 700;
}

.bg-yellow {
  background-color: var(--yellow-color) !important;
  color: var(--text-dark) !important;
  font-weight: 700;
}

.bg-white {
  background-color: #FFFFFF;
  color: #000000;
}

.text-bold {
  font-weight: 700;
}

.vertical-text-cell {
  background-color: var(--yellow-color) !important;
  color: var(--text-dark) !important;
  padding: 0.3125rem !important;
  width: 2.1875rem; /* 35px */
  min-width: 2.1875rem;
  text-align: center;
}

.vertical-text-wrapper {
  writing-mode: vertical-rl;
  transform: rotate(180deg) translateZ(0);
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.5rem;
  letter-spacing: 0.5px;
  display: inline-block;
  line-height: 1.1;
  text-align: center;
}

.col-cohort {
  width: auto !important;
  min-width: auto !important;
  font-weight: 700;
  font-size: 0.5rem;
  line-height: 1.3;
}

.col-duration {
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1.3;
  width: auto !important;
  min-width: auto !important;
}

.col-loss {
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1.3;
  width: auto !important;
  min-width: auto !important;
}

.col-offer-header {
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1.3;
  width: auto !important;
  min-width: auto !important;
  padding: 0.375rem 0.3125rem !important;
}

.transition-table tbody td {
  font-size: 0.5625rem; /* ~9px */
  font-weight: 600;
}


/* --- 15. SPREADSHEET STYLING (EXCEL STYLE) --- */
.spreadsheet-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Calibri', 'Arial', sans-serif;
  font-size: 0.6875rem;
  color: #000000;
  background-color: #FFFFFF;
  border: 1px solid #7F7F7F;
}

.spreadsheet-table th,
.spreadsheet-table td {
  border: 1px solid #A6A6A6;
  padding: 0.375rem 0.5rem;
  text-align: center;
  vertical-align: middle;
  line-height: 1.35;
}

.bg-excel-blue { background-color: #D9E1F2 !important; color: #000000 !important; }
.bg-excel-yellow { background-color: #FFF2CC !important; color: #000000 !important; }
.bg-excel-white { background-color: #FFFFFF !important; color: #000000 !important; }

.font-semibold { font-weight: 600; }
.spreadsheet-table th { font-weight: bold; }

.spreadsheet-table .col-cohort, 
.spreadsheet-table .col-duration, 
.spreadsheet-table .col-loss {
  width: auto !important;
  min-width: auto !important;
}

.spreadsheet-table .vertical-text-wrapper { font-size: 0.5625rem; }


/* --- 16. DOCUMENT LIST ITEMS --- */
.documents-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.document-item {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column; /* stacked on mobile */
  align-items: stretch;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.document-item:hover {
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 34, 74, 0.08);
}

.document-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.pdf-icon, .excel-icon, .word-icon {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: content-box;
}

.pdf-icon {
  background-color: #FEE2E2;
  fill: #DC2626;
}

.excel-icon {
  background-color: #DCFCE7;
  fill: #16A34A;
}

.word-icon {
  background-color: #DBEAFE;
  fill: #2563EB;
}

.document-metadata {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: calc(100% - 3.75rem);
}

.document-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.4;
}

.document-filename {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: monospace;
  word-break: break-all;
}

.document-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%; /* full width actions on mobile */
  align-items: center;
}

.btn-doc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  flex-grow: 1; /* expand buttons equally on mobile */
  text-align: center;
}

.btn-view {
  background-color: #F1F5F9;
  color: var(--text-medium);
  border: 1.5px solid #CBD5E1;
}

.btn-view:hover {
  background-color: #E2E8F0;
  color: var(--text-dark);
  border-color: #94A3B8;
}

.btn-download {
  background-color: var(--primary-color);
  color: var(--text-white);
  border: 1.5px solid var(--primary-color);
}

.btn-download:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}


/* ==========================================================================
   MIN-WIDTH MEDIA QUERIES (SCALING UPWARDS - MOBILE FIRST)
   ========================================================================== */

/* --- BREAKPOINT 1: MOBILE HORIZONTAL / TABLETS SMALL (min-width: 576px) --- */
@media (min-width: 36rem) { /* 576px */
  /* General Spacing Expansion */
  .main-content {
    padding: 1.875rem;
  }
}


/* --- BREAKPOINT 2: TABLETS VERTICAL (min-width: 768px) --- */
@media (min-width: 48rem) { /* 768px */
  /* Responsive typography scaling */
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  .help-card-title {
    font-size: 1.5rem;
  }

  /* Header adjustments */
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .program-text {
    width: auto;
    margin-top: 0;
  }

  .header-divider {
    display: block;
    width: 1px;
    height: 2.5rem;
    background-color: #CBD5E1;
    margin: 0 0.3125rem;
  }

  /* Modals scaling */
  .modal {
    padding: 1.25rem;
  }

  .modal-content {
    max-height: 85vh;
    border-radius: var(--radius-lg);
  }

  .modal-body {
    padding: 1.5rem;
  }

  /* Tables font and spacing increase */
  .modal-table {
    font-size: 0.75rem; /* 12px */
  }

  .modal-table th {
    padding: 0.75rem 1rem;
  }

  .modal-table td {
    padding: 0.625rem 1rem;
  }

  /* Transition Table resizing for medium screens */
  .transition-table {
    font-size: 0.75rem;
  }

  .transition-table th, 
  .transition-table td {
    padding: 0.625rem 0.875rem;
  }

  .col-cohort {
    width: 20%;
    min-width: 7.5rem; /* 1200px context -> 120px */
    font-size: 0.75rem;
  }

  .col-duration {
    font-size: 0.75rem;
    width: 25%;
    min-width: 8.75rem; /* 140px */
  }

  .col-loss {
    font-size: 0.75rem;
    width: 15%;
    min-width: 5.625rem; /* 90px */
  }

  .col-offer-header {
    font-size: 0.75rem;
    width: 30%;
    min-width: 10rem;
    padding: 0.75rem 0.625rem !important;
  }

  .vertical-text-cell {
    width: 3.4375rem; /* 55px */
    min-width: 3.4375rem;
  }

  .vertical-text-wrapper {
    font-size: 0.75rem;
  }

  .transition-table tbody td {
    font-size: 0.8125rem; /* 13px */
  }

  /* Spreadsheet table resizing */
  .spreadsheet-table {
    font-size: 0.8125rem;
  }

  .spreadsheet-table th,
  .spreadsheet-table td {
    padding: 0.5rem 0.75rem;
  }

  .spreadsheet-table .vertical-text-wrapper {
    font-size: 0.75rem;
  }

  /* Document Item layouts (Horizontal) */
  .document-item {
    flex-direction: row;
    align-items: center;
    padding: 1rem;
  }

  .document-actions {
    width: auto;
  }

  .btn-doc {
    flex-grow: 0;
    font-size: 0.9rem;
  }
}


/* --- BREAKPOINT 3: LAPTOPS / DESKTOPS SMALL (min-width: 992px) --- */
@media (min-width: 62rem) { /* 992px */
  /* Main Nav Menu Desktop */
  .menu-toggle {
    display: none; /* Hide hamburger */
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    border: none;
    box-shadow: none;
    background-color: transparent;
    width: auto;
    gap: 1.25rem;
    padding: 0;
  }

  .nav-links li a {
    padding: 0;
    width: auto;
    font-size: 0.9rem;
  }

  .hero {
    padding: 0;
    text-align: left;
    background-color: #002A5B;
    background-image: linear-gradient(to right, #003B7C 0%, #002A5B 50%, #002A5B 100%);
  }

  .hero-container {
    max-width: 100% !important;
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    padding: 0 0 0 max(1.25rem, calc((100vw - var(--max-width)) / 2 + 1.25rem)) !important;
    margin: 0;
    gap: 0;
  }

  .hero-text-content {
    padding: 3rem 2.5rem 3rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-image-content {
    display: flex;
    width: 100%;
    height: 100%;
    margin-top: 0;
    align-items: stretch;
    position: relative;
  }

  .hero-image-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 7.5rem; /* ~120px blend transition zone */
    height: 100%;
    background: linear-gradient(to right, #002A5B 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
  }

  .hero-picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero-students-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero .highlight-yellow {
    font-size: 2.25rem;
    margin-top: 0.15rem;
  }

  .hero-description {
    font-size: 1rem;
    text-align: left;
    line-height: 1.6;
    margin-top: 0.25rem;
  }

  .hero-tagline {
    font-size: 1rem;
    margin-top: 0.25rem;
    display: block; /* Show on desktop */
  }

  /* Floating Cards offset & Grid expansion */
  .floating-cards-container {
    margin-top: -5rem;
  }

  .floating-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .floating-card {
    border-bottom: none;
    border-right: 1px solid var(--border-color);
  }

  .floating-card:last-child {
    border-right: none;
  }

  /* Layout grids expansion to multiple columns */
  .intro-section {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .equivalences-section {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.875rem;
  }

  .support-section {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }

  /* Footer adjustments */
  .footer-container {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    text-align: left;
  }

  .footer-graphic {
    justify-content: flex-end;
  }
}


/* --- BREAKPOINT 4: LARGE SCREENS / MONITORS (min-width: 1200px) --- */
@media (min-width: 75rem) { /* 1200px */
  /* Main Container layouts */
  .header-container,
  .hero-container,
  .main-content,
  .footer-container {
    padding-left: 0;
    padding-right: 0;
  }
  
  .floating-cards-container {
    padding-left: 0;
    padding-right: 0;
  }
}
/* Table styles for Asignaturas No Equivalentes */
.table-container {
  overflow-x: auto;
  margin-top: 1rem;
}
.eq-table {
  width: 100%;
  border-collapse: collapse;
  font-family: inherit;
  font-size: 0.9rem;
}
.eq-table th {
  background-color: var(--primary-color, #003366);
  color: white;
  padding: 0.75rem;
  text-align: left;
}
.eq-table td {
  border: 1px solid var(--border-color, #ddd);
  padding: 0.75rem;
}
.eq-table tr:nth-child(even) {
  background-color: #f9f9f9;
}
.eq-table tr:hover {
  background-color: #f1f1f1;
}
