/* ==========================================================================
   1. VARIABLES DE DISENO
   ========================================================================== */
:root {
  --color-primario: #123c69;
  --color-secundario: #0e7490;
  --color-acento: #f5b642;
  --color-exito: #198754;
  --color-fondo: #f5f7fb;
  --color-tarjeta: #ffffff;
  --color-texto: #1d2733;
  --color-borde: #dde5ef;

  --fuente-principal: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fuente-titulos: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: var(--fuente-titulos) !important;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--fuente-principal);
  background-color: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

/* ==========================================================================
   3. NAVEGACION
   ========================================================================== */
.navbar {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  background-color: var(--color-primario) !important;
}

.navbar-esfp {
  background: var(--color-primario);
  box-shadow: 0 10px 30px rgba(18, 60, 105, 0.16);
  min-height: 118px;
}

.nav-logo {
  width: min(275px, 38vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 4px;
  background: #ffffff;
  border-radius: 8px;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.25rem;
  letter-spacing: 0;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  max-width: 220px;
}

.navbar .nav-link,
.navbar-nav .nav-link {
  position: relative;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: var(--fuente-principal);
  font-weight: 500;
  padding-left: 14px !important;
  padding-right: 14px !important;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 14px;
  background-color: var(--color-acento);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: calc(100% - 28px);
}

/* ==========================================================================
   4. HERO
   ========================================================================== */
.hero-esfp {
  background: linear-gradient(135deg, #123c69 0%, #0e7490 100%);
  color: #ffffff;
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-esfp::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  background: var(--color-acento);
}

.hero-esfp .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.hero-esfp .lead {
  color: rgba(255, 255, 255, 0.86);
  max-width: 680px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.hero-logo {
  width: min(360px, 94%);
  height: auto;
  margin-bottom: 1.5rem;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  filter:
    drop-shadow(0 2px 4px rgba(255, 255, 255, 0.36))
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.18));
}

.navbar-brand .hero-logo {
  width: 94px;
  height: 94px;
  margin-bottom: 0;
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.42));
}

.hero-panel h2 {
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 0;
}

.hero-photo-wrap {
  position: relative;
  margin: 0;
  padding: clamp(0.5rem, 1.2vw, 1rem);
}

.hero-photo-wrap::before,
.hero-photo-wrap::after {
  content: "";
  position: absolute;
  background: rgba(18, 92, 130, 0.42);
  z-index: 0;
}

.hero-photo-wrap::before {
  inset: 3.5rem auto auto -2.5rem;
  width: 58%;
  height: 42%;
}

.hero-photo-wrap::after {
  inset: auto -1.5rem 0 auto;
  width: 72%;
  height: 38%;
}

.hero-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 0;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   5. COMPONENTES
   ========================================================================== */
.feature-card {
  background: var(--color-tarjeta);
  border: 1px solid var(--color-borde);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 16px 38px rgba(18, 60, 105, 0.08);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: #e7f5f8;
  color: var(--color-secundario);
  font-weight: 800;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  margin-bottom: 0;
  color: #536271;
}

.info-band {
  background: #ffffff;
  border: 1px solid var(--color-borde);
  border-left: 6px solid var(--color-acento);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 16px 38px rgba(18, 60, 105, 0.08);
}

.footer-esfp {
  background: #0c263f;
}

.footer-esfp p {
  color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   6. SOBREESCRITURA DE BOOTSTRAP
   ========================================================================== */
.text-primary {
  color: var(--color-primario) !important;
}

.text-secondary {
  color: var(--color-secundario) !important;
}

.text-success {
  color: var(--color-exito) !important;
}

.bg-primary {
  background-color: var(--color-primario) !important;
}

.bg-success {
  background-color: var(--color-exito) !important;
}

.btn-primary {
  background-color: var(--color-primario) !important;
  border-color: var(--color-primario) !important;
  font-family: var(--fuente-principal);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-secundario) !important;
  border-color: var(--color-secundario) !important;
}

.btn-success {
  background-color: var(--color-exito) !important;
  border-color: var(--color-exito) !important;
}

/* ==========================================================================
   7. GALERIA Y UTILIDADES
   ========================================================================== */
.custom-scrollbar::-webkit-scrollbar {
  height: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--color-borde);
  border-radius: 4px;
}

.transition-all {
  transition: all 0.3s ease-in-out;
}

.insta-card:hover img {
  transform: scale(1.08);
}

.insta-card:hover .insta-overlay {
  opacity: 1 !important;
}

.inset-0 {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ==========================================================================
   8. REDES FLOTANTES
   ========================================================================== */
.redes-flotantes {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  z-index: 1080;
}

.red-icono {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 14px 0 0 14px;
  box-shadow: -4px 8px 20px rgba(12, 38, 63, 0.24);
  transition: transform 0.25s ease, width 0.25s ease, box-shadow 0.25s ease;
}

.red-icono i {
  font-size: 1.65rem;
  line-height: 1;
}

.red-icono.whatsapp {
  background-color: #25d366;
}

.red-icono.facebook {
  background-color: #1877f2;
}

.red-icono.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.red-icono.youtube {
  background-color: #ff0000;
}
.red-icono:hover,
.red-icono:focus-visible {
  width: 66px;
  color: #ffffff !important;
  transform: translateX(-8px);
  box-shadow: -6px 10px 26px rgba(12, 38, 63, 0.34);
}

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */
@media (max-width: 767px) {
  .redes-flotantes {
    top: auto;
    right: 16px;
    bottom: 18px;
    transform: none;
    flex-direction: row;
    gap: 10px;
  }

  .red-icono {
    width: 46px;
    height: 46px;
    border-radius: 50%;
  }

  .red-icono:hover,
  .red-icono:focus-visible {
    width: 46px;
    transform: translateY(-3px);
  }

  .red-icono i {
    font-size: 1.4rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-esfp {
    min-height: auto;
  }

  .nav-logo {
    width: min(190px, 62vw);
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .navbar-brand .hero-logo {
    width: 66px;
    height: 66px;
  }

  .brand-text small {
    display: none;
  }

  .hero-esfp {
    padding: 3.5rem 0;
  }

  .hero-panel,
  .hero-photo-wrap,
  .info-band,
  .feature-card {
    padding: 1.25rem;
  }
   
} 

/* ==========================================================================
   GALERÍA DE IMÁGENES ESCOLARES (ESTILOS NATIVOS GLOBALES)
   ========================================================================== */

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #000000;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 50%;
}

.border-transparent {
    border-color: transparent !important;
}

.active-thumb {
    opacity: 1 !important;
    box-shadow: 0 0 0 2px #ffffff !important;
}

.custom-scrollbar {
    scrollbar-width: thin;
}

.custom-scrollbar::-webkit-scrollbar {
    height: 5px !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.4) !important;
    border-radius: 4px !important;
}
/* ==========================================================================
   MEJORAS VISUALES DEL MODAL (BOTÓN PREMIUM Y ZOOM)
   ========================================================================== */

/* Fondo del modal más oscuro para centrar la atención en la foto */
.modal-backdrop.show {
    opacity: 0.85 !important;
}

/* Botón cerrar flotante optimizado para Bootstrap Icons */
.btn-custom-close {
    position: absolute;
    top: -50px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem; /* Modifica el grosor y tamaño de la cruz de Bootstrap */
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    z-index: 1070;
}

.btn-custom-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    color: #ffffff;
}


/* Zoom calibrado: ahora se amplía un 30% en lugar de un 80% */
.img-zoomable.is-zoomed {
    transform: scale(1.4) !important;
    cursor: zoom-out;
}

/* Medida intermedia calibrada para computadoras y tablets */
@media (min-width: 992px) {
    .modal-custom-med {
        max-width: 85% !important; /* Equilibrio perfecto entre el LG y el XL */
    }
}

/* Subimos un poquito el tope físico de la imagen para acompañar el nuevo ancho */
.zoom-container {
    overflow: auto;
    max-height: 80vh; /* Cambiado de 75 a 80 */
    background-color: #000000;
    border-radius: 8px;
}

.img-zoomable {
    max-height: 80vh; /* Cambiado de 75 a 80 */
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}


