:root {
    --bg: #eef3f7;
    --bg-deep: #08131f;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --surface-dark: rgba(7, 17, 31, 0.9);
    --text: #112031;
    --muted: #586779;
    --line: rgba(17, 32, 49, 0.12);
    --primary: #0a7cff;
    --primary-dark: #0355b3;
    --secondary: #00a96e;
    --secondary-soft: rgba(0, 169, 110, 0.12);
    --warning: #fff1cd;
    --warning-line: rgba(201, 145, 0, 0.24);
    --danger: #b63636;
    --shadow: 0 28px 70px rgba(10, 22, 40, 0.13);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --vtr: #d52b1e;
    --vtr-soft: rgba(213, 43, 30, 0.10);
    --entel: #0057b8;
    --entel-soft: rgba(0, 87, 184, 0.10);
    --movistar: #00a9b7;
    --movistar-soft: rgba(0, 169, 183, 0.10);
    --wom: #5b1799;
    --wom-soft: rgba(91, 23, 153, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    background: linear-gradient(180deg, #f6f8fb 0%, #edf2f7 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

code {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(17, 32, 49, 0.08);
    font-family: Consolas, monospace;
}

.hidden {
    display: none !important;
}

.site-shell,
.admin-shell {
    min-height: 100vh;
}

.hero,
.main,
.admin-shell {
    padding: 24px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px 0;
}

.topbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar__brand img {
    width: 44px;
    height: 44px;
}

.topbar__brand strong {
    display: block;
    font-size: 16px;
}

.topbar__brand span {
    color: var(--muted);
    font-size: 13px;
}

.hero {
    position: relative;
    padding-top: 18px;
}

.hero__backdrop {
    position: absolute;
    inset: 24px;
    border-radius: 36px;
    background: linear-gradient(135deg, #071321, #102338);
    box-shadow: var(--shadow);
}

.hero__content,
.filters,
.results,
.login-card,
.panel,
.admin-top,
.message,
.info-strip,
.footer {
    position: relative;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero__content--public {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 24px;
    padding: 24px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.hero__copy {
    color: #fff;
}

.hero__copy h1,
.hero__copy h2,
.hero-card h2,
.section-head h2,
.admin-top h1,
.plan-card h3,
.company-card h3,
.seo-copy h3 {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

.eyebrow {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero__copy h1 {
    max-width: 11ch;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero__lead,
.commune-form__head p,
.hero__notice,
.results__count,
.filters__caption,
.field span,
.brand-chip p,
.plan-card__summary,
.message,
.danger-box p,
.footer p,
.seo-copy p,
.hero-card p {
    color: var(--muted);
}

.hero__lead {
    max-width: 46ch;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.hero__micro {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 14px;
}

.hero__micro span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 700;
}

.discovery-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 12px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.discovery-panel__copy {
    padding: 8px 6px 8px 2px;
}

.discovery-panel__copy h2 {
    max-width: 12ch;
    color: #fff;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.02;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.hero__chips span,
.meta-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.commune-form,
.hero-card,
.filters,
.results,
.login-card,
.panel,
.message,
.info-strip,
.footer,
.seo-copy {
    padding: 20px;
}

.commune-form {
    border-radius: 22px;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 14px 28px rgba(4, 16, 36, 0.12);
}

.commune-form .eyebrow,
.hero-card .eyebrow,
.section-head .eyebrow,
.admin-top .eyebrow,
.seo-copy .eyebrow {
    color: var(--primary);
}

.commune-form__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.commune-form__head h2 {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.commune-form__head p {
    max-width: 28ch;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.commune-form__grid,
.filters__grid,
.form-grid {
    display: grid;
    gap: 16px;
}

.commune-form__grid {
    grid-template-columns: minmax(220px, 1.4fr) minmax(220px, 0.9fr);
    align-items: end;
}

.commune-form__grid--hero {
    grid-template-columns: minmax(260px, 1fr) auto;
}

.commune-form__actions {
    display: grid;
    gap: 12px;
}

.commune-form__actions--inline {
    grid-template-columns: repeat(2, max-content);
    justify-content: end;
    align-items: end;
}

.hero__notice {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.hero__notice strong {
    color: #fff;
}

.hero__side,
.company-list,
.plan-picker,
.stack-form,
.hero-card__meta,
.button-row,
.card-actions {
    display: grid;
    gap: 14px;
}

.hero__side {
    align-content: start;
}

.hero-card {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(12, 22, 36, 0.08);
}

.hero-card--mini {
    padding: 10px;
}

.hero-card--mini .hero-card__mini-copy {
    padding: 8px 10px 2px;
}

.hero-card--mini .hero-card__mini-copy p:last-child {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.hero-card--accent {
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.hero-card__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-card__meta .meta-pill {
    color: var(--text);
    background: rgba(17, 32, 49, 0.06);
    border-color: transparent;
    font-size: 12px;
}

.latinoplay-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid rgba(17, 32, 49, 0.08);
}

.latinoplay-banner img {
    width: 104px;
    max-width: 100%;
}

.latinoplay-banner span {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 13px;
}

.info-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.info-strip article {
    padding: 8px 4px;
    border-right: 1px solid var(--line);
}

.info-strip article:last-child {
    border-right: 0;
}

.info-strip strong {
    display: block;
    margin-bottom: 6px;
    font-size: 26px;
    font-weight: 800;
}

.info-strip span {
    color: var(--muted);
    font-size: 14px;
}

.main {
    display: grid;
    gap: 24px;
}

.section-head,
.admin-top,
.admin-top__actions,
.plan-card__top,
.brand-chip,
.price-box {
    display: flex;
    gap: 14px;
}

.section-head {
    justify-content: space-between;
    align-items: flex-start;
}

.filters .section-head h2 {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-head__actions {
    display: grid;
    gap: 12px;
    justify-items: end;
}

.filter-toolbar,
.filter-group,
.chip-row {
    display: grid;
    gap: 14px;
}

.filter-toolbar {
    margin-top: 10px;
}

.filter-group__label {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.chip-row {
    grid-template-columns: repeat(auto-fit, minmax(130px, max-content));
    align-items: center;
}

.filter-chip {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(17, 32, 49, 0.1);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.18s ease;
}

.filter-chip:hover {
    border-color: rgba(10, 124, 255, 0.28);
    transform: translateY(-1px);
}

.filter-chip.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 16px 30px rgba(10, 124, 255, 0.18);
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-size: 14px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(10, 124, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(10, 124, 255, 0.12);
}

.field textarea {
    resize: vertical;
}

.field--search {
    min-width: 260px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: #0a7cff;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(10, 124, 255, 0.22);
}

.button--whatsapp {
    background: #0f172a;
}

.button--ghost {
    background: #eef3f8;
    color: var(--text);
}

.button--link {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--primary);
}

.button--light {
    background: #00a96e;
}

.button--danger {
    background: var(--danger);
}

.comparison-intro {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(10, 124, 255, 0.05), rgba(0, 169, 110, 0.05));
    border: 1px solid rgba(17, 32, 49, 0.08);
}

.conversion-strip {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 2px;
}

.conversion-strip .button {
    min-width: 220px;
}

.comparison-intro p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.comparison-intro__label {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 32, 49, 0.06);
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.comparison-intro__legend {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.comparison-intro__legend span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-intro__legend i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: inline-block;
}

.cards {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.results {
    padding-top: 16px;
}

.results .section-head {
    margin-bottom: 4px;
}

.results .section-head h2 {
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.plan-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(17, 32, 49, 0.08);
    box-shadow: 0 14px 30px rgba(12, 22, 36, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    align-content: start;
    min-height: 0;
    border-top-width: 4px;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(12, 22, 36, 0.09);
    border-color: rgba(10, 124, 255, 0.14);
}

.plan-card.is-recommended {
    border-color: rgba(10, 124, 255, 0.3);
    box-shadow: 0 22px 50px rgba(10, 124, 255, 0.14);
}

.plan-card__highlight {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.plan-rank,
.plan-flag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.plan-rank {
    background: #f4f7fa;
    color: var(--text);
}

.plan-recommendation {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #0a7cff;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.plan-flag {
    background: rgba(0, 169, 110, 0.10);
    color: var(--secondary);
}

.plan-flag--soft {
    background: rgba(10, 124, 255, 0.1);
    color: var(--primary-dark);
}

.plan-card[data-company-id="vtr"] {
    border-top-color: var(--vtr);
}

.plan-card[data-company-id="entel"] {
    border-top-color: var(--entel);
}

.plan-card[data-company-id="movistar"] {
    border-top-color: var(--movistar);
}

.plan-card[data-company-id="wom"] {
    border-top-color: var(--wom);
}

.plan-card__top {
    justify-content: space-between;
    align-items: flex-start;
}

.brand-chip {
    align-items: center;
}

.brand-chip__logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(17, 32, 49, 0.08);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.plan-card[data-company-id="vtr"] .brand-chip__logo {
    box-shadow: inset 0 0 0 1px rgba(213, 43, 30, 0.16);
}

.plan-card[data-company-id="entel"] .brand-chip__logo {
    box-shadow: inset 0 0 0 1px rgba(0, 87, 184, 0.16);
}

.plan-card[data-company-id="movistar"] .brand-chip__logo {
    box-shadow: inset 0 0 0 1px rgba(0, 169, 183, 0.16);
}

.plan-card[data-company-id="wom"] .brand-chip__logo {
    box-shadow: inset 0 0 0 1px rgba(91, 23, 153, 0.16);
}

.brand-chip__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-chip__logo span {
    display: none;
    width: 100%;
    height: 100%;
    place-items: center;
    font-weight: 800;
}

.badge {
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid rgba(17, 32, 49, 0.08);
}

.plan-card[data-company-id="vtr"] .badge {
    color: var(--vtr);
    border-color: rgba(213, 43, 30, 0.18);
}

.plan-card[data-company-id="entel"] .badge {
    color: var(--entel);
    border-color: rgba(0, 87, 184, 0.18);
}

.plan-card[data-company-id="movistar"] .badge {
    color: #007d87;
    border-color: rgba(0, 169, 183, 0.18);
}

.plan-card[data-company-id="wom"] .badge {
    color: var(--wom);
    border-color: rgba(91, 23, 153, 0.18);
}

.plan-card__hero {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: end;
    padding: 2px 0;
}

.plan-card__speed {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.plan-card[data-company-id="vtr"] .plan-card__speed,
.plan-card[data-company-id="vtr"] .price-current {
    color: var(--vtr);
}

.plan-card[data-company-id="entel"] .plan-card__speed,
.plan-card[data-company-id="entel"] .price-current {
    color: var(--entel);
}

.plan-card[data-company-id="movistar"] .plan-card__speed,
.plan-card[data-company-id="movistar"] .price-current {
    color: #008d97;
}

.plan-card[data-company-id="wom"] .plan-card__speed,
.plan-card[data-company-id="wom"] .price-current {
    color: var(--wom);
}

.plan-card__price {
    text-align: right;
}

.plan-card__price span,
.benefits-block p {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.plan-card__price strong {
    font-size: 18px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.plan-card__summary {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--text);
}

.price-box {
    justify-content: space-between;
    align-items: end;
    padding: 12px 0;
    border-top: 1px solid #edf2f6;
    border-bottom: 1px solid #edf2f6;
}

.price-box div {
    display: grid;
    gap: 6px;
}

.price-box span,
.apps-block p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.price-box strong {
    font-size: 22px;
    letter-spacing: -0.03em;
}

.price-box small {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 12px;
}

.special-box {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--warning);
    border: 1px solid var(--warning-line);
}

.special-box span {
    display: block;
    margin-bottom: 4px;
    color: #9b6a00;
    font-size: 13px;
    font-weight: 800;
}

.feature-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.apps-block,
.benefits-block,
.danger-box,
.company-card,
.plan-link {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid #edf2f6;
    background: #f9fbfc;
}

.plan-card[data-company-id="vtr"] .apps-block,
.plan-card[data-company-id="vtr"] .benefits-block {
    background: linear-gradient(180deg, rgba(213, 43, 30, 0.03), rgba(249, 251, 252, 1));
}

.plan-card[data-company-id="entel"] .apps-block,
.plan-card[data-company-id="entel"] .benefits-block {
    background: linear-gradient(180deg, rgba(0, 87, 184, 0.03), rgba(249, 251, 252, 1));
}

.plan-card[data-company-id="movistar"] .apps-block,
.plan-card[data-company-id="movistar"] .benefits-block {
    background: linear-gradient(180deg, rgba(0, 169, 183, 0.03), rgba(249, 251, 252, 1));
}

.plan-card[data-company-id="wom"] .apps-block,
.plan-card[data-company-id="wom"] .benefits-block {
    background: linear-gradient(180deg, rgba(91, 23, 153, 0.03), rgba(249, 251, 252, 1));
}

.plan-card[data-company-id="vtr"] .card-actions .button:first-child {
    background: linear-gradient(135deg, #da291c, #b61f14);
}

.plan-card[data-company-id="entel"] .card-actions .button:first-child {
    background: linear-gradient(135deg, #0057b8, #003f86);
}

.plan-card[data-company-id="movistar"] .card-actions .button:first-child {
    background: linear-gradient(135deg, #00a9b7, #008792);
}

.plan-card[data-company-id="wom"] .card-actions .button:first-child {
    background: linear-gradient(135deg, #5b1799, #451173);
}

.token-list,
.benefit-list {
    margin: 0;
    padding-left: 16px;
    display: grid;
    gap: 6px;
    font-size: 13px;
}

.card-actions {
    grid-template-columns: 1fr;
    gap: 10px;
}

.card-actions .button {
    width: 100%;
}

.empty {
    margin-top: 22px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed rgba(17, 32, 49, 0.14);
    text-align: center;
}

.seo-copy__grid,
.company-list--grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.seo-copy__grid article {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(245, 248, 251, 0.9);
    border: 1px solid rgba(17, 32, 49, 0.08);
}

.footer {
    margin: 0 24px 24px;
}

.admin-body {
    background:
        radial-gradient(circle at top left, rgba(10, 124, 255, 0.1), transparent 24%),
        linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
}

.admin-shell {
    display: grid;
    gap: 20px;
}

.admin-top {
    justify-content: space-between;
    align-items: center;
    padding: 24px;
}

.admin-layout {
    display: grid;
    gap: 20px;
}

.admin-layout--stack {
    grid-template-columns: 1fr;
}

.panel--wide {
    min-width: 0;
}

.toggle,
.toggle-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-picker {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.plan-link {
    display: block;
}

.plan-link span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 13px;
}

.plan-link.is-active {
    border-color: rgba(10, 124, 255, 0.24);
    background: rgba(10, 124, 255, 0.08);
}

.edit-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.danger-box--inline {
    margin-top: 18px;
}

.message {
    font-weight: 800;
}

.message--ok {
    border-left: 5px solid var(--secondary);
}

.message--error {
    border-left: 5px solid var(--danger);
}

.login-card {
    max-width: 460px;
}

@media (max-width: 1180px) {
    .hero__content--public,
    .seo-copy__grid,
    .company-list--grid,
    .info-strip,
    .discovery-panel {
        grid-template-columns: 1fr;
    }

    .comparison-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar {
        padding: 18px 16px 0;
    }

    .commune-form__grid {
        grid-template-columns: 1fr 1fr;
    }

    .commune-form__grid--hero {
        grid-template-columns: 1fr;
    }

    .commune-form__actions--inline {
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
    }

    .commune-form__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .hero,
    .main,
    .admin-shell {
        padding: 16px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hero__backdrop {
        inset: 16px;
    }

    .hero__content--public,
    .filters,
    .results,
    .panel,
    .login-card,
    .admin-top,
    .seo-copy,
    .info-strip,
    .footer {
        padding: 18px;
    }

    .commune-form,
    .hero-card {
        padding: 18px;
    }

    .brand-lockup {
        width: min(320px, 100%);
        margin-bottom: 14px;
    }

    .section-head,
    .admin-top,
    .admin-top__actions,
    .plan-card__top,
    .plan-card__hero,
    .price-box,
    .card-actions {
        flex-direction: column;
    }

    .commune-form__head {
        flex-direction: column;
    }

    .commune-form__grid,
    .form-grid,
    .form-grid--triple,
    .hero-card__meta,
    .card-actions {
        grid-template-columns: 1fr;
    }

    .commune-form__actions--inline {
        grid-template-columns: 1fr;
    }

    .chip-row {
        grid-template-columns: 1fr 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .plan-card {
        padding: 16px;
        border-radius: 20px;
    }

    .brand-chip__logo {
        width: 46px;
        height: 46px;
    }

    .plan-card__speed {
        font-size: 28px;
    }

    .field--search {
        min-width: 0;
    }

    .footer {
        margin: 0 16px 16px;
    }
}

/* Public redesign v3 overrides */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 22px 24px 0;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-header__brand img {
    width: 48px;
    height: 48px;
}

.site-header__brand strong {
    display: block;
    font-size: 18px;
}

.site-header__brand span {
    color: var(--muted);
    font-size: 13px;
}

.site-header__nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.site-header__nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.site-header__nav a:last-child {
    background: #0f172a;
    color: #fff;
}

.hero-v3 {
    padding: 18px 24px 8px;
    display: grid;
    gap: 14px;
}

.hero-v3__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
}

.hero-v3__copy,
.quote-card,
.insight-card,
.mini-banner {
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(17, 32, 49, 0.08);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.hero-v3__copy {
    padding: 28px 32px;
    background:
        radial-gradient(circle at top left, rgba(10, 124, 255, 0.16), transparent 28%),
        linear-gradient(135deg, #071321, #0f2742);
    color: #fff;
}

.hero-v3__copy--full {
    display: grid;
    justify-items: center;
    text-align: center;
    min-height: 0;
    width: 100%;
}

.hero-v3__copy .eyebrow {
    color: rgba(255, 255, 255, 0.68);
    text-align: center;
}

.eyebrow--dark {
    color: var(--primary);
}

.hero-v3__copy h1 {
    margin: 0;
    max-width: 14ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    color: #fff;
}

.hero-v3__lead {
    max-width: 56ch;
    margin: 12px auto 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.5;
}

.brand-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.brand-row--center {
    justify-content: center;
}

.brand-row__item {
    width: 84px;
    height: 52px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
}

.brand-row__item img {
    max-height: 28px;
    width: auto;
}

.hero-v3__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-v3__points span {
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.quote-card,
.insight-card {
    padding: 28px;
}

.quote-card--inline {
    margin-top: 14px;
    padding: 18px;
    border-radius: 22px;
    box-shadow: none;
}

.quote-card h2,
.insight-card h2 {
    margin: 6px 0 10px;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.quote-card p,
.insight-card p,
.mini-banner__copy p {
    margin: 0;
    color: var(--muted);
}

.quote-card__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
}

.quote-card__actions--inline-bar {
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: start;
}

.quote-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}

.field--full {
    grid-column: 1 / -1;
}

.quote-card__note {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.hero-v3__rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
}

.hero-v3__rail--single {
    grid-template-columns: 320px;
    justify-content: end;
}

.insight-card {
    display: grid;
    gap: 16px;
    align-content: start;
}

.mini-banner {
    display: grid;
    gap: 12px;
    padding: 16px;
    align-content: center;
}

.mini-banner__copy strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.commune-form__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.commune-form__head h2 {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.commune-form__head p {
    max-width: 28ch;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.commune-form__grid--hero {
    grid-template-columns: minmax(260px, 1fr) auto;
}

.commune-form__actions--inline {
    grid-template-columns: repeat(2, max-content);
    justify-content: end;
    align-items: end;
}

.hero-card__meta .meta-pill {
    font-size: 12px;
}

@media (max-width: 1180px) {
    .site-header,
    .hero-v3 {
        padding: 18px 16px 0;
    }

    .hero-v3__rail {
        grid-template-columns: 1fr;
    }

    .hero-v3__rail--single {
        justify-content: stretch;
    }
}

@media (max-width: 820px) {
    .site-header,
    .hero-v3 {
        padding: 16px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-header__nav {
        flex-wrap: wrap;
    }

    .conversion-strip {
        flex-direction: column;
    }

    .conversion-strip .button {
        width: 100%;
        min-width: 0;
    }

    .hero-v3__copy,
    .quote-card,
    .insight-card,
    .mini-banner {
        padding: 20px;
        border-radius: 22px;
    }

    .hero-v3__copy h1 {
        max-width: 12ch;
        font-size: clamp(26px, 9vw, 36px);
    }

    .hero-v3__lead {
        font-size: 14px;
    }

    .commune-form__head,
    .commune-form__actions--inline {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .commune-form__grid--hero {
        grid-template-columns: 1fr;
    }

    .quote-card__grid {
        grid-template-columns: 1fr;
    }

    .quote-card__actions--inline-bar {
        grid-template-columns: 1fr;
    }
}

/* Final public homepage system */
.public-body {
    background: linear-gradient(180deg, #f4f7fb 0%, #eef3f8 100%);
}

.public-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-header__brand img {
    width: 46px;
    height: 46px;
}

.site-header__brand strong {
    display: block;
    font-size: 18px;
}

.site-header__brand span {
    color: var(--muted);
    font-size: 13px;
}

.site-header__nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.site-header__nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.site-header__nav a:last-child {
    background: #0f172a;
    color: #fff;
}

.topbar,
.hero,
.hero__backdrop,
.hero__content,
.hero__content--public,
.hero__copy,
.hero__side,
.hero-card,
.insight-card,
.hero__notice,
.discovery-panel,
.hero__chips,
.hero__micro {
    display: none !important;
}

.hero-v3 {
    display: grid;
    gap: 14px;
    padding: 0;
}

.hero-v3__main,
.hero-v3__rail {
    display: block;
}

.hero-v3__copy {
    width: 100%;
    padding: 30px 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top center, rgba(10, 124, 255, 0.14), transparent 30%),
        linear-gradient(135deg, #091526, #11253c);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 48px rgba(11, 23, 40, 0.14);
    text-align: center;
}

.public-kicker,
.hero-v3__copy .eyebrow {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-v3__copy h1 {
    margin: 0 auto;
    max-width: 18ch;
    color: #fff;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.hero-v3__lead {
    max-width: 60ch;
    margin: 12px auto 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.55;
}

.brand-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.brand-row__item {
    width: 82px;
    height: 50px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
}

.brand-row__item img {
    max-height: 26px;
    width: auto;
}

.hero-v3__rail--single {
    display: flex;
    justify-content: flex-end;
}

.mini-banner {
    display: grid;
    gap: 10px;
    width: min(320px, 100%);
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(17, 32, 49, 0.08);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.mini-banner__copy p {
    margin: 0;
}

.mini-banner__copy strong {
    display: block;
    margin-top: 4px;
    font-size: 17px;
}

.latinoplay-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid rgba(17, 32, 49, 0.08);
}

.latinoplay-banner img {
    width: 104px;
    max-width: 100%;
}

.latinoplay-banner span {
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
}

.public-main {
    display: grid;
    gap: 18px;
}

.discovery-panel-v2,
.offers-section {
    background: #ffffff;
    border: 1px solid rgba(17, 32, 49, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.discovery-panel-v2 {
    padding: 24px;
}

.discovery-panel-v2__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.discovery-panel-v2__head h2,
.offers-section__head h2 {
    margin: 6px 0 0;
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.discovery-panel-v2__head p:last-child {
    max-width: 40ch;
    margin: 0;
    color: var(--muted);
}

.discovery-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.discovery-form__wide {
    grid-column: 1 / -1;
}

.discovery-form__actions,
.offers-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.offers-section {
    padding: 20px;
}

.offers-section__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.offers-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-top: 14px;
}

.offers-toolbar__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.offers-toolbar__search {
    min-width: 220px;
}

@media (max-width: 1100px) {
    .discovery-panel-v2__head,
    .offers-section__head,
    .offers-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-v3__rail--single {
        justify-content: stretch;
    }

    .mini-banner {
        width: 100%;
    }
}

@media (max-width: 820px) {
    .public-shell {
        padding: 0 16px 24px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-header__nav {
        flex-wrap: wrap;
    }

    .hero-v3__copy,
    .discovery-panel-v2,
    .offers-section,
    .mini-banner {
        padding: 18px;
        border-radius: 22px;
    }

    .hero-v3__copy h1 {
        max-width: 12ch;
        font-size: clamp(26px, 8vw, 34px);
    }

    .hero-v3__lead {
        font-size: 14px;
    }

    .discovery-form__grid {
        grid-template-columns: 1fr;
    }

    .discovery-form__actions,
    .offers-cta-row {
        flex-direction: column;
    }

    .discovery-form__actions .button,
    .offers-cta-row .button {
        width: 100%;
    }

    .offers-toolbar__search {
        min-width: 0;
        width: 100%;
    }
}
