/* Hub Connector: CSS mínimo y desactivable por sitio (docs/13 §3). Hereda tipografía
   y colores del tema; los tokens --hub-* se sobreescriben con los del tema de marca
   cuando GET /public/wp/site los entrega, o desde el tema de WordPress. */
.hub-connector {
    --hub-primary: #0a3fc4;
    --hub-primary-contrast: #ffffff;
    --hub-surface: #ffffff;
    --hub-border: #d9e0ec;
    --hub-muted: #4a5568;
    --hub-radius: 10px;
}
.hub-plans { list-style: none; margin: 2em 0 1.5em; padding: 0; display: grid; gap: 1.25em; grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .hub-plans--cols-2, .hub-plans--cols-3, .hub-plans--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .hub-plans--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hub-plans--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hub-plan { position: relative; display: flex; flex-direction: column; gap: .75em; height: 100%; box-sizing: border-box; padding: 1.75em 1.5em 1.5em; background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: var(--hub-radius); }
.hub-plan--featured { border: 2px solid var(--hub-primary); }
/* La insignia va sobre el borde superior: no empuja el contenido, así nombre, specs y precio
   comparten línea base en todas las tarjetas. */
.hub-plan__badge { display: inline-block; margin: 0; padding: .25em .8em; font-size: .75em; font-weight: 700; line-height: 1.4; color: var(--hub-primary-contrast); background: var(--hub-primary); border-radius: 999px; }
.hub-plan > .hub-plan__badge { position: absolute; top: 0; left: 1.5em; transform: translateY(-50%); }
.hub-plan__name { margin: 0; }
.hub-plan__specs { list-style: none; margin: 0; padding: 0; color: var(--hub-muted); }
.hub-plan__specs li { margin: 0; }
.hub-plan__price { margin: 0; }
.hub-plan__tagline, .hub-price__cycle, .hub-price__setup { color: var(--hub-muted); margin: 0; }
.hub-price { margin: 0; font-size: 1.6em; font-weight: 700; }
.hub-price[hidden] { display: none; }
.hub-price__cycle, .hub-price__setup { font-size: .55em; font-weight: 400; }
.hub-price__setup { display: block; }
.hub-plan__features { margin: 0; padding-left: 1.2em; }
.hub-plan__features:empty { padding: 0; }
/* Filas compartidas entre tarjetas (nombre, specs, precio, características, botón). */
@supports (grid-template-rows: subgrid) {
    .hub-plans__item { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
    .hub-plan { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; row-gap: .75em; align-content: start; }
}
.hub-button { display: inline-block; text-align: center; padding: .65em 1.2em; font-weight: 600; text-decoration: none; color: var(--hub-primary-contrast); background: var(--hub-primary); border-radius: calc(var(--hub-radius) - 2px); }
.hub-button:hover, .hub-button:focus-visible { text-decoration: underline; }
.hub-button:focus-visible, .hub-currency__option:focus-visible { outline: 3px solid var(--hub-primary); outline-offset: 2px; }
.hub-plan .hub-button { margin-top: auto; align-self: end; }
.hub-currency { display: inline-flex; gap: .25em; }
.hub-currency__option { padding: .4em .9em; font: inherit; cursor: pointer; color: var(--hub-primary); background: transparent; border: 1px solid var(--hub-primary); border-radius: 999px; }
.hub-currency__option[aria-pressed="true"] { color: var(--hub-primary-contrast); background: var(--hub-primary); }
.hub-contact--lista { padding-left: 1.2em; }
.hub-contact--enlace .hub-contact__item, .hub-contact--texto .hub-contact__item, .hub-contact--boton .hub-contact__item { display: inline-block; margin-right: 1em; }
.hub-notice--editor { padding: .75em 1em; color: #7a3d00; background: #fff4e5; border: 1px solid #d9700b; border-radius: 6px; }
/* Comparador y precios de dominios: tablas desplazables en móvil. */
.hub-compare, .hub-domains { position: relative; overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--hub-border); border-radius: var(--hub-radius); background: var(--hub-surface); }
.hub-compare:focus-visible, .hub-domains:focus-visible { outline: 3px solid var(--hub-primary); outline-offset: 2px; }
.hub-compare__table, .hub-domains__table { width: 100%; min-width: 560px; border-collapse: collapse; margin: 0; }
.hub-compare__table th, .hub-compare__table td, .hub-domains__table th, .hub-domains__table td { padding: .75em 1em; text-align: center; border-bottom: 1px solid var(--hub-border); vertical-align: middle; }
.hub-compare__table tbody th, .hub-domains__table tbody th { text-align: left; font-weight: 600; }
.hub-compare__table tbody tr:nth-child(even), .hub-domains__table tbody tr:nth-child(even) { background: rgba(10, 63, 196, .04); }
.hub-compare__plan { vertical-align: top; }
.hub-compare__plan--featured { box-shadow: inset 0 3px 0 var(--hub-primary); }
.hub-compare__name { display: block; font-size: 1.1em; margin: .25em 0; }
.hub-compare .hub-price { font-size: 1.25em; display: block; }
.hub-compare .hub-price[hidden], .hub-domains .hub-price[hidden] { display: none; }
.hub-compare tfoot td { border-bottom: 0; }
.hub-domains__table caption { caption-side: top; text-align: left; padding: .75em 1em 0; font-weight: 700; }
.hub-domains__row--featured th::after { content: " ★"; color: var(--hub-primary); }
.hub-price--inline { font-size: 1em; font-weight: 600; margin: 0; }
.hub-compare .hub-price, .hub-price--inline { white-space: nowrap; }
/* Documento legal. */
.hub-legal__meta { display: flex; flex-wrap: wrap; gap: .5em 1.5em; color: var(--hub-muted); font-size: .9em; }
.hub-legal__body { line-height: 1.65; }
/* Formulario de contacto y cotización. */
.hub-form { display: grid; gap: .75em; max-width: 720px; }
.hub-form__grid { display: grid; gap: .75em; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hub-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hub-form__field { display: flex; flex-direction: column; gap: .3em; margin: 0; }
.hub-form__field label { font-weight: 600; }
.hub-form input[type="text"], .hub-form input[type="email"], .hub-form input[type="tel"], .hub-form textarea { box-sizing: border-box; width: 100%; padding: .65em .8em; font: inherit; color: inherit; background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: calc(var(--hub-radius) - 4px); }
.hub-form input:focus-visible, .hub-form textarea:focus-visible, .hub-form button:focus-visible { outline: 3px solid var(--hub-primary); outline-offset: 1px; }
.hub-form [aria-invalid="true"] { border-color: #b42318; }
.hub-form__error { color: #b42318; font-size: .875em; min-height: 0; }
.hub-form__consent { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
.hub-form__consent label { font-weight: 400; flex: 1; }
.hub-form__consent input { margin-top: .3em; }
.hub-form__consent .hub-form__error { flex-basis: 100%; }
.hub-form__summary { padding: .75em 1em; color: #7a1d14; background: #fdecea; border: 1px solid #f5b5ae; border-radius: 6px; }
.hub-form__trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hub-form__actions { margin: 0; }
.hub-form button.hub-button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.hub-form button[disabled] { opacity: .7; cursor: progress; }
.hub-form__status { margin: 0; min-height: 1.2em; }
.hub-form__status--ok { color: #1a7f37; font-weight: 600; }
.hub-form__status--error { color: #b42318; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* [hub_precios_dominios vista=franja]: extensiones con su precio de registro por año. */
.hub-domstrip { margin: 0; }
.hub-domstrip__title { margin: 0 0 .75em; font-size: .9em; }
.hub-domstrip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.hub-domstrip__item { display: flex; flex-direction: column; gap: .15em; padding: .8em 0; margin: 0; }
.hub-domstrip__tld { font-weight: 700; font-size: 1.6em; line-height: 1.1; }
.hub-domstrip .hub-price { font-size: 1em; font-weight: 600; }
.hub-domstrip .hub-price[hidden] { display: none; }
@media (max-width: 420px) { .hub-domstrip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* [hub_planes vista="hero"]: tarjeta con pestañas por tipo y plan de entrada */
.hub-hplans { background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: var(--hub-radius); }
.hub-hplans__tabs { display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--hub-border); }
.hub-hplans__tabs::-webkit-scrollbar { display: none; }
.hub-hplans__tab { flex: none; font: inherit; font-weight: 600; color: var(--hub-muted); background: none; border: 0; border-bottom: 3px solid transparent; margin: 0 0 -1px; padding: .9em 1.1em; cursor: pointer; }
.hub-hplans__tab[aria-selected="true"] { color: inherit; border-bottom-color: var(--hub-primary); }
.hub-hplans__tab:hover { color: inherit; }
.hub-hplans__tab:focus-visible, .hub-hplans__panel:focus-visible { outline: 3px solid var(--hub-primary); outline-offset: -3px; }
.hub-hplans__panel { display: flex; flex-direction: column; gap: .35em; padding: 1.5em; }
.hub-hplans__panel[hidden] { display: none; }
.hub-hplans__name { margin: 0; font-weight: 600; }
.hub-hplans__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em; margin: 0; font-size: 1em; font-weight: 500; }
.hub-hplans__figure { font-size: 2.6em; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hub-hplans__from, .hub-hplans__price .hub-price__cycle, .hub-hplans__year { color: var(--hub-muted); }
.hub-hplans__year { margin: 0; font-size: .95em; font-weight: 500; }
.hub-hplans__features { list-style: none; display: grid; gap: .5em; margin: .9em 0 .6em; padding: 1em 0 0; border-top: 2px dashed var(--hub-border); }
.hub-hplans__features li { position: relative; margin: 0; padding-left: 1.7em; }
.hub-hplans__features li::before { content: ""; position: absolute; left: .2em; top: .38em; width: .8em; height: .42em; border-left: 2px solid var(--hub-primary); border-bottom: 2px solid var(--hub-primary); transform: rotate(-45deg); }
.hub-hplans__cta { display: block; margin-top: .4em; }

/* [hub_precios_dominios vista="buscador"] */
.hub-dsearch__label { display: block; margin-bottom: .45em; font-weight: 600; }
.hub-dsearch__row { display: flex; gap: .5em; }
.hub-dsearch__input { flex: 1; min-width: 0; font: inherit; color: inherit; background: var(--hub-surface); padding: .7em .9em; border: 1px solid #8a96ab; border-radius: calc(var(--hub-radius) - 2px); }
.hub-dsearch__input:focus-visible { outline: 3px solid var(--hub-primary); outline-offset: 1px; }
.hub-dsearch__submit { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.hub-dsearch__chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5em; margin: .9em 0 0; padding: 0; }
.hub-dsearch__chip { margin: 0; padding: .3em .85em; background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: 999px; white-space: nowrap; }
.hub-dsearch__tld { font-weight: 700; }
.hub-dsearch__cycle { color: var(--hub-muted); font-weight: 400; }
.hub-dsearch__results { margin-top: 1.75em; }
.hub-dsearch__title { margin: 0 0 .3em; overflow-wrap: anywhere; }
.hub-dsearch__note { margin: 0; color: var(--hub-muted); }
.hub-dsearch__list { list-style: none; margin: 1em 0 1.25em; padding: 0; border-top: 1px solid var(--hub-border); }
.hub-dsearch__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; margin: 0; padding: .75em 0; border-bottom: 1px solid var(--hub-border); }
.hub-dsearch__domain { overflow-wrap: anywhere; }
.hub-dsearch__error { margin: 0; color: #9b1c1c; font-weight: 600; }
.hub-hplans__price .hub-price__cycle { font-size: 1em; font-weight: 500; }
