/* =====================================================================
   Estilos compartidos por las páginas nuevas (calendario, niveles,
   profesores, símbolos y libro de reclamaciones).
   Mismos valores visuales que el resto del sitio.
   ===================================================================== */

.min-vh-80 {
  min-height: 80vh;
}

.min-vh-60 {
  min-height: 55vh;
  padding: 2rem 0;
}

.py-6 {
  padding: 6rem 0;
}

.pb-6 {
  padding-bottom: 6rem;
}

.mb-6 {
  margin-bottom: 3rem;
}

/* ---------- Hero ---------- */
.page-hero {
  background: linear-gradient(145deg, #04223A 0%, #0A4C7A 45%, #00BDFF 100%);
  color: white;
  position: relative;
  padding: 7rem 0 6rem;
}

.page-badge {
  background: #FFCF00;
  color: #0B1418;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  white-space: nowrap;
  background: linear-gradient(135deg, #ffd93d, #ffcd38);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.hero-img {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

/* ---------- Secciones ---------- */
.section-badge {
  background: #FFCF00;
  color: #0B1418;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 1rem;
}

/* ---------- Tarjetas y tablas ---------- */
.info-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
}

.info-card-header {
  background: linear-gradient(135deg, #0A4C7A 0%, #0B6FA4 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 15px 15px 0 0;
  margin: -2.5rem -2.5rem 2rem -2.5rem;
  text-align: center;
}

.data-table th {
  background: #f8f9fa;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.data-table td {
  text-align: center;
  padding: 1rem;
  vertical-align: middle;
}

.table-total {
  background: #e9ecef;
  font-weight: 600;
}

.note-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  border-radius: 5px;
}

.note-box p:last-child {
  margin-bottom: 0;
}

/* ---------- Plana docente ---------- */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.teacher-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  padding: 1.75rem;
  border-top: 4px solid #00BDFF;
  height: 100%;
}

.teacher-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4a5568;
  margin-bottom: 1rem;
}

.teacher-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.teacher-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f1f3f5;
  color: #2d3748;
  font-size: 0.95rem;
}

.teacher-card li:last-child {
  border-bottom: 0;
}

/* ---------- Símbolos ---------- */
.symbol-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  height: 100%;
  text-align: center;
}

.symbol-card img {
  max-height: 180px;
  margin-bottom: 1.5rem;
}

.symbol-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0A4C7A 0%, #00BDFF 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
}

.motto {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0A4C7A;
  font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .info-card {
    padding: 1.5rem;
  }

  .info-card-header {
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
  }
}

/* =====================================================================
   Libro de Reclamaciones (formulario)
   ===================================================================== */
.libro-hero-icon {
  width: 260px;
  height: 260px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid rgba(255, 207, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 110px;
  color: #FFCF00;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: libro-flota 4s ease-in-out infinite;
}

@keyframes libro-flota {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .libro-hero-icon { animation: none; }
}

@media (max-width: 768px) {
  .libro-hero-icon {
    width: 170px;
    height: 170px;
    font-size: 72px;
    margin-top: 2.5rem;
  }
}

.reclamo-form {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .reclamo-form { padding: 1.5rem; }
}

.reclamo-form .form-label {
  font-weight: 600;
  color: #24384a;
}

.reclamo-form .form-control,
.reclamo-form .form-select {
  border-radius: 12px;
  border-color: #d7e3ec;
}

.reclamo-form .form-control:focus,
.reclamo-form .form-select:focus {
  border-color: #00BDFF;
  box-shadow: 0 0 0 0.2rem rgba(0, 189, 255, 0.15);
}

.form-seccion {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0A4C7A;
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #eaf3f9;
}

.form-seccion span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #FFCF00;
  color: #0B1418;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
}

.tipo-opciones {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tipo-opcion {
  cursor: pointer;
  position: relative;
}

.tipo-opcion input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tipo-opcion span {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  border: 2px solid #d7e3ec;
  font-weight: 600;
  color: #33566f;
  transition: all 0.2s ease;
}

.tipo-opcion input:checked + span {
  background: #0A4C7A;
  border-color: #0A4C7A;
  color: #fff;
}

.tipo-opcion input:focus-visible + span {
  outline: 3px solid rgba(0, 189, 255, 0.45);
  outline-offset: 2px;
}

.aviso-info {
  background: #eaf7fd;
  border-left: 4px solid #00BDFF;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
}

.aviso-error {
  background: #fdecec;
  border-left: 4px solid #d9534f;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  color: #842029;
}

.aviso-error ul {
  margin-bottom: 0.5rem;
}

.aviso-error li {
  font-weight: 600;
}

/* ---------- Portal del Personal ---------- */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.portal-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
}

/* La última tarjeta ocupa toda la fila y se lee en horizontal */
.portal-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 992px) {
  .portal-card.portal-card--wide {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem 2rem;
  }

  .portal-card--wide .portal-icon {
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .portal-card--wide .portal-link {
    align-self: flex-start;
  }
}

.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 18px;
  border-top: 4px solid #00BDFF;
  padding: 2rem 1.75rem 1.6rem;
  box-shadow: 0 8px 28px rgba(4, 34, 58, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 44px rgba(4, 34, 58, 0.18);
}

.portal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin-bottom: 1.1rem;
  font-size: 1.5rem;
  color: #FFCF00;
  background: linear-gradient(135deg, #04223A 0%, #0B6FA4 55%, #00BDFF 100%);
  box-shadow: 0 8px 18px rgba(11, 111, 164, 0.28);
}

.portal-tag {
  align-self: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: 50px;
  background: #eaf7fd;
  border: 1px solid #cdeafb;
  color: #0A4C7A;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.portal-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #04223A;
  margin-bottom: 0.6rem;
}

.portal-card p {
  flex: 1 1 auto;
  margin-bottom: 1.2rem;
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
}

.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0B6FA4;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

/* Toda la tarjeta queda como zona de clic */
.portal-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
}

.portal-link:hover,
.portal-link:focus-visible {
  color: #00A9E8;
}

.portal-link i {
  transition: transform 0.2s ease;
}

.portal-card:hover .portal-link i {
  transform: translateX(4px);
}

.portal-note {
  height: 100%;
  padding: 1.6rem;
  border-radius: 16px;
  border-left: 4px solid #FFCF00;
  background: white;
  box-shadow: 0 6px 22px rgba(4, 34, 58, 0.08);
}

.portal-note i {
  display: block;
  margin-bottom: 0.7rem;
  color: #0B6FA4;
  font-size: 1.35rem;
}

.portal-note h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #04223A;
  margin-bottom: 0.5rem;
}

.portal-note p {
  margin-bottom: 0;
  color: #4a5568;
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .portal-card {
    padding: 1.5rem 1.35rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-card,
  .portal-card:hover {
    transform: none;
    transition: none;
  }

  .portal-card:hover .portal-link i {
    transform: none;
  }
}
