/* TIPOGRAFÍAS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


body {
  font-family: 'Inter', sans-serif;
  color: #000000;
}

/* TITULOS */
h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  color: #255B9B;
  font-weight: 700;
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@media(min-width: 576px) {
    .container, .container-sm {
        max-width: 540px;
    }
}
@media(min-width: 768px) {
    .container, .container-md, .container-sm {
        max-width: 720px;
    }
}
@media(min-width: 992px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 960px;
    }
}
@media(min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1140px;
    }
}
@media(min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1320px;
    }
}

/**************************** TOP HEADER **************************/
/* HEADER */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 5px 0;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
  background-color: transparent;
}

/* Contenedor interno */
.main-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGOS */
.logo-header{
  position: relative;
}
.logo-img { 
  height: 60px; 
  transition: opacity 0.3s ease; 
}
.scroll-logo {     
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 50px;
  transition: opacity 0.3s ease;
}

/* MENÚ */
.nav-menu ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: #fff; /* color inicial blanco */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* CALL INFO */
.header-right {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

/* SCROLLED STATE (se aplica en home al hacer scroll) */
.main-header.scrolled {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-header .default-logo { opacity: 1; transition: opacity 0.3s ease; }
.main-header .scroll-logo  { opacity: 0; transition: opacity 0.3s ease; }

.main-header.scrolled .default-logo { opacity: 0; }
.main-header.scrolled .scroll-logo  { opacity: 1; }

.main-header .nav-menu a,
.main-header .header-right, .main-header .header-right a {
  color: #fff;
  transition: color 0.3s ease;
}

.main-header.scrolled .nav-menu a,
.main-header.scrolled .header-right,
.main-header.scrolled .header-right a {
  color: #000;
}

/* ===== FOOTER ===== */
.sect_foot {
  background: radial-gradient(circle at top left, #002c84, #0d47a1);
  color: #ffffff;
  padding: 60px 20px 20px;
  font-family: 'Inter', sans-serif;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Columna Logo */
.footer-logo img {
  width: 180px;
  margin-bottom: 15px;
}
.footer-logo p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  font-weight: 400;
}

/* Links */
.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffca28;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #ffca28;
}

/* Contacto */
.contact-info li {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Redes sociales */
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social .social-icon {
  color: #ffffff;
  font-size: 18px;
  transition: color 0.3s ease;
}
.footer-social .social-icon:hover {
  color: #ffca28;
}
/* Barra inferior */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 40px;
  padding-top: 15px;
  font-size: 13px;
}

/**/

.form-group {
    position: relative;
}
.form-group .form-control {
  padding: 15px 10px 15px 20px;
  font-size: 12px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.32px;
  position: relative;
  color: #7A7F85;
  border: none;
  background: #F8F8FF;
  border-radius: 30px;
  border: 1px solid #9EA2A8;
  height: 100%;
}
.form-group .form-control:focus {
  color: #7A7F85;
  background: #F8F8FF;
  outline: 0;
  box-shadow: none;
}
.form-group .form-control::placeholder { 
  color: #7A7F85;
  font-size: 12px;
}
.form-group.has-search i {
  position: absolute;
  right: 4px;
  top: 4px;
  border-radius: 50px;
  background-color: #FA9A41;
  font-size: 24px;
  font-weight: 400;
  color: #F8F8FF;
  padding: 8px;
}
.b-unstyle {
    border: 0;
    background: transparent;
    display: contents;
}
.b-unstyle:focus{
  outline: none;
}

/* ======== MOBILE MENU TOGGLE BUTTON ======== */
.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

.main-header.scrolled .mobile-menu-toggle {
  color: #000;
}

/* Show only on small screens */
@media (max-width: 768px) {
  .nav-menu {
    display: none !important;
  }
  .header-right {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }

  .header-right {
    gap: 20px;
  }
}

/* ======== OFFCANVAS MENU STYLES ======== */
.mobile-offcanvas {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  padding: 20px;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  transition: left 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-offcanvas.active {
  left: 0;
}

.offcanvas-footer {
  text-align: center;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.offcanvas-contact p {
  margin: 0;
}

.offcanvas-social {
  justify-content: center;
}

/* Overlay */
.offcanvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.offcanvas-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Header dentro del menú */
.offcanvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.menu-title {
  font-size: 1.2rem;
  color: #000000;
}

.close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #002c84;
  cursor: pointer;
}

/* Links */
.offcanvas-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.offcanvas-nav ul li {
  margin-bottom: 12px;
}

.offcanvas-nav ul li a {
  color: #002c84;
  font-weight: 500;
  font-size: 1rem;
  display: block;
}

/* Contacto */
.offcanvas-contact {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #333;
}
.offcanvas-contact i {
  margin-right: 8px;
}

/* Redes sociales */
.offcanvas-social {
  display: flex;
  gap: 12px;
}
.offcanvas-social a {
  font-size: 18px;
  color: #002c84;
  transition: color 0.3s ease;
}
.offcanvas-social a:hover {
  color: #ffca28;
}


/* Responsivo */
@media (max-width: 992px) {
  .footer-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
}


@media (max-width: 767px) {
  /* Ajustes globales */
  body {
    font-size: 14px;
  }

  h1, h2, h3 {
    font-size: 1.3rem;
  }
}

/* Panel lateral */
.detalle-libro-panel {
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    max-width: 900px;
    height: 100%;
    background: #fff;
    transition: right 0.4s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
}

/* Mostrar panel */
.detalle-libro-panel.active {
    right: 0;
}

/* Overlay oscuro */
.detalle-libro-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

/* Mostrar overlay */
.detalle-libro-overlay.active {
    display: block;
}

/* Header del panel */
.detalle-libro-header {
    padding: 1rem;
    text-align: right;
}

.detalle-libro-header .close {
    font-size: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #000000;
}

/* Cuerpo del panel */
.detalle-libro-body {
    padding: 1.5rem;
    font-size: 14px;
}
.detalle-libro-contenido h4{
  color: #000000;
  font-size: 20px;
}
.detalle-libro-contenido h5{
  color: #000000;
  font-size: 18px;
}
/* Estilo lista de detalles */
.detalle-lista li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.recursos-electronicos ul li {
    margin-bottom: 5px;
}

/* Imagen responsiva */
.detalle-libro-contenido img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 768px) {
    .detalle-libro-panel {
        width: 100%;
        max-width: 100%;
    }

    .detalle-libro-body {
        padding: 1rem;
    }

    .detalle-libro-header {
        text-align: left;
    }

    .detalle-libro-contenido .row {
        flex-direction: column;
    }

    .detalle-libro-contenido .col-md-4,
    .detalle-libro-contenido .col-md-8 {
        width: 100%;
    }

    .detalle-libro-contenido h4 {
        font-size: 20px;
    }
}
