/* =========================================================
   1) UTILIDADES
========================================================= */
.icon-12px { font-size: 12px; line-height: 1; }
.icon-16px { font-size: 16px; line-height: 1; }
.icon-20px { font-size: 20px; line-height: 1; }
.icon-24px { font-size: 24px; line-height: 1; }
.icon-32px { font-size: 32px; line-height: 1; }
.icon-40px { font-size: 40px; line-height: 1; }

.margen-componentes { margin-bottom: 30px; }


/* =========================================================
   2) RESET / BASE
========================================================= */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

footer {
  margin: 0;
  padding: 0;
  display: block;
}

.footer-bottom {
  margin: 0;
  padding: 0;
  line-height: 0;   /* elimina espacio fantasma por imagen inline */
}

.footer-bottom img {
  display: block;   /* clave */
  width: 100%;
  height: auto;
}

.landing-footer,
.footer-top,
.footer-bottom {
  margin: 0;
  padding: 0;
}

.footer-bottom {
  background: #6c757d; /* o el color real de tu bg-secondary */
  line-height: 0;
}

.footer-bottom img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   3) TIPOGRAFÍA / TÍTULOS
========================================================= */
.mi-h2-especial {
  font-size: 38px;
}

.texto-banner-inicio {
  font-size: 36px;
}


/* =========================================================
   4) FOOTER
========================================================= */
.landing-footer {
  font-size: 15px;
  line-height: 1.5;
}

.landing-footer h5 {
  font-size: 16px;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  line-height: 0;
}

.footer-bottom img {
  display: block;
}


/* =========================================================
   5) FRANJA / BLOQUE READI
========================================================= */
.full-bleed {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-top: -20px;
  margin-left: -50vw;
  margin-right: 0;
  padding: 14px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  background: #394960ff;
}

.full-bleed,
.full-bleed * {
  font-family: "Ancizar Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 700;
}

.linea-readi {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(1.25rem, 6vw, 3rem);
  font-weight: bold;
}

.static {
  color: #fff;
}

.slide-text {
  display: inline-block;
  will-change: transform, opacity;
  transition: transform 0.45s ease, opacity 0.1s ease;
  color: #ff9015;
}

.slide-text.enter {
  opacity: 0;
  transform: translateY(-0.6em);
}

.slide-text.active {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   6) NAVBAR / BÚSQUEDA
========================================================= */
.navbar.sub-navbar {
  z-index: 1030;
  overflow-x: clip;
}

.navbar.sticky-top.sub-navbar {
  background: #fff !important;
  backdrop-filter: none !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.readi-nav-shell {
  position: relative;
  overflow-x: clip;
}

.readi-brand {
  margin-right: 0;
  min-width: 0;
}

.readi-brand-logo {
  width: 232px;
  height: 40px;
  margin-left: 12px;
  max-width: 100%;
  object-fit: contain;
}

.navbar-collapse {
  min-width: 0;
}

.navbar-nav {
  min-width: 0;
}

.btn-nav {
  white-space: nowrap;
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
}

/* Panel de búsqueda */
#navSearchBar {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  width: min(720px, 94vw);
  transform: translate(-50%, 0);
  z-index: 1100;
}

#navSearchBar .search-card {
  padding: 8px;
  border-radius: 999px;
  background: rgba(32, 39, 53, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

#navSearchBar .form-control {
  background: transparent;
  color: #fff;
  border: none;
  box-shadow: none;
}

#navSearchBar .form-control::placeholder {
  color: rgba(255, 255, 255, 0.8);
}


/* =========================================================
   7) MODAL AUTH
========================================================= */
#authModal {
  --readi-orange: #ff9015;
  --readi-orange-rgb: 255, 144, 21;
}

#authModal .nav-pills {
  gap: 0.75rem;
}

#authModal .nav-pills .nav-link {
  padding: 0.5rem 1.1rem;
  line-height: 1;
  border: 1px solid var(--readi-orange);
  border-radius: 999px;
  background: transparent;
  color: #000;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}

#authModal .nav-pills .nav-link:hover,
#authModal .nav-pills .nav-link:focus {
  background-color: var(--readi-orange);
  color: #fff;
  border-color: var(--readi-orange);
  box-shadow: 0 0 0 0.2rem rgba(var(--readi-orange-rgb), 0.25);
}

#authModal .nav-pills .nav-link.active {
  background-color: var(--readi-orange);
  color: #fff;
  border-color: var(--readi-orange);
}

#authModal .nav-pills .nav-link:not(.active) {
  color: #000;
}

#authModal .modal-body {
  position: relative;
  padding-top: 96px;
}

#authModal .auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 70px;
  height: 70px;
  cursor: pointer;
  z-index: 2;
}


/* =========================================================
   8) FRANJA SUPERIOR GOB.MX
========================================================= */
.top-gob-links {
  gap: 12px;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  font-size: 0.9rem;
}

.top-gob-links a {
  color: #fff;
  text-decoration: none;
}

.top-gob-links a span {
  white-space: nowrap;
}


/* =========================================================
   9) RESPONSIVE
========================================================= */

/* <= 992px */
@media (max-width: 992px) {
  .linea-readi {
    font-size: 2.5rem;
  }
}

/* <= 768px */
@media (max-width: 768px) {
  .linea-readi {
    font-size: 2rem;
    flex-wrap: wrap;
    white-space: normal;
  }
}

/* <= 600px */
@media (max-width: 600px) {
  .linea-readi {
    white-space: normal;
    line-height: 1.2;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .static {
    display: block;
    width: 100%;
  }

  #rotating-text {
    display: block;
    width: auto !important;
    max-width: 100%;
    margin: 0 auto;
    white-space: normal;
  }
}

/* <= 576px */
@media (max-width: 576px) {
  .readi-brand-logo {
    margin-left: 0;
    max-width: 180px;
    height: auto;
  }

  .mi-h2-especial {
    font-size: clamp(13px, 4vw, 20px) !important;
  }

  .texto-banner-inicio {
    font-size: clamp(13px, 4vw, 20px) !important;
    line-height: 1.4;
  }

  .full-bleed {
    padding: 10px 12px;
  }

  .linea-readi .static,
  .linea-readi .slide-text {
    font-size: 21px !important;
  }

  #rotating-text {
    min-width: 0 !important;
  }
}

/* <= 480px */
@media (max-width: 480px) {
  .linea-readi {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .slide-text {
    display: block;
    margin-top: 0.3rem;
  }
}

/* <= 420px */
@media (max-width: 420px) {
  .top-gob-links {
    gap: 8px;
    font-size: 0.8rem;
  }

  #header img {
    width: 100px;
    height: auto;
  }
}
