*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Márgenes laterales generales para todo el contenido */
body {
    padding-left: 15px;
    padding-right: 15px;
    
}


/* -------------------- Autoria -------------------- */
/* Contenedor general */
.strip-container {
  display: flex;
  justify-content: center;   /* centra el strip dentro */
  margin-top: 20px;
  margin-bottom: 28px;
  width: 100%;               /* ocupa todo el ancho del viewport */
  padding: 0 12px;           /* aire lateral */
  box-sizing: border-box;    /* incluye padding en el cálculo */
}

.strip-collaboration {
  background-color: #ffffff; /* gris más discreto */
  color: #000000;           /* texto secundario */
   padding: 8px 20px;
  border-radius: 10px;
  font-size: 0.9em;
  text-align: center;
  display: flex;             /* 🔹 Flex para alinear los elementos */
  justify-content: center;   /* centra horizontalmente */
  align-items: center;       /* centra verticalmente */
  gap: 15px;                 /* espacio entre colaboración y derechos */
}




.collab-link {
  color: #00bfff;
  text-decoration: none;
  transition: color 0.3s;
}

.collab-link:hover {
  color: #009acd;
  text-decoration: underline;
}

.rights-link {
  color: #000000;
  text-decoration: none;
  font-weight: normal;
  transition: color 0.3s;
}

.rights-link:hover {
  text-decoration: underline;
}


/* Bloque strip general */
.strip {
  flex: 1;
  width: 100%;               /* fuerza a ocupar todo el ancho */
  max-width: 100%;           /* que nunca sea más pequeño */
  height: auto;
  background: rgb(24, 14, 76);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  display: flex;
  flex-wrap: wrap;           /* se parte en líneas en móvil */
  align-items: center;
  justify-content: center;
  color: #f1f1f1;
  font-weight: 400;
  font-size: 14px;
  text-align: center;
  padding: 12px 20px;        /* aire interno */
  letter-spacing: 0.3px;
  line-height: 1.4;
  box-sizing: border-box;
}

/* Footer específico */
.strip-footer {
  margin-top: 16px;          /* separación del contenido superior */
  padding: 14px 24px;        /* más aire lateral */
  position: sticky;          /* se queda abajo cuando lo alcanzas */
  bottom: 0;
  z-index: 100;
}





.strip .highlight {
  font-weight: 800;    /* más grueso e intenso */
  color: #ffffff;      /* blanco intenso */
}







.author {
  font-weight: 700;
  color: #dba532;
  position: relative;
  text-decoration: none;
}

.author::before {
  content: "✨ ";
  margin-right: 0.3rem;
    animation: sparkle 2s infinite alternate;
}

.author::after {
  content: " ✨🌱 ";
  margin-left: 0.3rem;
  animation: sparkle 2s infinite alternate;
}




.fosfo-logo {
  height: 1.6rem;
  margin: 0 0.3rem;
  vertical-align: middle;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.version {
  margin-left: 0.5rem;
  font-size: 0.85rem;
  color: #ffffff;
}

.rights {
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

.rights a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
}

.rights a:hover {
  text-decoration: underline;
  color: #0055ff;
}

/* Animación sutil para el destello */
@keyframes sparkle {
  0% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.3; transform: scale(0.8); }
}

/* Texto general de colaboradores */
.collab {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-style: italic;
  color: #ffffffde;   /* gris más visible */
}

/* Nombres clicables de colaboradores */
.collab-link {
  color: #1e90ff;           /* azul visible (como hyperlink moderno) */
  text-decoration: underline dotted; /* subrayado suave */
  font-weight: 500;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.collab-link:hover {
  color: #0056b3;           /* azul más oscuro al pasar el mouse */
  text-decoration: underline solid;  /* subrayado fuerte en hover */
}



/* -------------------- Banner -------------------- */
.hero {
  width: 100%;
  aspect-ratio: 7200 / 1300;   /* usa las proporciones reales de tu imagen */
  position: relative;           /* permite que el texto absoluto se posicione sobre la imagen */
  border-radius: 20px;
  overflow: hidden;
  margin-top: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

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

.hero-title,
.hero-subtitle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
  z-index: 10;
  white-space: nowrap;       /* evita que el texto se divida */
  cursor: text;              /* indica que se puede seleccionar */
  user-select: text;         /* permite que el texto sea seleccionable */
  font-weight: bold;
}

/* posición vertical específica */
.hero-title {
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(2rem, 5vw, 6rem);
}

.hero-subtitle {
  top: 58%;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

/* -------------------- Autoria -------------------- */






/* -------------------- Franja Azul -------------------- */

/* -------------------- Contenedor que agrupa ambos elementos -------------------- */
.strip-container {
  display: flex;
  flex-wrap: nowrap;          
  align-items: stretch;       
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 28px;        
  gap: 18px;                  

  /* Márgenes laterales pequeños */
  padding: 0 10px;            
  width: 100%;                /* 👈 ocupa todo el ancho */
  max-width: none;            /* 👈 elimina el límite de 1600px */
  margin-left: 0;             /* 👈 sin centrado */
  margin-right: 0;
}


.strip {
  flex: 1 1 auto;
  min-width: 600px;
  height: 60px;
  background: rgb(24, 14, 76);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f1f1f1;            /* gris claro elegante en vez de blanco puro */
  font-weight: 400;          /* menos pesado, más profesional */
  font-size: 14px;
  text-align: center;
  padding: 0 30px;
  letter-spacing: 0.3px;     /* un poquito más de aire entre letras */
}






/* --- Logo dentro de la franja --- */
.fosfo-logo {
  height: 60px;              /* tamaño discreto */
  margin: 0 6px;             /* aire a los lados */
  vertical-align: middle;    /* alineado con el texto */
}

/* --- Espaciado del contenido en la franja --- */
.strip {
  gap: 6px;                  /* espacio uniforme entre texto, logo y versión */
}

.strip strong {
  margin: 0 3px;             /* separa nombres del resto del texto */
}

.strip small {
  margin-left: 8px;          /* la versión queda sutilmente separada */
}









.strip strong {
  font-weight: 600;
  color: #ffffff;            /* resalta los nombres en blanco puro */
}

.strip small {
  font-size: 12px;
  opacity: 0.8;              /* la versión se ve más sutil */
}



/* --- Botón PDF estirado horizontalmente --- */
.pdf-download {
  display: inline-flex;           
  align-items: center;
  justify-content: center;        /* centramos el contenido dentro del botón */
  gap: 10px;                      
  
  padding: 12px 40px;             /* más ancho horizontalmente */
  min-width: 95%;                 /* ocupa mínimo 60% del strip */
  max-width: 85%;                 /* no se pasa del contenedor */
  
  border: 2px solid #dba532;      
  border-radius: 28px;

  color: #ffd85e;                 
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: 1.2px;          /* más espacio entre letras */

  background: transparent;        
  transition: all 0.3s ease;
}

.pdf-download:hover {
  background: rgba(255, 216, 94, 0.15); 
  color: #ffec9f;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(255, 216, 94, 0.25);
}



/* -------------------- Contenedor azul original -------------------- */
.strip-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 28px;
  gap: 18px;
  padding: 0 10px;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.strip {
  flex: 1 1 auto;
  min-width: 600px;
  height: 60px;
  background: rgb(24, 14, 76);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f1f1f1;
  font-weight: 400;
  font-size: 14px;
  text-align: center;
  padding: 0 30px;
  letter-spacing: 0.3px;
}



/* --- Info Box --- */
.info-box {
  cursor: pointer;
  color: #ffd85e;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 28px;
  border: 2px solid #ffd85e;
  background: transparent;
  transition: all 0.3s ease;
}

.info-box:hover {
  background: rgba(255, 216, 94, 0.15);
  color: #ffec9f;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(255, 216, 94, 0.25);
}

/* --- Horario Wrapper --- */
.horario-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.horario-label {
  color: #ffd85e;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

/* --- Selector de horarios colores más acordes --- */
.horario-select {
  padding: 6px 12px;
  border-radius: 20px;
  border: 2px solid #dba532;
  background: rgb(24, 14, 76); /* azul franja */
  color: #ffffff; /* texto blanco */
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* Opciones desplegables */
.horario-select option {
  background: #ffffff;   /* fondo blanco de opciones */
  color: #18104c;        /* texto azul oscuro */
  font-weight: 600;
}

/* Hover y foco en el select */
.horario-select:hover,
.horario-select:focus {
  background: rgba(255, 255, 255, 0.1); /* azul ligeramente transparente */
  outline: none;
}

/* Hover sobre opciones */
.horario-select option:hover {
  background: #dba532; /* dorado suave */
  color: #ffffff;      /* texto blanco al hover */
}


/* --- Botones de descarga --- */
.pdf-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  border: 2px solid #dba532;
  border-radius: 28px;
  color: #ffd85e;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 1.2px;
  background: transparent;
  transition: all 0.3s ease;
}

.pdf-download-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px;
  border: 2px solid #dba532;
  border-radius: 20px;
  color: #ffd85e;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 1px;
  background: transparent;
  transition: all 0.3s ease;
}

.pdf-download-small:hover {
  background: rgba(255, 216, 94, 0.15);
  color: #ffec9f;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 3px 10px rgba(255, 216, 94, 0.25);
}

.pdf-download:hover {
  background: rgba(255, 216, 94, 0.15);
  color: #ffec9f;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(255, 216, 94, 0.25);
}

/* --- Ajustes solo para computadoras --- */
@media (min-width: 1024px) {
  .horario-wrapper {
    gap: 24px;
    padding: 0 40px;
  }

  .horario-select {
    min-width: 200px;
    max-width: 300px;
    padding: 6px 20px;
    font-size: 15px;
  }

  .pdf-download-small {
    min-width: 160px;
    max-width: 220px;
    font-size: 14px;
    padding: 8px 20px;
  }
}





/* -------------------- Caja "Cómo funciona" -------------------- */
.info-box {
  flex: 0 0 240px;            
  height: 60px;               
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #DBA532, #F1C40F); /* fondo amarillo */
  box-shadow: 0 6px 16px rgba(0,0,0,.1); 
  font-family: 'Inter', 'Arial', sans-serif; 
  font-weight: 600;
  color: #180E4C; /* letra azul */
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  border: 2px solid rgba(14, 3, 237, .12); 
  text-align: center;
  letter-spacing: 0.5px; 
}

/* Hover: intercambio de colores */
.info-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.15);
  background: linear-gradient(135deg, #180E4C, #3B2C91); /* fondo azul */
  color: #DBA532; /* letra amarilla */
}

/* -------------------- Ajustes por tamaño (RESPONSIVE ORIGINAL) -------------------- */
@media (min-width: 1400px) {
  .info-box { flex-basis: 260px; }
}

@media (max-width: 992px) {
  .strip-container { gap: 14px; padding: 0 10px; }
  .info-box { flex-basis: 220px; }
}

@media (max-width: 600px) {
  .strip-container { gap: 12px; padding: 0 10px; }
  .info-box { flex-basis: 200px; }
}




/* -------------------- Contenedor flexible -------------------- */
.strip-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}




/* -------------------- CONTENEDOR GENERAL -------------------- */


.contenedor-contadores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
  /* 🔹 Se generan columnas automáticas: mínimo 180px y el resto se estira */
  gap: 20px;
  width: 100%;
  margin: 0;
  position: sticky;
  top: 20px;
  z-index: 999;
  background: transparent;
  padding: 0 6px; 
}

/* Estado sticky normal */
.contenedor-contadores.sticky-activo {
  position: sticky;
  top: 20px;
  z-index: 999;
}

/* Estado desactivado */
.contenedor-contadores.sticky-desactivado {
  position: static;
  top: auto;
  z-index: auto;
}




@media (max-width: 576px) {
  .contenedor-contadores {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}


/* Todas las cards ocupan todo su espacio */
.contenedor-contadores .card {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}





.card.inscripcion-card {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;        
  height: auto;       
  min-height: 130px;  
  border-radius: 20px;  /* deja solo el valor final */

  background: linear-gradient(135deg, rgb(24, 14, 76), rgb(50, 30, 120));
  box-shadow: 0px 6px 18px rgba(0,0,0,0.25);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}


/* Enlace interno */
.card.inscripcion-card .boton-simulador {
  font-size: 16px;
  font-family: inherit;
  font-weight: bold;
  color: rgb(219,165,50);
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

/* Hover del contenedor */
.card.inscripcion-card:hover {
  background: linear-gradient(135deg, rgb(219,165,50), #dba532);
  box-shadow: 0px 8px 22px rgba(24,14,76,0.4);
  transform: scale(1.05);
}

/* Hover: el texto también cambia */
.card.inscripcion-card:hover .boton-simulador {
  color: rgb(24, 14, 76);
}

/* Ajustes responsive para teléfono */
@media (max-width: 576px) {
  .card.inscripcion-card {
    min-height: 110px;       /* 🔹 un poco más compacta */
    border-radius: 14px;     /* 🔹 bordes más suaves */
    padding: 12px;           /* 🔹 espacio interno */
    flex-direction: column;  /* 🔹 contenido en columna si hay más de un elemento */
    text-align: center;      /* 🔹 centra textos */
  }

  .card.inscripcion-card .boton-simulador {
    font-size: 14px;         /* 🔹 texto más pequeño para caber mejor */
  }

  .card.inscripcion-card:hover {
    transform: scale(1.02);  /* 🔹 menos agresivo en móvil */
  }
}






/* -------------------- CARDS ESPECÍFICAS -------------------- */
.card.contador-card {
    border: 2px solid #180E4C; 
    background-color: #ffffff;  
    border-radius: 10px;        
    padding: 12px;              
    box-sizing: border-box;     
}

.card.electivo-card {
    border: 2px solid #DBA532; 
    background-color: #ffffff;  
    border-radius: 10px;
    padding: 12px;
    box-sizing: border-box;
}

/* -------------------- TARJETAS -------------------- */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 12px;
  padding: 15px; 
  background: linear-gradient(135deg, #ffffff, #f9f9f9);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-align: center;

  /* ❌ quitar min/max width */
  width: 100%;  
  box-sizing: border-box;
}


/* Efecto hover */
.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

/* -------------------- CAJA DEL NÚMERO -------------------- */
.card .count-box {
  background: linear-gradient(135deg, #e0e0e0, #d4d4d4); 
  border-radius: 10px;
  padding: 10px 16px; 
  min-width: 75px;     
  text-align: center;
  margin-top: 12px; 
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 65px; 
}

/* Pequeño efecto al pasar */
.card .count-box:hover {
  background: linear-gradient(135deg, #d4d4d4, #cfcfcf); 
}

/* Número */
.card .count-number {
  font-family: 'Inter', 'Arial', sans-serif; 
  font-size: 26px;   
  font-weight: 700;
  color: #222;
  text-transform: none; 
  background: linear-gradient(90deg, #000000, #0000009c); 
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Texto de la card (Créditos Obligatorios / Electivos) con franja de color */
.card.contador-card p,
.card.electivo-card p {
  font-family: 'Inter', 'Arial', sans-serif; 
  font-size: 15px; 
  font-weight: 700; 
  text-align: center; 
  text-transform: none; 
  margin: 6px 0;
  padding: 2px 8px; 
  border-radius: 6px; 
}

/* Franja de color según tipo de crédito y letra invertida */
.card.contador-card p {
  background-color: #180E4C; /* azul Facultad */
  color: #DBA532; /* letra amarilla */
}

.card.electivo-card p {
  background-color: #DBA532; /* amarillo Facultad */
  color: #180E4C; /* letra azul */
}

/* Mejor ocupación del espacio */
.card.contador-card,
.card.electivo-card {
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  min-height: 130px; 
  padding: 12px;
  box-sizing: border-box;
}



/* Texto */
.card p {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.05); /* 🔹 ligera sombra para darle profundidad */
}



/* -------------------- Responsive: Pantallas grandes -------------------- */
@media (min-width: 1600px) {
  .card {
    min-width: auto;       /* 🔹 se ajusta automáticamente */
    max-width: none;
    padding: 22px;         /* 🔹 un poco más de padding */
  }
}



















.banner {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  max-width: 1600px;
  margin: auto;
  overflow: hidden;
}

.banner-header {
  background: rgb(222, 166, 47);
  color: rgb(0, 0, 0);
  padding: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.banner-header .icon {
  margin-right: 8px;
}

.banner-header .title small {
  font-weight: normal;
  font-size: 0.8em;
}

.banner-content {
  padding: 15px;
}

.banner-content h2 {
  margin: 0 0 15px 0;
  font-size: 1.2em;
}

/* -------------------- Opciones -------------------- */
.option {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

.option span {
  margin-left: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 2px; bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #3f7dde;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.credits {
  margin-top: 12px;
  font-weight: bold;
}

/* -------------------- Materias -------------------- */
.header-materia { position: relative; }

.credit-badge {
  position: absolute;
  top: 11px;
  left: 225px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(222, 166, 47); /* Tu amarillo */
  color: #000;
  font-weight: 700;
  font-size: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  z-index: 50; /* más alto */
}

.credit-badge::after {
  content: "Unidades de Créditos";
  position: fixed; /* relativo a la ventana, no al padre */
  background: rgba(24, 54, 89, 0.95); /* azul oscuro facultad */
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  top: 0;
  left: 0;
  transform: translate(40px, 10px); 
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999; /* encima de todo */
}

.credit-badge:hover::after {
  opacity: 1;
}


/* -------------------- Tablas -------------------- */
td {
    height: 400px;
    width: 250px;
    text-align: center;
    padding: 5px;
    border: 10px solid rgb(255, 255, 255);
    justify-content: space-around;
    background-color: rgb(23, 228, 235);
    border-radius: 30px;
    position: relative; /* esencial para pseudo-elemento */
    overflow: hidden;
}

th {
    width: 250px;
    text-align: center;
    padding: 5px;
    border: 10px solid rgb(255, 255, 255);
    justify-content: space-around;
    background-color: rgb(24, 14, 76);
    border-radius: 20px;
    padding: 10px;
}

/* -------------------- Texto -------------------- */
.texto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 260px;
    padding: 10px;
    margin-top: 150px;  /* 200px (altura imagen) + 10px de espacio */
}

.ajuste-texto {
  margin-top: 185px;  /* 🔹 ajusta aquí la distancia hacia abajo */
}

.ajuste-texto1 {
  margin-top: 168px;  /* 🔹 ajusta aquí la distancia hacia abajo */
}


.texto h3 {
    margin-bottom: 4px;   /* más pegado al subtítulo */
    font-size: 25px;
}

.codigo-materia {
    display: flex;
    justify-content: space-evenly; /* reparte todo equilibrado */
    align-items: center;
    width: 100%;
    font-size: 17px;        /* un poco más grande */
    font-weight: 600;       /* más grueso */
    color: #000;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;  /* ligera separación entre letras */
}

.codigo-materia .divider {
    margin: 0 10px;         /* espacio controlado de la barra */
    color: #444;
}

.texto p {
    margin: 0;
    line-height: 1.6;
}

.titulo-materia {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
    white-space: normal;        /* permite que el título salte de línea */
    word-break: break-word;     /* corta la palabra si es demasiado larga */
    text-align: center;         /* mantiene estética */
    line-height: 1.2em;
    max-height: 2.4em;          /* máximo 2 líneas */
    overflow: hidden;           /* oculta lo que se pase */
    text-overflow: ellipsis;    /* agrega ... si se pasa */
}

.texto h3 {
    font-size: 24px !important; /* fuerza el tamaño */
    font-weight: bold;
    margin: 2px 0; /* reduce el espacio entre líneas */
    white-space: normal;
    word-break: break-word;
    text-align: center;
    line-height: 1.1em; /* un poquito más compacto */
    max-height: 2.4em;
    overflow: hidden;
    text-overflow: ellipsis;
}


.requisitos-title {
    font-weight: bold;
    margin: 8px 0;          /* arriba y abajo */
    color: #000000;
    font-size: 14px;
    line-height: 1.2;
    text-align: left;        /* alineado a la izquierda */
    padding-left:2px;       /* ligera sangría a la izquierda */
    width: 100%;             /* ocupa todo el ancho del contenedor */
}


.requisitos-list {
    display: flex;                 
    flex-wrap: wrap;               /* ✅ permite salto si no cabe */
    gap: 6px;                      /* separación aún más compacta */
    list-style: none;
    padding: 0;                    
    margin: 4px 0 0 0;             /* más compacto arriba */
    background: transparent;       
    border-left: none;             
    border-radius: 0;              
    font-size: 13px;
    line-height: 1.2;              /* interlineado comprimido */
    align-items: center;
}

.requisitos-list li {
    flex: 0 1 auto;                
    white-space: nowrap;           
    position: relative;
    padding-left: 16px;            /* un poquito menos para comprimir */
    margin: 0;
    color: #000000;
    transition: color .25s ease;
}

/* 🔹 Punto gris por defecto */
.requisitos-list li::before {
    content: "•";
    color: #888;
    font-size: 14px;               /* un poquito más pequeño */
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1;
    transition: color .25s ease, transform .2s ease;
}

/* ✅ Cuando el requisito se cumple */
.requisitos-list li.cumplido {
    color: #000;
    font-weight: 600;   
}

.requisitos-list li.cumplido::before {
    content: "✔";
    color: #28a745;                
    font-size: 13px;
    transform: scale(1.05);
}




/* -------------------- Imágenes -------------------- */

.header-materia {
    position: absolute;  /* hacemos que se quede pegada al contorno de la carta */
    top: 0;              /* borde superior */
    left: 0;             /* borde izquierdo */
    width: 110%;         /* conservamos el ancho que tenías */
    height: 200px;       /* conservamos la altura */
    display: flex;
    align-items: center; /* mantenemos el centrado vertical dentro del header si quieres */
    justify-content: center;
    margin: 0;           /* quitamos cualquier margen que la desplace */
}

.header-materia img {
    height: 100%;
    width: 100%;
    margin-left: -10px;  /* conservamos tu ajuste */
    object-fit: cover;
    display: block;       /* evita espacios extra debajo de la imagen */
}

.header-materia video {
    height: 100%;
    width: 100%;
    margin-left: -10px;  /* igual que tus imágenes */
    object-fit: cover;   /* mantiene la proporción y recorta si es necesario */
    display: block;      /* evita espacios extra debajo del video */
}




/* -------------------- Cartas -------------------- */
.nuevaMateria {
    position: relative;
    overflow: hidden;
}

.nuevaMateria input[type="checkbox"] {
    display: none; /* Ocultar checkbox duplicado */
}

/* -------------------- Botón más información -------------------- */
.more-text {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #09bb77;
    padding: 30px;
    overflow-y: auto;
    transition: all ease 0.7s;
    z-index: 8;
    box-sizing: border-box;
}

.more-btn {
    width: 40px;
    height: 40px;
    background-color: #09bb77;
    border-radius: 50%;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    line-height: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    transition: all ease 0.9s;
}

.more-btn:hover{
    background-color: #f7f7f7;
    color: #09bb77;
}

.more-text::-webkit-scrollbar{
    width: 7px;
    background-color: #b3b3b3;
}

.more-text::-webkit-scrollbar-thumb{
    background-color: hsl(194, 70%, 47%);
}

.more-text h2, .more-text p{
    color: hsl(0, 0%, 0%);
    font-size: 18px;
    line-height: 30px;
    font-weight: 500;
}

.more-text.active{
    bottom: 0;
}

.contenedorx{
    height: 0vh;
    background-color: #fff;
    display: flex;
    top: 32px;
    justify-content: center;
}

/* -------------------- Botones personalizados -------------------- */
.button3{
    background-color: rgb(142, 146, 144);
    width: 70px;
    height: 35px;
    border-radius: 100px;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    text-align: start;
    position: absolute;
    top: 200px;
    right: 0;
    margin: 10px;
}

.button3::before{
    position: absolute;
    content: '';
    background-color: #ffffff;
    width: 25px;
    height: 25px;
    border-radius: 200px;
    margin: 5px;
    transition: 0.3s;
}

input:checked + .button3{
    background-color: hsl(210, 4%, 30%);
}
input:checked + .button3::before{
    transform: translateX(35px);
}

.inputtext {
    width: 80px;
}

p { margin: 5px 0px 5px 0px; }

.span1 { color: navy; margin-right: 10px; }
.span2 { color: crimson; }
.span1:hover { color:blue; text-decoration: underline; margin-right: 10px; }
.span2:hover { color:red; text-decoration: underline; margin-right: 10px; }











#tabla th, #tabla td {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
#tabla th:hover, #tabla td:hover {
  transform: translateY(-5px);
}

th {
  background: linear-gradient(135deg,rgb(24, 14, 76), #2f80ed);
}

td:hover {
  box-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
  transform: scale(1.02);
}




/* -------------------- Contenedor de semestres con scroll -------------------- */
.semestres-container {
  max-width: 100vw;          /* 🔹 solo la mitad de la pantalla visible */
  overflow-x: auto;         /* 🔹 activa scroll horizontal */
  margin: 20px auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory; /* 🔹 hace que se "enganche" en columnas */
  
}



/* Para que cada semestre se alinee bien en el scroll */
#tabla th, 
#tabla td {
  scroll-snap-align: start;
}

/* Estilo de la barra de scroll */
.semestres-container::-webkit-scrollbar {
  height: 10px;
}
.semestres-container::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 5px;
}
.semestres-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}
.semestres-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.scroll-wrapper {
  overflow-x: auto;
}

.scroll-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow-x: auto;
  background: #f9f9f9;
  border-top: 1px solid #ccc;
}
.scroll-fixed::-webkit-scrollbar {
  height: 12px;
}



/* Estetica bienvenida */


/* Popup fullscreen con bordes elegantes */
.bienvenida-fullscreen {
  border-radius: 25px !important;
  border: 4px solid rgb(24, 14, 76); /* azul oscuro */
  box-shadow: 0px 10px 40px rgba(0,0,0,0.4);
  max-width: 95% !important; /* asegura que se expanda */
}

/* Botón con transición */
/* Botón con transición (PC por defecto) */
.bienvenida-btn {
  font-weight: bold !important;
  border-radius: 18px !important;
  background-color: rgb(222, 166, 47) !important;
  color: white !important;
  padding: 14px 34px !important;   /* un poquito más grande */
  font-size: 18px !important;      /* aumentamos también la letra */
  transition: all 0.3s ease !important;
}

.bienvenida-btn:hover {
  background-color: rgb(24, 14, 76) !important;
  color: rgb(222, 166, 47) !important;
  transform: scale(1.08);
}

/* 🔹 Ajuste específico para teléfonos */
@media (max-width: 600px) {
  .bienvenida-btn {
    font-size: 20px !important;     /* letra más grande en móvil */
    padding: 18px 44px !important;  /* más ancho y alto */
    border-radius: 22px !important; /* más redondeado */
  }
}


.img-bienvenida {
  display: block;
  margin: 0 auto;         /* centrar la imagen */
  width: 90%;             /* ocupa el 90% del ancho disponible */
  max-width: 600px;       /* pero nunca más grande de 600px */
  height: auto;           /* mantiene proporciones */
  border-radius: 20px;    /* opcional, esquinas redondeadas */
  object-fit: cover;      /* se adapta al contenedor */
}

/* Ajuste solo del contenido interno */
.bienvenida-popup .swal2-html-container {
  max-width: 95% !important;  /* hace que el texto aproveche más ancho */
  margin: 0 auto;             /* lo centra */
  padding: 0 10px !important; /* menos relleno lateral */
  text-align: justify;        /* justificado */
}

/* Popup general (ligeramente más ancho) */
.bienvenida-popup {
  max-width: 1000px !important; /* subí de 800px a 860px */
  width: 92% !important;       /* aprovecha un poco más el ancho */
}


@media (max-width: 768px) {
  .bienvenida-popup {
    max-width: 95% !important; /* en pantallas pequeñas, casi todo el ancho */
  }
}

/* Comprimir párrafos y texto en la bienvenida */
.bienvenida-popup .swal2-html-container p {
  margin-top: 8px !important;   /* menos espacio arriba */
  margin-bottom: 8px !important;/* menos espacio abajo */
  line-height: 1.4 !important;  /* interlineado más compacto */
  text-align: justify;          /* se mantiene justificado */
}

/* Opcional: también aplica a <br> si los usas mucho */
.bienvenida-popup .swal2-html-container br {
  line-height: 1 !important;
}




/* Estilo base de la alerta */
.materia-popup {
  font-size: 1.1rem;       /* 🔹 texto base un poco más grande */
  padding: 2rem;           /* 🔹 más espacio interno */
  border-radius: 14px;     /* 🔹 bordes suaves */
}

/* Título */
.materia-popup .swal2-title {
  font-size: 3rem !important;  /* 🔹 título más grande */
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Contenido */
.materia-popup .swal2-html-container {
  font-size: 1.8rem !important;  /* 🔹 texto más legible */
  line-height: 1.6;
  text-align: left;
  margin: 0.5rem 0 1rem 0;
}

/* Ícono */
.materia-popup .swal2-icon {
  transform: scale(1.3);  /* 🔹 icono más grande */
  margin-bottom: 1.2rem;
}

/* Botón */
.materia-btn {
  font-size: 1.15rem !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: 10px;
}

/* En móviles vertical */
@media (max-width: 576px) {
  .materia-popup {
    width: 90% !important;    /* 🔹 más ancha */
    font-size: 1.2rem;        /* 🔹 texto base un poco más grande */
    padding: 2.2rem !important;
  }

  .materia-popup .swal2-title {
    font-size: 1.7rem !important;
  }

  .materia-popup .swal2-html-container {
    font-size: 1.25rem !important;
  }

  .materia-popup .swal2-icon {
    transform: scale(1.4);
  }

  .materia-btn {
    font-size: 1.2rem !important;
    padding: 0.9rem 1.6rem !important;
  }
}

/* En móviles horizontales (landscape) */
@media (max-width: 812px) and (orientation: landscape) {
  .materia-popup {
    width: 75% !important;
    font-size: 1.1rem;
  }
}


/* Estilo base de la alerta de electivas */
.electiva-popup {
  font-size: 1.1rem;       
  padding: 2rem;           
  border-radius: 14px;     
  max-width: 500px;        /* 🔹 limita el ancho del popup */
}

/* Título */
.electiva-popup .swal2-title {
  font-size: 3rem !important;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Contenido */
.electiva-popup .swal2-html-container {
  font-size: 1.8rem !important;
  line-height: 1.6;
  text-align: left;
  margin: 0.5rem 0 1rem 0;
}

/* Ícono */
.electiva-popup .swal2-icon {
  transform: scale(1.3);
  margin-bottom: 1.2rem;
}

/* Select (lista desplegable) */
.electiva-popup select.swal2-select {
  font-size: 1.4rem !important;
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  width: 100%;           /* 🔹 asegura que ocupe todo el ancho disponible */
  max-width: 100%;       /* 🔹 previene que se salga del popup */
  box-sizing: border-box; /* 🔹 considera padding dentro del ancho */
  margin-top: 1rem;
}

/* Botón */
.electiva-btn {
  font-size: 1.15rem !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: 10px;
}






/* 🔹 ALERTAS DE CHOQUE DE HORARIOS */
/* ============================= */
.alert-materias {
  font-size: 1.6rem;          /* texto grande y legible */
  line-height: 1.6;
  color: #333;
  text-align: left;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 480px) {
  .materia-popup,
  .electiva-popup {
    font-size: 1rem;
    padding: 1.5rem;
  }

  .materia-popup .swal2-title,
  .electiva-popup .swal2-title {
    font-size: 2.2rem !important;
  }

  .materia-popup .swal2-html-container,
  .electiva-popup .swal2-html-container {
    font-size: 1.4rem !important;
  }

  .alert-materias {
    font-size: 1.3rem;
  }
}






/* Ancho específico para la alerta de Datos del estudiante */
.materia-popup.datos-popup {
    width: 95% !important;   /* 🔹 un poco más ancho que lo normal */
    max-width: 800px !important; /* 🔹 limita ancho máximo en pantallas grandes */
}





.swal2-popup.materia-popup {
    border: 2px solid rgb(24, 14, 76);
    border-radius: 15px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
}
.swal2-confirm.materia-btn {
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgb(222, 166, 47), rgb(255, 204, 95));
    color: white;
    transition: all 0.3s ease-in-out;
}
.swal2-confirm.materia-btn:hover {
    background: linear-gradient(135deg, rgb(24, 14, 76), rgb(50, 30, 120));
    transform: scale(1.05);
}

/* Botón + de selección de electiva */
/* td debe ser relative para que el botón absolute se posicione dentro */
td {
    position: relative;
}

/* Estado normal: botón + centrado */
td button {
    position: absolute;  /* nos permite moverlo dentro del td */
    top: 50%;            
    left: 50%;           
    transform: translate(-50%, -50%); /* centrado */
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, rgb(222, 166, 47), rgb(255, 204, 95));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.5s ease-in-out;  /* transición más suave */
    box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Hover */
td button:hover {
    transform: scale(1.1) translate(-50%, -50%);
    box-shadow: 0px 6px 18px rgba(24,14,76,0.4);
    background: linear-gradient(135deg, rgb(24, 14, 76), rgb(50, 30, 120));
}

/* Estado activado: botón X en esquina superior izquierda */
td button.activado {
    top: 10px;   /* esquina superior izquierda */
    left: 10px;
    transform: none;  /* eliminamos centrado */
    background: linear-gradient(135deg, rgb(200, 50, 50), rgb(255, 80, 80)); /* rojo X */
}









/* Contenedor de la leyenda */
.leyenda-colores-compacta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
}

/* Cada cajita de color */
.color-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-box:hover {
  transform: scale(1.15);
}


.info-franja {
  flex-basis: 100%;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  background: #f8f9fa;
  border: 1px solid #DBA532; /* borde amarillo Facultad */
  color: #DBA532 !important; /* amarillo Facultad puro */
  font-weight: 500;
  min-height: 22px;
}

/* Colores según tu JS */
.color-box.base { background-color: rgba(0, 166, 255, 0.329); } 
.color-box.azul { background-color: rgb(21, 169, 228); } 
.color-box.verde { background-color: rgb(94, 218, 135); } 
.color-box.amarillo { background-color: yellow; } 
.color-box.naranja { background-color: #e1965d; } 
.color-box.rojo { background-color: hsl(1, 55.7%, 58.4%); } 
.color-box.electiva { background-color: rgb(23, 228, 235); } 











/* -------------------- Pagina 2 -------------------- */












/* -------------------- Fuente -------------------- */
@import url('https://fonts.googleapis.com/css?family=Poppins:wght@400;500;600;700;800&display=swap');
body { font-family: 'Poppins', sans-serif; }


