/* Localweb — landings SEO (vs, alternativas, costo, guía) */

.localweb-compare {
    --cmp-max: 1080px;
    --cmp-pad: 24px;
    --cmp-lw: #eef6ff;
}

.localweb-compare a:focus-visible,
.localweb-compare button:focus-visible,
.localweb-compare select:focus-visible,
.localweb-compare summary:focus-visible,
.localweb-hub a:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 3px;
}

/* ===== Hero (gris de la home) ===== */
.cmp-hero {
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: var(--lr-bg, #f7f7f9);
}

.cmp-hero::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: -80px 0 20px;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(205, 205, 212, 0.78) 1px, transparent 1px),
        linear-gradient(90deg, rgba(205, 205, 212, 0.78) 1px, transparent 1px);
    background-size: 76px 76px;
    -webkit-mask-image: radial-gradient(circle at 50% 22%, rgba(0, 0, 0, 0.7), transparent 72%);
    mask-image: radial-gradient(circle at 50% 22%, rgba(0, 0, 0, 0.7), transparent 72%);
    opacity: 0.78;
}

.cmp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--cmp-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 48px;
    align-items: center;
}

.cmp-hero-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cmp-kicker,
.cmp-hero .hero-seo-badge {
    display: block;
    width: 100%;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6366f1;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    margin: 0 0 14px;
    line-height: 1.4;
}

.cmp-hero .hero-display-title {
    font-size: clamp(32px, 4.6vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #1a1a1a;
    margin: 0 0 18px;
    max-width: 16em;
    text-wrap: balance;
}

.cmp-hero .hero-subtitle {
    font-size: 18px;
    line-height: 1.65;
    color: #52525b;
    margin: 0 0 28px;
    max-width: 38em;
}

.localweb-compare .btn-hero-primary,
.localweb-compare .btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.localweb-compare .btn-hero-primary {
    background: #6366f1;
    color: #fff;
}

.localweb-compare .btn-hero-primary:hover {
    background: #4f46e5;
}

.localweb-compare .btn-hero-secondary {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
}

.localweb-compare .btn-hero-secondary:hover {
    border-color: #c7d2fe;
    background: #fafafa;
}

.cmp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.cmp-hero .trust-text {
    font-size: 14px;
    color: #6b7280;
}

.cmp-hero-visual {
    display: grid;
    gap: 12px;
}

.cmp-hero-card {
    background: #fff;
    border: 1px solid var(--lr-line, #e5e7eb);
    border-radius: var(--lr-rad-md, 16px);
    padding: 20px 22px;
    box-shadow: var(--lr-sh);
}

.cmp-hero-card span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 6px;
}

.cmp-hero-card strong {
    font-size: 20px;
    letter-spacing: -0.03em;
    color: #1a1a1a;
}

.cmp-hero-card--lw {
    border-color: #d9e1ff;
    background: var(--cmp-lw);
}

.cmp-hero-card--lw span {
    color: #315dff;
}

/* ===== Sections ===== */
.cmp-section {
    padding: 88px 24px;
}

.cmp-section--muted {
    background: var(--lr-bg, #f7f7f9);
}

.cmp-section-inner,
.cmp-wrap {
    max-width: var(--cmp-max);
    margin: 0 auto;
}

.cmp-head {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}

.cmp-head h2,
.cmp-head .cmp-h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #1a1a1a;
    margin: 12px 0 14px;
    text-wrap: balance;
}

.cmp-head p {
    font-size: 18px;
    line-height: 1.6;
    color: #6b7280;
}

/* Cards = tokens de la home */
.localweb-compare .feature-card,
.localweb-hub .feature-card {
    min-height: 0;
    height: auto;
    padding: 30px;
    gap: 0;
}

.cmp-pains,
.cmp-reasons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.localweb-compare .cmp-pain h3,
.localweb-compare .cmp-reason h3,
.localweb-compare .cmp-path h3,
.localweb-compare .cmp-range h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.localweb-compare .cmp-pain p,
.localweb-compare .cmp-reason p,
.localweb-compare .cmp-path p,
.localweb-compare .cmp-range p {
    font-size: 15px;
    line-height: 1.6;
    color: #5c6470;
    margin: 0;
}

.cmp-verdict {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cmp-verdict-card {
    border: 1px solid var(--lr-line, #e5e7eb);
    border-radius: var(--lr-rad, 24px);
    padding: 32px 28px;
    background: var(--lr-card, #fff);
    box-shadow: var(--lr-sh);
}

.cmp-verdict-card--lw {
    background: var(--cmp-lw);
    border-color: #d9e1ff;
}

.cmp-verdict-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 10px;
}

.cmp-verdict-card--lw .cmp-verdict-label {
    color: #315dff;
}

.cmp-verdict-card h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}

.cmp-verdict-card p {
    font-size: 16px;
    line-height: 1.65;
    color: #4b5563;
    margin: 0;
}

/* Alternativas */
.cmp-alts {
    display: grid;
    gap: 16px;
}

.cmp-alt {
    background: var(--lr-card, #fff);
    border: 1px solid var(--lr-line, #e5e7eb);
    border-radius: var(--lr-rad, 24px);
    box-shadow: var(--lr-sh);
    padding: 30px;
}

.cmp-alt--featured {
    background: var(--cmp-lw);
    border-color: #d9e1ff;
}

.cmp-alt-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #315dff;
    background: var(--lr-badge-bg, #eef2ff);
    border: 1px solid var(--lr-badge-border, #d9e1ff);
    box-shadow: var(--lr-badge-shadow);
    padding: 4px 10px;
    border-radius: 17px;
    margin-bottom: 14px;
}

.cmp-alt-top h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    color: #1a1a1a;
}

.cmp-alt > p {
    font-size: 16px;
    line-height: 1.65;
    color: #4b5563;
    margin: 0 0 18px;
}

.cmp-alt-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(230, 230, 233, 0.95);
}

.cmp-alt-meta-row {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.cmp-alt-meta dt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #82828c;
    margin: 0;
}

.cmp-alt-meta dd {
    font-size: 15px;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.45;
}

.cmp-hub-card {
    display: flex;
    flex-direction: column;
    min-height: 148px;
    padding: 30px;
    border: 1px solid var(--lr-line, #e5e7eb);
    border-radius: var(--lr-rad, 24px);
    text-decoration: none;
    background: var(--lr-card, #fff);
    box-shadow: var(--lr-sh);
    color: inherit;
}

.cmp-related-kicker {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 8px;
}

.cmp-hub-card h3 {
    display: block;
    font-size: 17px;
    letter-spacing: -0.02em;
    margin: 0;
    color: #1a1a1a;
}

.cmp-related-go {
    margin-top: auto;
    padding-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #315dff;
}

.localweb-compare .cta-wrapper .cmp-more {
    max-width: 980px;
    margin: 100px auto 64px;
    text-align: center;
}

.cmp-more p {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6366f1;
    margin: 0 0 12px;
}

.cmp-more ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
}

.cmp-more a {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
}

.cmp-more a:hover {
    color: #4f46e5;
    border-bottom-color: #c7d2fe;
}

.cmp-guide {
    max-width: 720px;
    margin: 0 auto;
}

.cmp-guide h2 {
    font-size: clamp(24px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 40px 0 14px;
}

.cmp-guide h2:first-child {
    margin-top: 0;
}

.cmp-guide p,
.cmp-guide li {
    font-size: 17px;
    line-height: 1.7;
    color: #3f3f46;
}

.cmp-guide p {
    margin: 0 0 16px;
}

.cmp-guide ul {
    margin: 0 0 20px;
    padding-left: 20px;
}

.cmp-guide li {
    margin-bottom: 8px;
}

.cmp-paths {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0;
}

.localweb-compare .cmp-range--lw {
    background: var(--cmp-lw);
    border-color: #d9e1ff;
}

.cmp-range .cmp-range-price {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.cmp-ranges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Calculadora wizard */
.cmp-calc {
    max-width: 920px;
    margin: 0 auto;
    background: var(--lr-card, #fff);
    border: 1px solid var(--lr-line, #e5e7eb);
    border-radius: var(--lr-rad, 24px);
    box-shadow: var(--lr-sh);
    padding: 36px;
}

.cmp-wizard-progress {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6366f1;
    margin: 0 0 16px;
}

.cmp-wizard-panel h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.cmp-wizard-choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cmp-wizard-choice {
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid var(--lr-line, #e5e7eb);
    border-radius: var(--lr-rad-md, 16px);
    background: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    text-align: left;
}

.cmp-wizard-choice:hover,
.cmp-wizard-choice.is-selected {
    border-color: #c7d2fe;
    background: #eef6ff;
    color: #315dff;
}

.cmp-wizard-back {
    margin-top: 20px;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
    cursor: pointer;
}

.cmp-calc-results {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--lr-line, #e5e7eb);
    border-radius: var(--lr-rad-md, 16px);
    overflow: hidden;
}

.cmp-calc-row {
    display: grid;
    grid-template-columns: 1.3fr 1.4fr 0.8fr;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    background: #fff;
    border-bottom: 1px solid var(--lr-line, #e5e7eb);
}

.cmp-calc-row:last-child {
    border-bottom: none;
}

.cmp-calc-row--lw {
    background: var(--lr-soft-indigo, #f4f6ff);
    box-shadow: inset 0 3px 0 var(--lr-brand, #6366f1);
}

.cmp-calc-row strong {
    font-size: 15px;
    color: #1a1a1a;
}

.cmp-calc-price {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.cmp-calc-row--lw .cmp-calc-price {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cmp-calc-time {
    font-size: 13px;
    color: #6b7280;
    text-align: right;
}

.cmp-calc-note {
    font-size: 13px;
    color: #6b7280;
    margin: 16px 0 0;
    line-height: 1.5;
}

/* Tablas: sin overflow (sticky del viewport) y sin hueco */
.localweb-compare .comparison-section {
    padding: 72px 24px 88px;
}

.localweb-compare .comparison-table-wrap {
    overflow: visible;
    max-width: var(--cmp-max);
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--lr-line, #e5e7eb);
    border-radius: var(--lr-rad, 24px);
    box-shadow: var(--lr-sh);
}

.localweb-compare .comparison-table {
    border: none;
    border-radius: 0;
    background: #fff;
    width: 100%;
}

.localweb-compare .comparison-table thead {
    position: sticky;
    top: 72px;
    z-index: 10;
    background: #f7f7f9;
    box-shadow: 0 1px 0 #e5e7eb;
}

.localweb-compare .comparison-table thead th {
    position: static;
    top: auto;
    padding: 26px 20px;
}

.localweb-compare .comparison-table thead th.col-localweb {
    background: var(--lr-soft-indigo, #f4f6ff);
    box-shadow: inset 0 3px 0 var(--lr-brand, #6366f1);
}

.localweb-compare .comparison-table tbody td.col-lw,
.localweb-compare .comparison-table tbody tr.cmp-row-lw td {
    background: var(--lr-soft-indigo, #f4f6ff);
}

.localweb-compare .comparison-table tbody tr.cmp-row-lw td {
    box-shadow: inset 0 3px 0 var(--lr-brand, #6366f1);
}

.localweb-compare .comparison-table .cmp-col-label {
    width: 46%;
}

.localweb-compare .comparison-table .cmp-col-product {
    width: 27%;
}

.localweb-compare .cmp-table-wide th,
.localweb-compare .cmp-table-wide td {
    padding: 14px 10px;
    font-size: 13px;
}

.localweb-compare .cmp-table-wide thead th {
    padding: 16px 10px;
    font-size: 12px;
}

/* Hub /blog/ */
.cmp-hub-hero {
    position: relative;
    padding: 120px 24px 56px;
    overflow: hidden;
    background: var(--lr-bg, #f7f7f9);
}

.cmp-hub-hero::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: -80px 0 20px;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(205, 205, 212, 0.78) 1px, transparent 1px),
        linear-gradient(90deg, rgba(205, 205, 212, 0.78) 1px, transparent 1px);
    background-size: 76px 76px;
    -webkit-mask-image: radial-gradient(circle at 50% 22%, rgba(0, 0, 0, 0.7), transparent 72%);
    mask-image: radial-gradient(circle at 50% 22%, rgba(0, 0, 0, 0.7), transparent 72%);
    opacity: 0.78;
}

.cmp-hub-hero-inner,
.cmp-hub-inner {
    position: relative;
    z-index: 1;
    max-width: var(--cmp-max, 1080px);
    margin: 0 auto;
}

.cmp-hub-hero h1 {
    font-size: clamp(32px, 4.6vw, 52px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: #1a1a1a;
    margin: 10px 0 16px;
}

.cmp-hub-hero p {
    font-size: 18px;
    line-height: 1.65;
    color: #52525b;
    max-width: 38em;
    margin: 0;
}

.cmp-hub-group {
    margin-bottom: 56px;
}

.cmp-hub-group h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 18px;
    color: #1a1a1a;
}

.cmp-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1100px) {
    .cmp-pains,
    .cmp-reasons,
    .cmp-hub-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .cmp-hero-inner,
    .cmp-verdict,
    .cmp-paths,
    .cmp-ranges,
    .cmp-wizard-choices,
    .cmp-hub-grid {
        grid-template-columns: 1fr;
    }

    .cmp-calc-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .cmp-calc-time {
        text-align: left;
    }

    .cmp-hero,
    .cmp-hub-hero {
        padding: 108px 20px 56px;
    }

    .cmp-hero-visual {
        max-width: 420px;
    }

    .cmp-section,
    .localweb-compare .comparison-section {
        padding: 64px 20px;
    }

    .cmp-calc {
        padding: 22px 18px;
    }

    .cmp-alt-meta-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .cmp-hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .localweb-compare .header .nav {
        display: none;
    }

    .cmp-pains,
    .cmp-reasons {
        grid-template-columns: 1fr;
    }

    .localweb-compare .comparison-table-wrap {
        overflow: visible;
        box-shadow: none;
        border: none;
        background: transparent;
        border-radius: 0;
    }

    .localweb-compare .comparison-table thead {
        position: static;
    }

    .localweb-compare .comparison-table tbody td:nth-child(2)::before,
    .localweb-compare .comparison-table tbody td:nth-child(3)::before,
    .localweb-compare .comparison-table tbody td:nth-child(4)::before,
    .localweb-compare .comparison-table tbody td:nth-child(5)::before,
    .localweb-compare .comparison-table tbody td:nth-child(6)::before {
        content: attr(data-label);
        color: #374151;
    }

    .localweb-compare .comparison-table tbody td.col-lw::before {
        color: #6366f1;
    }

    .cmp-hero .hero-display-title {
        font-size: 32px;
    }

    .cmp-hero .hero-subtitle {
        font-size: 16px;
    }
}
