/* Homepage critical bundle — un solo CSS bloqueante en movil */

/* === hp-fonts-critical.css === */

/* Homepage critical fonts — solo Bold + FA solid (navbar). Regular/brands llegan con theme/FA async. */
@font-face {
  font-family: "Montserrat-Bold";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/templates/nic-2026/assets/fonts/Montserrat-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/webfonts/fa-solid-900.woff2") format("woff2");
}

/* Navbar icons — until fontawesome-all.min.css loads async */
.fa,
.fas {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.fa-search:before {
  content: "\f002";
}

.fa-headphones:before {
  content: "\f025";
}

.fa-user:before {
  content: "\f007";
}

.fa-language:before {
  content: "\f1ab";
}

.fa-flag:before {
  content: "\f024";
}

.fa-exclamation-circle:before {
  content: "\f06a";
}

.fa-exclamation-triangle:before {
  content: "\f071";
}

.fa-info-circle:before {
  content: "\f05a";
}

.fa-check-circle:before {
  content: "\f058";
}

.fa-redo-alt:before {
  content: "\f2f9";
}

/* === hp-layout-critical.css === */

/* Fase E — reserva de layout homepage (CLS móvil) hasta que cargue theme.css async */
.homesearch_text {
  /* Bold en critical path — evita fetch de Montserrat-Regular antes del LCP */
  font-family: "Montserrat-Bold", sans-serif;
  font-size: 1.7rem;
  color: #6a3ec9;
  font-weight: 700;
  text-align: center;
  margin-top: 1.5rem;
  min-height: 2.6rem;
}

.search-domain .input-container-home-search {
  min-height: 5rem;
  position: relative;
}

.search-domain .search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  color: #444;
  flex-shrink: 0;
  pointer-events: none;
}

.seccion-videos {
  min-height: 180px;
}

.seccion-videos__recursos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.seccion-item-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 280px;
  min-width: 0;
}

.seccion-item-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.seccion-item-inner img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 800 / 495;
  object-fit: cover;
}

.row.mb-5.text-center {
  min-height: 110px;
}

.numeros-estadisticas-p {
  font-family: "Montserrat-Bold", sans-serif;
  color: #111;
  font-weight: 700;
  margin: 0.35rem 0;
  min-height: 1.4rem;
}

.img-acreditaciones-container {
  min-height: 100px;
}

#imagen-footer {
  width: 74px;
  height: auto;
  margin-left: 10px;
  vertical-align: middle;
}

.domain-loader .spinner {
  will-change: transform;
}

.domain-loader .loading-text {
  min-height: 1.5rem;
  animation: none;
  color: #6a3ec9;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.homesearch_img {
  width: 500px;
  max-width: 100%;
  height: auto;
  margin-top: -5rem;
  aspect-ratio: 1207 / 747;
  display: block;
}

.homesearch_img2 {
  max-width: 100%;
  height: auto;
  margin-top: -5rem;
  aspect-ratio: 1920 / 555;
  display: block;
}

@media (max-width: 810px) {
  .homesearch_text {
    font-size: 1.2rem;
    min-height: 2rem;
  }

  .homesearch_img {
    width: 360px;
    margin-top: -3.5rem;
  }

  .homesearch_img2 {
    margin-top: -1rem;
  }

  .bannerhome {
    min-height: 620px;
  }
}

/* === hp-whmcs-critical.css === */

/* Critical Bootstrap/WHMCS — homepage only, until all.min.css loads async */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}

.modal.show {
  display: block;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

.modal-backdrop.show {
  opacity: 0.5;
}

body.modal-open {
  overflow: hidden;
}

.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background-color: #336699;
  border-color: #336699;
}

.close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  opacity: 0.5;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.collapse:not(.show) {
  display: none;
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
  }
}

@media (min-width: 992px) {
  .modal-lg {
    max-width: 800px;
  }
}

/* Cookie bar fija — sin Bootstrap modal (evita CLS por modal-open / backdrop) */
html.nic-cookie-ok #cookieBar {
  display: none !important;
}

#cookieBar.nic-cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #f2f2f2;
  border-top: 3px solid #5b5b5b;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.25);
  padding: 1rem 1.25rem;
}

#cookieBar .nic-cookie-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#cookieBar .nic-cookie-bar__text {
  flex: 1 1 280px;
  min-width: 0;
}

#cookieBar .nic-cookie-bar__text p {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #1d1d1d;
}

#cookieBar .nic-cookie-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
