:root {
  --color-principal: #102a43;
  --color-secundario: #243b6b;
  --color-acento: #ffc107;
  --color-fondo: #f4f7fb;
  --color-texto: #1f2937;
}

/* =========================
   BASE GENERAL
========================= */
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--color-fondo);
  color: var(--color-texto);
}

/* =========================
   NAVBAR
========================= */
.navbar-profe28 {
  background: rgba(16, 42, 67, 0.96);
  backdrop-filter: blur(10px);
}

.navbar-profe28 .nav-link {
    color: rgba(255,255,255,.65);
    transition: all .3s ease;
}

.navbar-profe28 .nav-link:hover {
    color: #ffffff;
}

.navbar-profe28 .nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}

/* =========================
   HERO PRINCIPAL
========================= */
.hero-profe28 {
  min-height: auto;
  padding-top: 90px;
  padding-bottom: 40px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, .35), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255, 193, 7, .25), transparent 35%),
    linear-gradient(135deg, #102a43 0%, #243b6b 55%, #0f172a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-profe28::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .35;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.badge-soft {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  border-radius: 999px;
  padding: .55rem .9rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.hero-title {
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--color-acento);
}

.hero-texto {
  text-align: justify;
  text-align-last: left;
  line-height: 1.6;
  max-width: 580px;
  color: rgba(160, 151, 151, 0.85) !important;
}

/* =========================
   LOGIN
========================= */
.login-card {
  background: rgba(255, 255, 255, .96);
  color: #1f2937;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, #ffc107, #ffda6a);
  padding: 1.4rem;
}

.form-control {
  border-radius: 14px;
  padding: .8rem 1rem;
}

/* =========================
   BOTONES
========================= */
.btn-acceso {
  background: linear-gradient(135deg, #102a43, #243b6b);
  color: white;
  border: none;
  border-radius: 14px;
  padding: .85rem;
  font-weight: 700;
}

.btn-acceso:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(16, 42, 67, .25);
}

.btn-publico {
  background: var(--color-acento);
  border: none;
  border-radius: 999px;
  padding: .8rem 1.3rem;
  font-weight: 700;
  color: #21371f;
}

.btn-publico:hover {
  background: #ffca2c;
  color: #1f2937;
}

.btn-outline-light-custom {
  border: 1px solid rgba(255, 255, 255, .45);
  color: white;
  border-radius: 999px;
  padding: .8rem 1.3rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-outline-light-custom:hover {
  background: white;
  color: var(--color-principal);
}

/* =========================
   SECCIONES GENERALES
========================= */
.section-title {
  font-weight: 800;
  color: var(--color-principal);
}

/* =========================
   ACCESOS PÚBLICOS
========================= */
#publico {
  background: linear-gradient(135deg, #061d36 0%, #0b3564 55%, #08213f 100%);
  position: relative;
  overflow: hidden;
}

#publico::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .45;
}

#publico .container {
  position: relative;
  z-index: 2;
}

.titulo-publico {
  color: #fff;
  font-weight: 800;
}

.subtitulo-publico {
  color: rgba(255,255,255,.72);
}

.linea-publico {
  width: 65px;
  height: 4px;
  background: #ffc107;
  border-radius: 20px;
  margin: 14px auto 0;
}

/* =========================
   CARDS ACCESOS PÚBLICOS
========================= */
.public-card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.public-card-pro {
  height: 100%;
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  transition: all .3s ease;
}

.public-card-link:hover .public-card-pro {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  border-color: #ffc107;
}

.public-card-img {
  height: 130px;
  position: relative;
  overflow: visible;
}

.public-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.05), rgba(0,0,0,.2));
}

.public-icon-float {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  font-size: 24px;
}

.public-card-body {
  padding: 44px 16px 22px;
  text-align: center;
  min-height: 130px;
}

.public-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #092a55;
  margin-bottom: 6px;
}

.public-card-text {
  font-size: .85rem;
  color: #5f6f83;
}

.public-card-link:hover .public-card-title {
  color: #0d6efd;
}

/* =========================
   CARDS SIMPLES
========================= */
.public-card {
  border: 0;
  border-radius: 24px;
  height: 100%;
  box-shadow: 0 12px 35px rgba(15, 23, 42, .08);
  transition: all .25s ease;
  overflow: hidden;
  background: white;
}

.public-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, .16);
}

.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  background: #dbeafe;
  color: #1d4ed8;
}

/* =========================
   CAJAS / FEATURES
========================= */
.stats-box {
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 35px rgba(15, 23, 42, .08);
  padding: 2rem;
}

/* =========================
   FOOTER
========================= */
.footer-profe28 {
  background: #0f172a;
  color: #cbd5e1;
}

/* =========================
   BOTÓN FLOTANTE
========================= */
.floating-access {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  border-radius: 999px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .25);
}

#btnArrow {
  width: 50px;
  height: 50px;
  border-radius: 10px 10px 0 0;
  background-color: #3d0e72;
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#btnArrow a,
#btnArrow i {
  color: #ffffff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* =========================
   PÁGINA HIMNOS PATRIOS
========================= */

.hero-himnos {
  background: linear-gradient(135deg, #0b2b52 0%, #123f7a 60%, #0b2b52 100%);
  padding: 90px 0 45px;
  position: relative;
  overflow: hidden;
}

.hero-himnos::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 35px 35px;
}

.hero-himnos .container {
  position: relative;
  z-index: 2;
}

.titulo-himnos {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
}

.subtitulo-himnos {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  max-width: 850px;
  margin: auto;
}

.linea-himnos {
  width: 85px;
  height: 4px;
  background: #ffc107;
  border-radius: 999px;
  margin: 20px auto 0;
}

.card-himno {
  background: #ffffff;
  border: 2px solid #dbe3ef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transition: all .28s ease;
  height: 100%;
}

.card-himno:hover {
  transform: translateY(-6px);
  border-color: #0d6efd;
  box-shadow: 0 18px 35px rgba(0,0,0,.16);
}

.card-header-himno {
  background: linear-gradient(135deg, #114b9b, #0b2f63);
  padding: 18px 14px;
  border-bottom: 4px solid #ffc107;
  text-align: center;
}

.card-header-himno h5 {
  color: #fff;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-body-himno {
  padding: 16px;
}

.audio-box {
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 10px;
}

.audio-box audio {
  width: 100%;
}

.modal-letra-content {
  border: none;
  border-radius: 0 !important;
  background: #111827;
  height: 100vh;
}

.modal-header-letra {
  background: #0f172a;
  color: #ffffff;
  border-bottom: 4px solid #ffc107;
  padding: 12px 22px;
}

.modal-header-letra .modal-title {
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
}

.modal-body-letra {
  background: #111827;
  color: #ffffff;
  padding: 22px 34px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.letra-titulo {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 900;
  color: #ffc107;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.letra-himno {
  column-count: 3;
  column-gap: 42px;
  column-rule: 1px solid rgba(255,255,255,.18);

  font-size: 1.45rem;
  line-height: 1.20;

  font-weight: 600;
  text-align: left;
  color: #ffffff;
}

.estrofa {
  break-inside: avoid;
  margin-bottom: 14px;
}

.estrofa p {
  margin: 0 0 4px;
}

.logo-contacto {
  max-width: 220px;
  opacity: 0.95;
}
/*logo contacto*/
.logo-contacto-box {
  border-top: 1px solid rgba(0,0,0,.08);
}
/* =========================
   PÁGINA EFEMÉRIDES
========================= */

.hero-efemerides {
  background:
    radial-gradient(circle at top left, rgba(255,193,7,.20), transparent 30%),
    radial-gradient(circle at bottom right, rgba(13,110,253,.20), transparent 35%),
    linear-gradient(135deg, #061d36 0%, #0b3564 60%, #08213f 100%);
  padding: 85px 0 55px;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-efemerides::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 34px 34px;
}

.hero-efemerides .container {
  position: relative;
  z-index: 2;
}

.titulo-efemerides {
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
}

.linea-efemerides {
  width: 85px;
  height: 4px;
  background: #ffc107;
  border-radius: 30px;
  margin: 18px auto 0;
}

.filtro-box {
  margin-top: -35px;
  position: relative;
  z-index: 5;
}

.filtro-card {
  background: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 15px 40px rgba(15,23,42,.12);
}

.resumen-card {
  border-radius: 18px;
  background: white;
  padding: 22px;
  height: 100%;
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
  border-left: 5px solid #0d6efd;
  transition: all .25s ease;
}

.resumen-card:hover {
  transform: translateY(-4px);
}

.resumen-card i {
  font-size: 2rem;
}

.destacado-dia {
  border-radius: 22px;
  background: linear-gradient(135deg, #ffc107, #ffda6a);
  padding: 26px;
  box-shadow: 0 14px 35px rgba(0,0,0,.15);
}

.destacado-dia h3 {
  font-weight: 900;
  color: #102a43;
}

.titulo-seccion {
  font-weight: 900;
  color: #102a43;
}

.mes-card {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  box-shadow: 0 12px 32px rgba(15,23,42,.10);
  transition: all .25s ease;
  height: 100%;
}

.mes-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(15,23,42,.18);
}

.mes-header {
  padding: 16px 18px;
  color: white;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.mes-header i {
  font-size: 1.1rem;
}

.mes-body {
  background: white;
}

.fecha-item-linea {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 14px;
  border-bottom: 1px dashed #dbe3ef;
  background: #ffffff;
}

.fecha-item-linea:last-child {
  border-bottom: none;
}

.dia-linea {
  min-width: 48px;
  height: 42px;
  border-radius: 12px;
  background: #eef4ff;
  color: #0d47a1;
  font-weight: 900;
  display: grid;
  place-items: center;
  font-size: .9rem;
}

.fecha-contenido-linea {
  flex: 1;
}

.fecha-titulo-linea {
  color: #102a43;
  font-size: .95rem;
  line-height: 1.35;
  font-weight: 500;
}

.badge-etiqueta {
  margin-top: 5px;
  font-size: .7rem;
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 700;
}

.fecha-item-linea.forma-1 .dia-linea {
  background: #fff1f2;
  color: #dc3545;
}

.fecha-item-linea.forma-2 .dia-linea {
  background: #eaf2ff;
  color: #0d6efd;
}

.fecha-item-linea.forma-3 .dia-linea {
  background: #ecfdf3;
  color: #198754;
}

.fecha-item-linea.localidad .dia-linea {
  background: #fff8db;
  color: #9a6700;
}

.bg-marzo {
  background: linear-gradient(135deg, #6f42c1, #4b238c);
}

.bg-abril {
  background: linear-gradient(135deg, #0d6efd, #0b47a1);
}

.bg-mayo {
  background: linear-gradient(135deg, #198754, #0f6848);
}

.bg-junio {
  background: linear-gradient(135deg, #0dcaf0, #087990);
}

.bg-julio {
  background: linear-gradient(135deg, #6c757d, #495057);
}

.bg-agosto {
  background: linear-gradient(135deg, #fd7e14, #b45309);
}

.bg-septiembre {
  background: linear-gradient(135deg, #198754, #157347);
}

.bg-octubre {
  background: linear-gradient(135deg, #ffc107, #d39e00);
}

.bg-noviembre {
  background: linear-gradient(135deg, #dc3545, #a71d2a);
}

.bg-diciembre {
  background: linear-gradient(135deg, #212529, #000);
}

/* termometro rag */
.contador-profe28 {
  background: linear-gradient(135deg, #19c4df 0%, #0d6efd 55%, #28128c 100%);
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

.contador-item {
  color: #ffffff;
  padding: 14px 10px;
}

.contador-item i {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.contador-item h3 {
  font-size: 2.2rem;
  font-weight: 900;
  margin: 0;
}

.contador-item p {
  margin: 4px 0 0;
  font-size: .9rem;
  font-weight: 600;
}

.contador-central {
  border-left: 1px solid rgba(255,255,255,.28);
  border-right: 1px solid rgba(255,255,255,.28);
}

.contador-nota {
  background: rgba(255,255,255,.15);
  color: #ffffff;
  border-radius: 999px;
  text-align: center;
  padding: 8px 14px;
  font-size: .85rem;
  font-weight: 600;
}

/* =========================
   RESPONSIVE NOTEBOOK
========================= */
@media (max-width: 1200px) {

  .letra-himno {
    column-count: 3;
    font-size: .98rem;
    line-height: 1.25;
    column-gap: 32px;
  }

}

/* =========================
   RESPONSIVE TABLET
========================= */
@media (max-width: 991px) {

  .hero-profe28 {
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .login-card {
    margin-top: 2rem;
  }

}

/* HIMNOS TABLET */
@media (max-width: 900px) {

  .letra-himno {
    column-count: 2;
    font-size: 1rem;
  }

}

/* =========================
   RESPONSIVE MOBILE
========================= */
@media (max-width: 576px) {

  .hero-texto {
    text-align-last: left;
    line-height: 1.6;
    max-width: 580px;
    color: rgba(160, 151, 151, 0.85) !important;
  }

  #publico .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  #contenedorPublico {
    padding-left: 4px;
    padding-right: 4px;
  }

  .public-card-img {
    height: 200px;
  }

  .public-icon-float {
    width: 60px;
    height: 60px;
    bottom: -34px;
    font-size: 24px;
  }

  .public-card-body {
    padding: 60px 16px 24px;
    min-height: 150px;
  }

  .public-card-title {
    font-size: 1.1rem;
  }

  .public-card-text {
    font-size: .9rem;
    line-height: 1.4;
  }

  .stats-box {
    margin-bottom: 1.25rem;
  }

  .row.g-3 > [class*="col-"] {
    margin-bottom: .75rem;
  }

  #btnArrow {
    width: 50px;
    height: 50px;
    right: 20px;
    bottom: 30px;
  }

  /* HIMNOS MOBILE */

  .hero-himnos {
    padding: 80px 0 35px;
  }

  .titulo-himnos {
    font-size: 2.5rem;
  }

  .subtitulo-himnos {
    font-size: .95rem;
    padding: 0 10px;
  }

  .modal-body-letra {
    padding: 18px;
  }

  .letra-titulo {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

  .letra-himno {
    column-count: 1;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
  }

  .card-header-himno h5 {
    font-size: 1rem;
  }

  /* EFEMÉRIDES MOBILE */

  .hero-efemerides {
    padding: 75px 0 45px;
  }

  .titulo-efemerides {
    font-size: 2.4rem;
  }

  .fecha-item-linea {
    padding: 12px;
  }

  .dia-linea {
    min-width: 42px;
    height: 40px;
    font-size: .8rem;
  }

  .fecha-titulo-linea {
    font-size: .9rem;
  }

  .resumen-card {
    margin-bottom: 10px;
  }
  /*termometro*/
  .contador-profe28 {
    padding: 20px 14px;
  }

  .contador-central {
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(255,255,255,.25);
    border-bottom: 1px solid rgba(255,255,255,.25);
  }

  .contador-item h3 {
    font-size: 2rem;
  }
}