/*
 * DODOHOSTING | main.css organizado
 *
 */

@import url("./variables.css");
@import url("./custom.css");
@import url("./components.css");

/* ==================================================================
   01. BASE DEL SITIO Y BARRAS DE DESPLAZAMIENTO
   Estilos globales de WHMCS y barras personalizadas, incluida la tabla comparativa.
   ================================================================== */

/* Página */
body {
  overflow-x: hidden !important;
}

/* Scrollbars */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--custom-color-primary) transparent;
}

main section {
  padding: 10px 0 10px 0 !important;
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--custom-color-primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--custom-color-primary-hover);
}

.custom-comparison-table {
  scrollbar-width: thin;
  scrollbar-color: var(--custom-color-primary) transparent;
}

.custom-comparison-table::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-comparison-table::-webkit-scrollbar-track {
  background: transparent;
}

.custom-comparison-table::-webkit-scrollbar-thumb {
  background: var(--custom-color-primary);
  border-radius: 10px;
}

.custom-comparison-table::-webkit-scrollbar-thumb:hover {
  background: var(--custom-color-primary-hover);
}

.section-header h2 {
  color: #212529 !important;
}

.section-header h2 span {
  color: var(--custom-color-primary) !important;
  font-weight: 700;
}

.custom-header-logo {
  display: inline-block;
  width: auto;
  max-width: none;
}

.custom-header-logo__image {
  display: block;
  width: 330px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  margin-left: -30px;
}

.custom-header-logo__image {
  width: 280px !important;
}

.top-bar-serch #domainsearch::placeholder {
  color: #6b7280;
  opacity: 1;
}

.top-bar-serch #domainsearch:focus::placeholder {
  color: #9ca3af;
}

input#domainsearch {
  padding: 0px 10px !important;
}

/* .navbar > ul.mainmenu {
  width: 100%;
  justify-content: flex-start;
  gap: 20px;
} */

/* ==========================================
   MENÚ PRINCIPAL - ESTADO STICKY
========================================== */

/* Enlaces principales */
.fixed-top #navbar .mainmenu > li > a {
  color: var(--custom-color-text-inverse) !important;
  transition: color 0.2s ease;
}

/* Hover y menú activo */
.fixed-top #navbar .mainmenu > li > a:hover,
.fixed-top #navbar .mainmenu > li.custom-mega-open > a,
.fixed-top #navbar .mainmenu > li > a.active {
  color: var(--custom-color-featured-start) !important;
}

/* ==================================================================
   02. UTILIDADES Y BOTONES COMPARTIDOS
   Ajustes globales de color, badges y botón outline-secondary.
   ================================================================== */

.text-primary {
  color: red !important;
}

.custom-text-primary {
  color: var(--custom-color-primary);
}

.badge-outlined {
  width: max-content;
  padding: 0 15px;
  border: 2px solid var(--custom-color-primary-dark);
  border-radius: 20px;
  color: var(--custom-color-text);
}

.btn-outline-secondary {
  font-size: 16px;
  color: var(--custom-color-secondary) !important;
  background: none;
  padding: 8px 23px;
  border-radius: 5px;
  transition: 0.3s;
}

.btn-outline-primary,
.btn-outline-primary:active {
  font-size: 16px;
  color: var(--color-primary) !important;
  background: none;
  padding: 8px 23px;
  border-radius: 5px;
  transition: 0.3s;
  font-family: var(--font-primary) !important;
  border-color: var(--color-primary) !important;
}

.btn-outline-secondary:hover {
  background-color: var(--custom-color-secondary) !important;
  color: #fff !important;
}

/* ==================================================================
   03. CARACTERÍSTICAS REUTILIZABLES
   Títulos y descripciones de bloques de características.
   ================================================================== */

.custom-feature-item__title {
  margin: 0 0 6px;
  color: var(--custom-color-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.custom-feature-item__description {
  margin: 0;
  color: var(--custom-color-text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
}

/* ==================================================================
   04. CABECERA WHMCS Y TOPBAR LEGACY
   Menús, topbar anterior y elementos del encabezado heredado.
   ================================================================== */

#header {
  background: var(--custom-gradient-topbar) !important;
}

.navbar > ul > li.login {
  margin: 0;
  padding: 0px 25px;
  background: var(--custom-color-primary) !important;
  border: none !important;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: var(--custom-color-primary) !important;
}

.topbar {
  background: var(--custom-gradient-topbar) !important;
}

.topbar .support .support-items i {
  color: var(--custom-color-text-inverse) !important;
  font-size: 16px;
}

.topbar .support .support-items a {
  color: #dfdfdf !important;
}

a.switcher-icon {
  display: none !important;
}

/* ==================================================================
   05. PREMIUM TOPBAR, TICKER Y ACCIONES
   Ticker horizontal, acciones, iconos de funciones y notificaciones.
   ================================================================== */

/* Contenedor principal */
.premium-topbar {
  position: relative;
  z-index: 100;
  min-height: 46px;
  background: var(--custom-gradient-topbar);
  color: var(--custom-color-text-inverse);
  border-bottom: 1px solid var(--custom-color-white-08);
  box-shadow:
    0 1px 0 var(--custom-color-white-03) inset,
    0 6px 20px rgba(0, 0, 0, 0.12);
}

.premium-topbar__inner {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}

/* Ticker animado */
.premium-topbar__ticker {
  width: 100%;
  max-width: 650px;
  justify-self: center;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.premium-topbar__ticker-track {
  display: flex;
  width: max-content;
  animation: premiumTicker 24s linear infinite;
  will-change: transform;
}

.premium-topbar__ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 45px;
  padding-right: 45px;
}

.premium-topbar__ticker-group span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--custom-color-white-92);
}

.premium-topbar__ticker-group i {
  font-size: 14px;
  color: #5aa7ff;
}

.premium-topbar__ticker .premium-topbar__ticker-track,
.premium-topbar__ticker:hover .premium-topbar__ticker-track,
.premium-topbar__ticker-track:hover {
  animation-play-state: running !important;
}

/* Funciones e iconos */
.premium-topbar__features {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.premium-topbar__feature {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--custom-color-text-inverse);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.premium-topbar__feature:hover {
  transform: translateY(-2px);
  background: var(--custom-color-white-18);
  border-color: var(--custom-color-white-30);
}

.premium-topbar__feature i {
  font-size: 12px;
}

/* Enlaces, acciones y notificaciones */
.premium-topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.premium-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--custom-color-white-88);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.premium-topbar__link:hover {
  color: var(--custom-color-text-inverse);
  text-decoration: none;
}

.premium-topbar__link i {
  font-size: 13px;
}

.premium-topbar__notification {
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--custom-color-primary);
  color: var(--custom-color-text-inverse);
  font-size: 9px;
  line-height: 1;
}

/* Movimiento continuo del ticker */
@keyframes premiumTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==================================================================
   06. PLANES DE HOSTING
   Cuadrícula, tarjetas, estado destacado, precios, CTA y características.
   ================================================================== */

/* Sección y cuadrícula */
.hosting-plans-section {
  background: var(--custom-color-bg-soft);
  padding: 40px 0;
}

.hosting-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  padding: 0px 0 40px;
}

/* Tarjetas, medios e indicadores */
.hosting-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 38px 18px 28px;
  background: var(--custom-color-surface);
  border: 1px solid var(--custom-color-border);
  border-radius: 22px;
  color: var(--custom-color-text);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.hosting-plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--custom-color-border-hover);
  box-shadow: var(--custom-shadow-card);
}

/* Plan destacado */

/* ==========================================
   HOSTING PLAN - BORDE DEGRADADO ANIMADO
========================================== */

@property --custom-plan-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* Tarjeta destacada */

.hosting-plan-card--featured {
  margin-top: -34px;
  padding-top: 72px;
  border: 4px solid transparent;

  background:
    linear-gradient(var(--custom-color-surface), var(--custom-color-surface))
      padding-box,
    conic-gradient(
        from var(--custom-plan-border-angle),
        /* Inicio azul */ var(--custom-color-featured-middle) 0deg,

        /* Zona de luz que recorre el borde */ #25c5ff 35deg,
        #3499f2 65deg,

        /* Transición hacia violeta */ var(--custom-color-featured-middle)
          110deg,
        var(--custom-color-featured-end) 155deg,

        /* Azul más profundo para crear contraste */ #3445a5 230deg,

        /* Vuelve gradualmente al inicio */ var(--custom-color-featured-end)
          285deg,
        var(--custom-color-featured-middle) 360deg
      )
      border-box;

  box-shadow: var(--custom-shadow-featured);
  z-index: 2;

  animation: customPlanBorderRotate 4s linear infinite;
}

/* ==========================================
   HOSTING PLAN - RESPLANDOR EXTERIOR
========================================== */

.hosting-plan-card--featured {
  animation:
    customPlanBorderRotate 4s linear infinite,
    customPlanGlow 4s ease-in-out infinite;
}

/* Sombra exterior suave que alterna
   los colores originales del degradado */
/* Sombra intensa y compacta */
@keyframes customPlanGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 3px rgba(52, 153, 242, 0.85))
      drop-shadow(0 0 6px rgba(76, 125, 227, 0.55));
  }

  33% {
    filter: drop-shadow(0 0 4px rgba(76, 125, 227, 0.85))
      drop-shadow(0 0 6px rgba(102, 84, 215, 0.55));
  }

  66% {
    filter: drop-shadow(0 0 3px rgba(102, 84, 215, 0.85))
      drop-shadow(0 0 6px rgba(52, 153, 242, 0.55));
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .hosting-plan-card--featured {
    animation: none;
    filter: none;
  }
}

/* Hover */
.hosting-plan-card--featured:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 38px rgba(59, 130, 246, 0.17),
    0 0 28px rgba(99, 102, 241, 0.15);
}

/* Franja superior Recomendado */
.hosting-plan-card__recommended {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--custom-gradient-featured);
  border-radius: 20px 20px 0 0;

  color: var(--custom-color-text-inverse);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Rotación del degradado */
@keyframes customPlanBorderRotate {
  from {
    --custom-plan-border-angle: 0deg;
  }

  to {
    --custom-plan-border-angle: 360deg;
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .hosting-plan-card--featured {
    animation: none;
  }
}

/* Cabecera de tarjeta */
.hosting-plan-card__heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hosting-plan-card__title {
  margin: 0;
  color: var(--custom-color-text);
  font-size: 22px;
  font-weight: bold;
  line-height: 1.25;
}

.hosting-plan-card__bonus {
  flex-shrink: 0;
  width: max-content;
  padding: 2px 7px;
  border: 1px solid var(--custom-color-primary);
  border-radius: 20px;
  color: var(--custom-color-text);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.hosting-plan-card__bonus i {
  margin-left: 2px;
  color: var(--custom-color-primary);
}

.hosting-plan-card__description {
  max-width: 230px;
  margin: 6px 0 0;
  color: var(--custom-color-text-muted);
  font-size: 12px;
  line-height: 1.3;
}

/* Precios y descuentos */
.hosting-plan-card__price {
  margin-top: 8px;
  margin-bottom: 24px;
}

/* Tarjetas, medios e indicadores */
.hosting-plan-card__old-price {
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--custom-color-text-secondary);
  font-size: 9px;
  text-decoration: line-through;
}

/* Precios y descuentos */
.hosting-plan-card__discount {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 12px;
  background: var(--custom-color-success-soft);
  color: var(--custom-color-text);
  font-size: 8px;
  font-weight: 700;
  text-decoration: none;
}

/* Tarjetas, medios e indicadores */
.hosting-plan-card__current-price {
  min-height: 48px;
  display: flex;
  align-items: flex-end;
}

/* Precios y descuentos */
.hosting-plan-card__currency {
  margin-right: 3px;
  margin-bottom: 7px;
  color: var(--custom-color-primary);
  font-size: 14px;
  font-weight: 500;
}

/* Tarjetas, medios e indicadores */
.hosting-plan-card__current-price strong {
  color: var(--custom-color-primary);
  font-size: 37px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.5px;
}

/* Precios y descuentos */
.hosting-plan-card__period {
  margin-left: 4px;
  margin-bottom: 4px;
  color: var(--custom-color-primary);
  font-size: 10px;
  white-space: nowrap;
}

.hosting-plan-card__billing {
  margin-top: 2px;
  color: var(--custom-color-text-secondary);
  font-size: 10px;
}

.hosting-plan-card__saving {
  width: max-content;
  display: inline-flex;
  margin-top: 10px;
  padding: 2px 6px;
  border: 1px solid var(--custom-color-success-border);
  border-radius: 15px;
  color: var(--custom-color-text);
  font-size: 10px;
  font-weight: 700;
}

/* Tarjetas, medios e indicadores */
.hosting-plan-card__media {
  height: 65px !important;
}

.plan-highlight {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--custom-color-success-soft);
  color: var(--custom-color-text);
  font-size: 11px;
  font-weight: 700;
}

span.hosting-plan-card__term-badge {
  padding: 10px;
  background: #ffeea9;
  color: #9c8456;
  border-radius: 10px;
}

/* Botón de contratación */
.hosting-plan-card__button {
  width: 100%;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1.5px solid var(--custom-color-primary);
  border-radius: 7px;
  background: var(--custom-color-surface);
  color: var(--custom-color-primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.hosting-plan-card__button:hover {
  background: var(--custom-color-primary);
  border-color: var(--custom-color-primary);
  color: var(--custom-color-text-inverse);
  text-decoration: none;
}

/* Plan destacado */
.hosting-plan-card--featured .hosting-plan-card__button {
  background: var(--custom-color-primary-dark);
  border-color: var(--custom-color-primary-dark);
  color: var(--custom-color-text-inverse);
}

.hosting-plan-card--featured .hosting-plan-card__button:hover {
  background: var(--custom-color-primary-hover);
  border-color: var(--custom-color-primary-hover);
}

/* Características del plan */
.hosting-plan-card__features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hosting-plan-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--custom-color-text-soft);
  font-size: 14px !important;
  line-height: 1.3;
}

.hosting-plan-card__features li:last-child {
  margin-bottom: 0;
}

.hosting-plan-card__features i {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--custom-color-success);
  font-size: 13px;
  font-weight: 700;
}

.hosting-plan-card__features strong {
  color: var(--custom-color-text);
  font-weight: 700;
}

.hosting-plan-card__features a {
  color: var(--custom-color-primary);
  text-decoration: none;
}

.hosting-plan-card__features a:hover {
  text-decoration: underline;
}

/* ==================================================================
   07. BANNER CON VIDEO
   Capas, overlay, z-index y ajustes de altura de banner.
   ================================================================== */

.banner .custom-banner-video {
  z-index: 0;
}

.banner .custom-banner-overlay {
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(12, 14, 18, 0.85) 0%,
    rgba(12, 14, 18, 0.65) 55%,
    rgba(12, 14, 18, 0.45) 100%
  );
  pointer-events: none;
}

.banner:has(> .custom-banner-video) .banner-inner {
  z-index: 2;
}

.banner:has(> .custom-banner-video) {
  background-color: var(--custom-color-bg-dark);
}

.custom-video-banner {
  height: auto;
  min-height: 400px;
}

.custom-video-banner .banner-inner {
  min-height: 0;
  padding-top: 60px;
  padding-bottom: 60px;
}

.custom-video-banner__content {
  position: relative;
  z-index: 2;
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

/* ==================================================================
   08. PIE DE PÁGINA
   Fondo del footer.
   ================================================================== */

footer.footer {
  --footer-mouse-x: 50%;
  --footer-mouse-y: 50%;

  position: relative;
  isolation: isolate;
  overflow: hidden;

  background-color: var(--custom-color-bg-dark) !important;
}

footer.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image:
    radial-gradient(
      circle at 50% 50%,
      rgba(0, 112, 209, 0.16) 0%,
      rgba(0, 112, 209, 0.1) 28%,
      rgba(0, 112, 209, 0.05) 48%,
      rgba(0, 112, 209, 0.02) 62%,
      transparent 82%
    ),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);

  background-size:
    100% 100%,
    80px 80px,
    80px 80px;

  background-repeat: no-repeat, repeat, repeat;
}

footer.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background: radial-gradient(
    420px circle at var(--footer-mouse-x) var(--footer-mouse-y),
    rgba(52, 153, 242, 0.26) 0%,
    rgba(0, 112, 209, 0.14) 35%,
    rgba(0, 112, 209, 0.06) 55%,
    transparent 75%
  );

  opacity: 0;
  transition: opacity 0.3s ease;
}

/* footer.footer:hover::after {
    opacity: 1;
} */

footer.footer > * {
  position: relative;
  z-index: 1;
}

/* ==========================================
   SELLOS DE SEGURIDAD
========================================== */

.custom-security-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* SiteLock */
.custom-security-badge__sitelock {
  display: block;
  width: 110px;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

/* Tawk.to */
.custom-security-badge__tawk {
  display: block;
  width: 100px;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.custom-security-badge__sitelock {
  width: 89px;
}

@media (max-width: 991.98px) {
  footer.footer::before {
    background-size:
      100% 100%,
      60px 60px,
      60px 60px;
  }

  footer.footer::after {
    background: radial-gradient(
      300px circle at var(--footer-mouse-x) var(--footer-mouse-y),
      rgba(52, 153, 242, 0.16),
      rgba(0, 112, 209, 0.07) 45%,
      transparent 75%
    );
  }
}

/* ==========================================
   ACCESIBILIDAD
========================================== */

@media (prefers-reduced-motion: reduce) {
  footer.footer::after {
    transition: none;
  }
}

@media (hover: none) {
  footer.footer::after {
    display: none;
  }
}

/* ==========================================
   FOOTER - MÉTODOS DE PAGO
========================================== */

.custom-footer-payments {
  background: transparent;
  border: 0;
}

/* Recuadros con dimensiones iguales */
.custom-footer-payment-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;

  width: 64px;
  height: 48px;
  padding: 6px;

  background-color: var(--custom-color-white-08);
  border: 1px solid var(--custom-color-white-10);
  border-radius: 8px;
}

/* Logotipos centrados y proporcionados */
.custom-footer-payment-item img {
  display: block;
  max-width: 100%;
  max-height: 32px;
  object-fit: contain;
}

/* ==========================================
   FOOTER BOTTOM
========================================== */

.custom-footer-bottom__divider {
  height: 1px;
  background-color: var(--custom-color-white-10);
}

/* ==========================================
   SELLOS DE SEGURIDAD
========================================== */

.custom-footer-security-badges a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-footer-security-badges img {
  display: block;
  width: auto;
  height: auto;
  max-width: 110px;
  max-height: 48px;
  object-fit: contain;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 575.98px) {
  .custom-footer-security-badges {
    gap: 12px;
  }

  .custom-footer-security-badges img {
    max-width: 95px;
    max-height: 42px;
  }
}

/* ==========================================
   FOOTER - HOVER EN ICONO Y TEXTO
========================================== */

/* Mantener los elementos en su posición */
.footer-link-style .footer-list li {
  background: transparent;
  transform: none;
  transition: none;
}

/* Sin fondo ni desplazamiento de la fila */
.footer-link-style .footer-list li:hover,
.footer-link-style .footer-list li:focus-within {
  background: transparent;
  transform: none;
}

/* Hover del texto */
.footer-link-style .footer-list li a {
  transition: color 0.25s ease;
}

.footer-link-style .footer-list li a:hover {
  color: var(--custom-color-primary) !important;
}

/* Si el círculo está generado sobre el enlace */
.footer-link-style .footer-list li a::before {
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.footer-link-style .footer-list li a:hover::before,
.footer-link-style .footer-list li a:focus-visible::before {
  background-color: rgba(0, 112, 209, 0.12) !important;
  border-color: rgba(0, 112, 209, 0.2) !important;
  color: var(--custom-color-primary) !important;
}

/* Quitar barra lateral de la prueba anterior */
.footer-link-style .footer-list li::after {
  content: none;
}

.footer .copy-right {
  padding-top: 12px !important;
  color: var(--color-white);
  display: block;
  text-align: center;
}

/* ==================================================================
   09. RESPONSIVE | BREAKPOINTS CONSOLIDADOS
   Cada media query aparece una sola vez; reglas preservadas sin alterar sus valores.
   ================================================================== */

/* Pantallas medianas y pequeñas (≤1199.98px) */
@media (max-width: 1199.98px) {
  .hosting-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hosting-plan-card--featured {
    margin-top: 0;
  }
}

/* Tablet (≤991.98px) */
@media (max-width: 991.98px) {
  .custom-feature-item__title {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .custom-feature-item__description {
    font-size: 15px;
    line-height: 1.75;
  }

  .premium-topbar__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }

  .premium-topbar__ticker-track {
    animation-duration: 18s;
  }

  /* Enlaces principales */
  .fixed-top #navbar .mainmenu > li > a {
    color: var(--custom-color-primary) !important;
    transition: color 0.2s ease;
  }

  /* Hover y menú abierto */
  #navbar .mainmenu > li > a:hover,
  #navbar .mainmenu > li.custom-mega-open > a,
  #navbar .mainmenu > li > a.active {
    color: var(--custom-color-primary) !important;
  }

  .custom-desktop-mega[hidden],
  .custom-desktop-mega__page[hidden] {
    display: none !important;
  }

  .custom-desktop-mega__page {
    width: 100%;
  }

  /* Megamenú individual sin pestañas laterales */
  .custom-desktop-mega[data-mega-mode="standalone"]
    .custom-desktop-mega__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .custom-desktop-mega[data-mega-mode="standalone"]
    .custom-desktop-mega__sidebar {
    display: none !important;
  }

  /* Pestañas laterales */
  .custom-desktop-mega__tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* Enlaces superiores generados por Smarty */
  #navbar .mainmenu > li.custom-desktop-nav-item > a,
  #navbar .mainmenu > li.custom-products-trigger > a {
    display: flex;
    align-items: center;
    gap: 4px;
  }
}

@media (max-width: 991.98px) {
  .custom-desktop-mega {
    display: none !important;
  }

  i.bi.mobile-nav-toggle.bi-x {
    width: unset;
    color: var(--custom-color-primary) !important;
  }
}

@media (min-width: 992px) {
  .custom-desktop-mega[data-mega-mode="standalone"]
    .custom-desktop-mega__sidebar {
    display: none !important;
  }
}

/* ==========================================
   MEGAMENÚ SIN TABS - COMPACTO
========================================== */

@media (min-width: 992px) {
  /* Panel principal */
  .custom-desktop-mega .custom-desktop-mega__layout {
    width: 100%;
    min-width: 0;
  }

  /* Modo sin pestañas */
  .custom-desktop-mega[data-mega-mode="standalone"]
    .custom-desktop-mega__layout {
    display: block;
  }

  .custom-desktop-mega[data-mega-mode="standalone"]
    .custom-desktop-mega__sidebar {
    display: none !important;
  }

  /* Contenido */
  .custom-desktop-mega .custom-desktop-mega__content {
    min-width: 0;
    padding: 28px 36px;
  }

  /* Cada página: grupos + promoción */
  .custom-desktop-mega .custom-desktop-mega__page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    column-gap: 24px;
    align-items: start;
    min-width: 0;
  }

  .custom-desktop-mega .custom-desktop-mega__page[hidden] {
    display: none !important;
  }

  /* Título a todo el ancho */
  .custom-desktop-mega .custom-desktop-mega__heading {
    grid-column: 1 / -1;
    margin-bottom: 24px;
  }

  /* Grupos automáticos */

  .custom-desktop-mega .custom-desktop-mega__groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
    align-items: start;
    min-width: 0;
  }

  .custom-desktop-mega .custom-desktop-mega__group {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .custom-desktop-mega .custom-desktop-mega__group-title {
    margin-bottom: 16px;
  }

  .custom-desktop-mega .custom-desktop-mega__link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 10px 6px;
    text-align: left;
    white-space: normal;
  }

  .custom-desktop-mega .custom-desktop-mega__link > i {
    flex: 0 0 20px;
    width: 20px;
    text-align: center;
  }

  .custom-desktop-mega .custom-desktop-mega__link > span {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
  }

  /* Columna promocional */
  .custom-desktop-mega .custom-desktop-mega__promo {
    width: 100%;
    min-width: 0;
    padding: 20px 16px;
  }

  .custom-desktop-mega .custom-desktop-mega__promo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .custom-desktop-mega .custom-desktop-mega__promo .mega-promo__cta {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
  }

  .custom-desktop-mega .custom-desktop-mega__promo img {
    display: block;
    width: 120px;
    max-width: 100%;
    max-height: 55px;
    object-fit: contain;
  }

  .custom-desktop-mega
    .custom-desktop-mega__page:not(:has(.custom-desktop-mega__promo)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .custom-desktop-mega .custom-desktop-mega__tab[hidden],
  .custom-desktop-mega .custom-desktop-mega__group[hidden],
  .custom-desktop-mega .custom-desktop-mega__page[hidden] {
    display: none !important;
  }

  .custom-desktop-mega[data-mega-mode="tabs"] .custom-desktop-mega__sidebar {
    display: block;
  }

  .custom-desktop-mega[data-mega-mode="standalone"]
    .custom-desktop-mega__sidebar {
    display: none !important;
  }

  .custom-desktop-mega
    .custom-desktop-mega__page[data-has-group-tabs="true"]
    .custom-desktop-mega__groups {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================
   DESKTOP PEQUEÑO
========================================== */

@media (min-width: 992px) and (max-width: 1199.98px) {
  .custom-desktop-mega .custom-desktop-mega__content {
    padding: 24px;
  }

  .custom-desktop-mega .custom-desktop-mega__page {
    grid-template-columns: minmax(0, 1fr) 210px;
    column-gap: 16px;
  }

  .custom-desktop-mega .custom-desktop-mega__groups {
    gap: 16px;
  }
}

@media (min-width: 992px) {
  .custom-desktop-mega__tab[hidden],
  .custom-desktop-mega__group[hidden] {
    display: none !important;
  }
}

/* Móvil (≤767.98px) */
@media (max-width: 767.98px) {
  .hosting-plans-section {
    padding: 30px 0;
  }

  .hosting-plans {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 35px;
  }

  .hosting-plan-card {
    border-radius: 18px;
  }

  .hosting-plan-card--featured {
    margin-top: 0;
    padding-top: 70px;
    border-radius: 18px;
  }

  .hosting-plan-card__recommended {
    border-radius: 16px 16px 0 0;
  }
}

/* Móvil pequeño (≤575.98px) */
@media (max-width: 575.98px) {
  .custom-feature-item__title {
    margin-bottom: 12px;
  }

  .custom-feature-item__description {
    line-height: 1.7;
  }

  .premium-topbar {
    min-height: 42px;
  }

  .premium-topbar__inner {
    min-height: 42px;
    gap: 10px;
  }

  .premium-topbar__ticker-group span {
    font-size: 11px;
  }

  .premium-topbar__actions {
    gap: 10px;
  }

  .premium-topbar__actions .dropdown {
    position: static;
  }

  .premium-topbar__actions .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    min-width: 0 !important;
    margin-top: 8px;
    transform: none !important;
    border-radius: 12px;
    text-align: center;
  }

  .premium-topbar__actions .dropdown-item {
    padding: 10px 14px;
    text-align: center;
  }
}

/* ==================================================================
   10. ACCESIBILIDAD | MOVIMIENTO REDUCIDO
   Desactiva la reproducción decorativa para personas que prefieren menos movimiento.
   ================================================================== */

@media (prefers-reduced-motion: reduce) {
  .banner .custom-banner-video {
    display: none;
  }
}
