:root {
  --azul-aprobada: #0b2c4d;     /* azul marino */
  --rojo-reprobada: #b02a37;
  --gris-sin: #e6e6e6;
  --borde: #1f1f1f;
}


.reticula-container {
  width: 100%;
  overflow-x: auto;
  padding: 1rem;
}


.reticula-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(180px, 1fr));
  gap: 12px;
}

.columna-cuatrimestre {
  border: 2px solid var(--borde);
  background: #f9f9f9;
}

.columna-header {
  background: #000;
  color: #fff;
  text-align: center;
  font-weight: bold;
  padding: 0.5rem;
}

.materia {
  border: 1px solid var(--borde);
  margin: 0.5rem;
  padding: 0.5rem;
  font-size: 0.85rem;
  text-align: center;
  border-radius: 4px;
}

.materia.aprobada {
  background-color: var(--azul-aprobada);
  color: #fff;
}

.materia.reprobada {
  background-color: var(--rojo-reprobada);
  color: #fff;
}

.materia.sin-calificar {
  background-color: var(--gris-sin);
  color: #000;
}


.columna-optativas {
  border: 3px dashed #444;
  background: #f1f1f1;
}

@media (max-width: 768px) {

  .reticula-grid {
    grid-template-columns: 1fr;
  }

  .columna-cuatrimestre {
    margin-bottom: 1rem;
  }

  .columna-header {
    font-size: 1.1rem;
  }

}


/*AQUI VAN LOS ESTILOS PARA EL BOTON DE RETICULA Y DE LISTA DE CALIFICACIONES*/
/* Contenedor */
/* CONTENEDOR PRINCIPAL */
#seleccionDeVista {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: stretch;
    margin-top: 40px;
    padding: 0 20px;
}

/* CARD GENERAL */
.card-vista {
    background-color: #ffffff;
    width: 320px;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* IMAGEN */
.card-img {
    
    height: 100%;
    margin-bottom: 15px;
    object-fit: contain;
}

/* TÍTULO */
.card-vista h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1f2a44; /* azul marino */
}

/* DESCRIPCIÓN */
.card-vista p {
    font-size: 14px;
    color: #6b6b6b; /* gris */
    margin-bottom: 20px;
}

/* BOTÓN */
.card-vista button {
    margin-top: auto;
    padding: 12px 22px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

/* CARD LISTA */
.card-lista button {
    background-color: #ff6600;
}

.card-lista button:hover {
    background-color: #e65c00;
}

/* CARD RETÍCULA */
.card-reticula button {
    background-color: #1f2a44;
}

.card-reticula button:hover {
    background-color: #162033;
}

/* EFECTO HOVER CARD */
.card-vista:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #seleccionDeVista {
        flex-direction: column;
        align-items: center;
    }

    .card-vista {
        width: 100%;
        max-width: 360px;
    }
}

/*ANIMACION DE TRANSICION*/
/* ESTADO BASE DE SECCIONES */
.vista {
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* CUANDO SE MUESTRA */
.vista.activa {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
