/* netsmarket.css · ajustes exclusivos de la plantilla WHMCS de NETSMARKET.
   Se carga DESPUÉS de las hojas de la web (css-01, styles y custom),
   así que aquí solo se adapta el contenedor y los elementos propios de WHMCS. */

/* ---------- Fuentes locales de la plantilla ----------
   Se sirven desde la propia carpeta de la plantilla para que la tipografía
   corporativa y los iconos Material Symbols carguen dentro de WHMCS sin
   depender de cabeceras CORS del hosting de la web. */
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fuentes/font-08.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fuentes/font-09.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fuentes/font-10.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fuentes/font-11.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fuentes/font-12.ttf') format('truetype');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fuentes/font-13.ttf') format('truetype');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fuentes/font-14.ttf') format('truetype');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fuentes/font-15.ttf') format('truetype');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fuentes/font-16.ttf') format('truetype');
}
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal; font-weight: 100; font-display: swap;
  src: url('../fuentes/font-17.ttf') format('truetype');
}
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal; font-weight: 200; font-display: swap;
  src: url('../fuentes/font-18.ttf') format('truetype');
}
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fuentes/font-19.ttf') format('truetype');
}
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fuentes/font-20.ttf') format('truetype');
}
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fuentes/font-21.ttf') format('truetype');
}
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fuentes/font-22.ttf') format('truetype');
}
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fuentes/font-23.ttf') format('truetype');
}
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined', 'Material Icons Outlined', 'Material Icons', sans-serif !important;
  font-weight: normal !important; font-style: normal; font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block;
  white-space: nowrap; word-wrap: normal; direction: ltr;
  font-feature-settings: 'liga' 1, 'rlig' 1, 'clig' 1, 'dlig' 1 !important;
  font-variant-ligatures: normal !important;
  font-kerning: normal;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased;
}

/* Reserva espacio para la cabecera fija corporativa */
.whmcs-body { min-height: 100vh; overflow-x: hidden; }

#contenido-whmcs {
  padding-top: 76px;
  padding-bottom: 4rem;
  min-height: 60vh;
}
@media (min-width: 768px) {
  #contenido-whmcs { padding-top: 124px; }
}

/* ---------- Ancho real de página: sin desbordes al 100% ---------- */
/* El tema Twenty-One deja ".container { min-width: 992px !important }" y la
   base de Tailwind resetea la rejilla; aquí se restaura el ancho fluido y se
   centra el contenido para que la columna lateral y los formularios no se
   estiren más allá del ancho de la web. */
.whmcs-main .container,
.whmcs-main .container-fluid {
  min-width: 0 !important;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.whmcs-main .row { margin-left: -15px; margin-right: -15px; }

.whmcs-main #order-standard_cart,
.whmcs-main section#main-body,
.whmcs-main .whmcs-container-inner {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  padding-right: clamp(1.25rem, 3vw, 2rem);
  box-sizing: border-box;
}
/* El carrito (orderform) llega con su propio padding inferior; se conserva. */
.whmcs-main #order-standard_cart { padding-bottom: 40px; }

/* Formularios: entradas a todo el ancho de su columna, salvo el control de cantidad */
.whmcs-main .field:not(.form-control-qty),
.whmcs-main .form-control:not(.form-control-qty) { width: 100%; }
.whmcs-main .form-control-qty { width: 70px; text-align: center; }

/* Menú lateral del carrito (Categorías / Acciones / Divisa) con aire y límite */
.whmcs-main #order-standard_cart .cart-sidebar,
.whmcs-main #order-standard_cart .cart-body { box-sizing: border-box; }
.whmcs-main #order-standard_cart .cart-sidebar .list-group-item {
  border: 0;
  border-top: 1px solid #eef3f6;
  padding: 0.7rem 1rem;
  font-weight: 600;
  color: #13153A;
}
.whmcs-main #order-standard_cart .cart-sidebar .list-group-item:hover,
.whmcs-main #order-standard_cart .cart-sidebar .list-group-item.active {
  background: #176179;
  color: #ffffff;
}
.whmcs-main #order-standard_cart .cart-sidebar .list-group-item:first-child { border-top: 0; }

/* En pantallas medianas, la rejilla del carrito se apila sin reventar el ancho */
@media (max-width: 991px) {
  .whmcs-main .row {
    margin-left: -10px;
    margin-right: -10px;
  }
}

/* El menú compacto de la plantilla (menos enlaces que la portada) */
.whmcs-menu { margin-left: auto; margin-right: auto; }

/* Botón "salir" en estados más suaves, manteniendo la identidad */
.boton-cliente-salir {
  background: #13153A !important;
  color: #ffffff !important;
}
.boton-cliente-salir:hover { background: #E99C05 !important; color: #13153A !important; }

/* Envuelve el contenido de WHMCS en una columna centrada y legible */
.whmcs-main .whmcs-container-inner,
.whmcs-main #main-body {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  padding-right: clamp(1.25rem, 3vw, 2rem);
}

/* ---------- Base de WHMCS re-tematizada ---------- */

/* Fondo general: paleta clara de la web */
.whmcs-body {
  background:
    linear-gradient(180deg, #f6f9fb 0%, #ffffff 100%);
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
}
.whmcs-main,
.whmcs-main p,
.whmcs-main td,
.whmcs-main th,
.whmcs-main .form-control,
.whmcs-main .card,
.whmcs-main .panel-body {
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* El contenido de WHMCS rellena la altura disponible */
.whmcs-main #main-body { min-height: 60vh; padding-top: 1rem; padding-bottom: 2.5rem; }
.whmcs-main #secondarySidebar,
.whmcs-main #primarySidebar {
  background: #ffffff;
  border: 1px solid #e3eaef;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 26px 52px -34px rgba(19, 21, 58, 0.45);
  margin-bottom: 1.5rem;
}

/* ---------- Cabeceras deslizantes de la columna lateral ---------- */
.whmcs-main .panel-heading h3.panel-title,
.whmcs-main .card h4,
.whmcs-main .card .card-header,
.whmcs-main .panel-heading,
.whmcs-main #secondarySidebar .panel-title,
.whmcs-main #secondarySidebar h4,
.whmcs-main .panel-actions a {
  color: #ffffff;
}
.whmcs-main .panel-heading,
.whmcs-main .card .card-header {
  background: linear-gradient(135deg, #13153A 0%, #176179 100%);
  border-bottom: 0;
  border-radius: 0;
}
.whmcs-main .panel-heading h3.panel-title,
.whmcs-main .card .card-header h4 { font-weight: 800; letter-spacing: 0.01em; }

/* ---------- Menú lateral ---------- */
.whmcs-main #secondarySidebar .nav-pills {
  margin: 0;
  padding: 0.75rem;
  list-style: none;
}
.whmcs-main #secondarySidebar .nav-pills li { margin: 0; }
.whmcs-main #secondarySidebar .nav-pills li > a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  color: #13153A;
  font-weight: 600;
  border: 0;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.whmcs-main #secondarySidebar .nav-pills li > a:hover,
.whmcs-main #secondarySidebar .nav-pills li.active > a {
  background: #176179;
  color: #ffffff;
  transform: translateX(4px);
}

/* Obliga a los iconos de Font Awesome del carrito a mostrarse */
.whmcs-main .fa,
.whmcs-main .far,
.whmcs-main .fas,
.whmcs-main .fab,
.whmcs-main [class^="fa-"],
.whmcs-main [class*=" fa-"] {
  display: inline-block;
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free", "Font Awesome 5 Brands";
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
  text-rendering: auto;
  visibility: visible;
  vertical-align: middle;
}

/* ---------- Base Bootstrap + preflight de Tailwind ---------- */
/* La hoja de la web carga un "reset" de Tailwind que pone border, margen
   y padding a 0 y background transparente en botones/entradas. Aquí se
   revierten esas reglas dentro del carrito para que la base de Bootstrap
   (theme.min.css de Twenty-One) se dibuje y funcione con normalidad. */
.whmcs-main *,
.whmcs-main *::before,
.whmcs-main *::after { box-sizing: border-box; }
.whmcs-main button,
.whmcs-main input,
.whmcs-main select,
.whmcs-main optgroup,
.whmcs-main textarea { background-color: initial; background-image: none; }
.whmcs-main select { background-color: #ffffff; }
.whmcs-main a { text-decoration: none; }
.whmcs-main table { border-collapse: collapse; }
.whmcs-main img,
.whmcs-main svg { max-width: 100%; vertical-align: middle; display: inline-block; }

/* El botón de cierre de los modales y alertas de Bootstrap */
.whmcs-main button.close,
.whmcs-main .modal-content .close {
  position: relative;
  float: right;
  background: none !important;
  border: 0;
  padding: 0;
  border-radius: 0 !important;
  color: #13153A;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.7;
}
.whmcs-main button.close:hover { color: #E99C05; opacity: 1; }

/* ---------- Tarjetas, paneles y tablas ---------- */
.whmcs-main .panel,
.whmcs-main .panel-body,
.whmcs-main .contentbox,
.whmcs-main .card {
  border-radius: 1rem;
  border-color: #e3eaef;
}
.whmcs-main .panel,
.whmcs-main .card {
  background: #ffffff;
  box-shadow: 0 26px 52px -34px rgba(19, 21, 58, 0.45);
  overflow: hidden;
}

.whmcs-main table.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}
.whmcs-main table.table thead th {
  background: #13153A;
  color: #ffffff;
  border: 0;
  padding: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.whmcs-main table.table thead th:first-child { border-top-left-radius: 1rem; }
.whmcs-main table.table thead th:last-child { border-top-right-radius: 1rem; }
.whmcs-main table.table tbody td,
.whmcs-main table.table tbody th {
  padding: 0.9rem 1rem;
  border-top: 1px solid #eef3f6;
  vertical-align: middle;
  color: #13153A;
}
.whmcs-main table.table tbody tr:nth-child(even) { background: #f6f9fb; }
.whmcs-main table.table tbody tr:hover { background: rgba(233, 156, 5, 0.12); }

/* ---------- Resumen del pedido (columna derecha) ---------- */
.whmcs-main #cartSummary,
.whmcs-main .summary-head,
.whmcs-main table.table tr.summary-head td {
  background: #13153A;
  color: #ffffff;
  border: 0;
}
.whmcs-main #cartSummary .summary-head {
  background: linear-gradient(135deg, #13153A 0%, #176179 100%);
  color: #ffffff;
  border: 0;
  border-radius: 1rem 1rem 0 0;
}
.whmcs-main #cartSummary { border: 1px solid #e3eaef; border-radius: 1rem; overflow: hidden; }
.whmcs-main #cartSummary td { background: #ffffff; color: #13153A; }

/* ---------- Formularios ---------- */
.whmcs-main .form-control,
.whmcs-main input,
.whmcs-main select,
.whmcs-main textarea {
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  border-radius: 0.75rem;
  border: 1px solid #d9e2e8;
}
.whmcs-main .form-control:focus,
.whmcs-main input:focus,
.whmcs-main select:focus,
.whmcs-main textarea:focus {
  border-color: #176179;
  box-shadow: 0 0 0 3px rgba(23, 97, 121, 0.22);
}

/* ---------- Botones ---------- */
.whmcs-main .btn-primary,
.whmcs-main .btn-success {
  background-color: #176179 !important;
  border-color: #176179 !important;
  color: #ffffff !important;
}
.whmcs-main .btn-primary:hover,
.whmcs-main .btn-success:hover {
  background-color: #E99C05 !important;
  border-color: #E99C05 !important;
  color: #13153A !important;
}
.whmcs-main .btn-default,
.whmcs-main .btn-secondary {
  background-color: #ffffff !important;
  border-color: #d9e2e8 !important;
  color: #13153A !important;
}
.whmcs-main .btn-default:hover,
.whmcs-main .btn-secondary:hover {
  background-color: #f3f7f9 !important;
  border-color: #176179 !important;
  color: #176179 !important;
}
.whmcs-main .btn-danger {
  background-color: #ffffff !important;
  border-color: #e3a9aa !important;
  color: #b3261e !important;
}
.whmcs-main .btn-danger:hover {
  background-color: #b3261e !important;
  border-color: #b3261e !important;
  color: #ffffff !important;
}
.whmcs-main .btn,
.whmcs-main .btn-group .btn,
.whmcs-main .input-group .btn,
.whmcs-main button.btn:not(.close) { border-radius: 999px; font-weight: 600; }

/* ---------- Alertas ---------- */
.whmcs-main .alert { border-radius: 0.9rem; border: 1px solid transparent; }
.whmcs-main .alert-success { background: #e9f6ee; border-color: #b7e0c6; color: #1c5e38; }
.whmcs-main .alert-info { background: #e9f3f6; border-color: #bcd4dc; color: #0f3846; }
.whmcs-main .alert-warning { background: #fdf3dd; border-color: #f0d79a; color: #7a5a0f; }
.whmcs-main .alert-danger { background: #fdecea; border-color: #f0c0bf; color: #8f241f; }

/* ---------- Enlaces ---------- */
.whmcs-main a { color: #176179; }
.whmcs-main a:hover { color: #E99C05; }

/* ---------- Encabezados de página interior ---------- */
.whmcs-main h1,
.whmcs-main .header-lined h1,
.whmcs-main h2,
.whmcs-main h3 {
  color: #13153A;
  font-weight: 800;
}

/* ---------- Modal (diálogo de confirmación) ---------- */
.whmcs-main .modal-content { border-radius: 1.25rem; border: 0; overflow: hidden; }
.whmcs-main .modal-header {
  background: linear-gradient(135deg, #13153A 0%, #176179 100%);
  color: #ffffff;
  border-bottom: 0;
}
.whmcs-main .modal-header .close { color: #ffffff; opacity: 0.85; border-radius: 0 !important; }
.whmcs-main .modal-footer { border-top: 1px solid #eef3f6; }
.whmcs-main .modal-title i.fas { font-size: 2.8em; display: block; margin-bottom: 0.5rem; color: #176179; }

/* ---------- Responsive: apila el carrito en móvil ---------- */
@media (max-width: 767px) {
  .whmcs-main #secondarySidebar,
  .whmcs-main #primarySidebar {
    border-radius: 1rem;
    margin-bottom: 1.5rem;
  }
  .whmcs-main table.table thead { position: static; }
  .whmcs-main table.table tbody td,
  .whmcs-main table.table tbody th { padding: 0.75rem 0.9rem; font-size: 0.9rem; }

  /* Los formularios del carrito (validar código, región/país…) quedan
     apilados y dentro del ancho de la pantalla en móvil. */
  .whmcs-main #order-standard_cart .col-sm-4,
  .whmcs-main #order-standard_cart .col-sm-7,
  .whmcs-main #order-standard_cart .col-sm-6,
  .whmcs-main #order-standard_cart .form-group.row .col-sm-4,
  .whmcs-main #order-standard_cart .form-group.row .col-sm-7 {
    flex-basis: 100%;
    max-width: 100%;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
  .whmcs-main #order-standard_cart .control-label,
  .whmcs-main #order-standard_cart .text-sm-right { text-align: left !important; }
  .whmcs-main #order-standard_cart .form-group.row { margin-left: 0; margin-right: 0; }
}