.seo-page {
    min-height: 100vh;
    padding: 48px 20px 72px;

    background:
        radial-gradient(circle at 8% 12%, rgba(47, 128, 237, 0.10), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(40, 199, 143, 0.12), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(47, 128, 237, 0.08), transparent 38%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 48%, #f3f9ff 100%);

    color: #071a44;
    font-family: Arial, Helvetica, sans-serif;
}

.seo-container {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.seo-title {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 950;
    letter-spacing: -0.06em;
    line-height: 0.95;
    margin: 0 0 22px;

    color: #071a44;
    text-transform: uppercase;
}

.seo-subtitle {
    width: 100%;
    max-width: none;
    margin: 0 0 34px;

    color: #31476f;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 500;
    line-height: 1.6;

    text-align: justify;
    text-justify: inter-word;
}

.seo-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: -14px 0 30px;
}

.seo-share-links__label {
    color: #5b6b84;
    font-size: 0.86rem;
    font-weight: 850;
}

.seo-share-links__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.seo-share-links__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(7, 26, 68, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #071a44;
    font-size: 0.86rem;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(7, 26, 68, 0.04);
}

.seo-share-links__link:hover,
.seo-share-links__link:focus-visible {
    border-color: rgba(47, 128, 237, 0.28);
    color: #2f80ed;
    outline: none;
}

.seo-section-title {
    margin: 34px 0 18px;

    color: #071a44;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.seo-text {
    margin: 0;

    color: #5b6b84;
    font-size: 1rem;
    line-height: 1.65;

    text-align: justify;
    text-justify: inter-word;
}

.seo-list {
    padding-left: 0;
    list-style: none;
}

.seo-list li {
    margin-bottom: 12px;
    padding: 16px 18px;

    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(7, 26, 68, 0.06);

    color: #071a44;
    font-weight: 700;
}

.seo-breadcrumb {
    margin-bottom: 20px;
    color: #5b6b84;
    font-size: 0.9rem;
    font-weight: 600;
}

.seo-breadcrumb a {
    color: #2f80ed;
    text-decoration: none;
}

.seo-breadcrumb a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .seo-page {
        padding: 32px 16px 48px;
    }

    .seo-title {
        font-size: clamp(2.2rem, 12vw, 3.6rem);
    }

    .seo-subtitle,
    .seo-text {
        text-align: left;
    }
}

.seo-info-panel,
.seo-warning-section,
.seo-faq-block {
    margin-top: 34px;
}

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

.seo-info-card {
    min-height: 145px;
    padding: 20px;
    border: 1px solid rgba(47, 128, 237, 0.14);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(7, 26, 68, 0.06);
}

.seo-info-card h3,
.seo-faq-item h3 {
    margin: 0 0 8px;
    color: #071a44;
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
}

.seo-info-card p,
.seo-note-box p,
.seo-faq-item p {
    margin: 0;
    color: #5b6b84;
    font-size: 0.98rem;
    line-height: 1.55;
}

.seo-split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
    margin-top: 30px;
}

.seo-split-section .seo-section-title,
.seo-warning-section .seo-section-title,
.seo-faq-block .seo-section-title {
    margin-top: 0;
}

.seo-note-box {
    margin-top: 58px;
    padding: 20px;
    border-left: 5px solid #28c78f;
    border-radius: 12px;
    background: rgba(40, 199, 143, 0.10);
}

.seo-note-box strong {
    display: block;
    margin-bottom: 8px;
    color: #071a44;
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
}

.seo-check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.seo-check-list li {
    position: relative;
    padding: 14px 18px 14px 42px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(7, 26, 68, 0.05);
    color: #071a44;
    font-weight: 650;
    line-height: 1.45;
}

.seo-check-list li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2f80ed;
}

.seo-faq-block {
    padding-top: 6px;
}

.seo-faq-item {
    padding: 18px 0;
    border-top: 1px solid rgba(7, 26, 68, 0.12);
}

.seo-faq-item:last-child {
    border-bottom: 1px solid rgba(7, 26, 68, 0.12);
}

.seo-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 34px 0 24px;
}

.seo-cta p {
    margin: 0;
    color: #071a44;
    font-size: 1rem;
    line-height: 1.55;
}

.seo-cta .luz-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    text-decoration: none;
}

.seo-notice {
    margin: 24px 0 0;
    color: #5b6b84;
    font-size: 0.92rem;
    line-height: 1.55;
}



.seo-related-panel {
    margin-top: 38px;
}

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

.seo-related-card {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(6, 27, 73, 0.07);
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.seo-related-card:hover,
.seo-related-card:focus-visible {
    transform: translateY(-3px);
    border-color: #2bbf9a;
    box-shadow: 0 18px 40px rgba(6, 27, 73, 0.12);
    color: inherit;
    text-decoration: none;
}

.seo-related-card:focus-visible {
    outline: 3px solid rgba(47, 128, 237, 0.22);
    outline-offset: 3px;
}

.seo-related-icon {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.20) 34%, transparent 36%),
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), transparent 28%),
        linear-gradient(135deg, rgba(47, 128, 237, 0.22), rgba(43, 191, 154, 0.30));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -10px 18px rgba(47, 128, 237, 0.08),
        0 8px 18px rgba(47, 128, 237, 0.12);
    color: #061b49;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
}

.seo-related-icon::after {
    content: "";
    position: absolute;
    top: -8px;
    left: -18px;
    width: 56px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    transform: rotate(-28deg);
    pointer-events: none;
}

.seo-related-card h3 {
    margin: 0 0 10px;
    color: #061b49;
    font-size: 1.04rem;
    font-weight: 850;
    line-height: 1.25;
    text-decoration: none;
}

.seo-related-card p {
    margin: 0 0 18px;
    color: #5f6b7a;
    font-size: 0.96rem;
    line-height: 1.55;
}

.seo-related-cta {
    margin-top: auto;
    color: #2f80ed;
    font-size: 0.94rem;
    font-weight: 850;
    text-decoration: none;
    transition: color 180ms ease;
}

.seo-related-card:hover .seo-related-cta,
.seo-related-card:focus-visible .seo-related-cta {
    color: #2bbf9a;
}

@media (max-width: 900px) {
    .seo-info-grid,
    .seo-split-section,
    .seo-related-grid {
        grid-template-columns: 1fr;
    }

    .seo-related-card {
        min-height: auto;
        padding: 20px;
    }

    .seo-note-box {
        margin-top: 0;
    }
}

/* Ajustes de jerarquía para las fichas editoriales de compañías. */
.companias-detail-page .seo-container {
    width: min(1120px, 100%);
}

.companias-detail-page .seo-breadcrumb {
    margin-bottom: 16px;
}

.companias-detail-hero {
    margin-bottom: 34px;
}

.companias-detail-badge {
    display: inline-flex;
    margin-bottom: 15px;
    padding: 6px 11px;
    border: 1px solid rgba(40, 199, 143, 0.48);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #07976a;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.companias-detail-page .seo-title {
    max-width: 880px;
    margin-bottom: 18px;
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    line-height: 1.07;
    text-transform: none;
}

.companias-detail-page .seo-subtitle {
    max-width: 760px;
    margin-bottom: 26px;
    text-align: left;
}

.companias-detail-page .seo-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.companias-detail-page .seo-cta-row .luz-link-button {
    border: 1px solid #2f80ed;
    background: #ffffff !important;
    color: #2f80ed !important;
    box-shadow: none;
}

.companias-detail-page .seo-cta-row .luz-link-button:hover,
.companias-detail-page .seo-cta-row .luz-link-button:focus-visible {
    background: #f4f9ff;
    color: #2f80ed !important;
}

.companias-detail-summary-section {
    margin-top: 12px;
    padding: 24px 26px;
    border: 1px solid rgba(47, 128, 237, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 28px rgba(7, 26, 68, 0.05);
}

.companias-detail-summary-section .seo-section-title {
    margin-top: 0;
}

.companias-detail-summary {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.companias-detail-summary-card {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.companias-detail-summary-card h3 {
    margin-bottom: 7px;
    color: #071a44;
    font-size: 0.84rem;
    font-weight: 850;
}

.companias-detail-summary-card p {
    color: #5b6b84;
    font-size: 0.9rem;
    line-height: 1.48;
}

.companias-detail-nav {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    margin: 26px 0 6px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(7, 26, 68, 0.10);
    scrollbar-width: thin;
}

.companias-detail-nav a {
    flex: 0 0 auto;
    color: #31476f;
    font-size: 0.91rem;
    font-weight: 750;
    text-decoration: none;
}

.companias-detail-nav a:first-child {
    color: #2f80ed;
}

.companias-detail-nav a:hover,
.companias-detail-nav a:focus-visible {
    color: #2f80ed;
    text-decoration: underline;
}

.companias-detail-page .seo-related-card {
    min-height: 0;
    padding: 18px;
}

.companias-detail-page .seo-related-card h3 {
    margin-bottom: 6px;
}

.companias-detail-page .seo-related-cta {
    margin-top: 14px;
}

.companias-detail-page #tarifas .seo-text {
    margin-bottom: 20px;
}

.companias-detail-page #tarifas .seo-info-grid {
    align-items: stretch;
    row-gap: 32px;
    margin-bottom: 58px;
}

.companias-detail-page #tarifas .seo-info-grid:has(.seo-info-card:nth-child(5)) {
    row-gap: 48px;
}

.companias-detail-page #tarifas .seo-info-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.companias-detail-page #tarifas .seo-info-card .luz-link-button {
    margin-top: auto;
    align-self: flex-start;
    margin-bottom: 2px;
}

.companias-detail-page #precios .seo-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.companias-resource-panel {
    margin-top: 46px;
}

.companias-resource-panel .seo-section-title {
    margin-bottom: 8px;
}

.companias-resource-subtitle {
    max-width: 760px;
    margin: 0 0 20px;
    color: #5b6b84;
    font-size: 0.98rem;
    line-height: 1.55;
}

.companias-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.companias-resource-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 196px;
    padding: 24px;
    border: 1px solid rgba(47, 128, 237, 0.16);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), #ffffff 54%),
        radial-gradient(circle at 100% 0%, rgba(40, 199, 143, 0.12), transparent 36%);
    box-shadow: 0 14px 34px rgba(7, 26, 68, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.companias-resource-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #2f80ed, #28c78f);
}

.companias-resource-card:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 128, 237, 0.26);
    box-shadow: 0 18px 40px rgba(7, 26, 68, 0.11);
}

.companias-resource-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.14), rgba(40, 199, 143, 0.20));
    color: #2f80ed;
    font-size: 1.18rem;
    font-weight: 900;
}

.companias-resource-tag {
    position: absolute;
    top: 18px;
    right: 18px;
    max-width: calc(100% - 98px);
    overflow: hidden;
    padding: 5px 8px;
    border: 1px solid rgba(40, 199, 143, 0.30);
    border-radius: 999px;
    color: #07976a;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.companias-resource-card h3 {
    margin: 0 0 8px;
    color: #071a44;
    font-size: 1.06rem;
    font-weight: 850;
    line-height: 1.3;
}

.companias-resource-card p {
    margin: 0;
    color: #5b6b84;
    font-size: 0.94rem;
    line-height: 1.52;
}

.companias-resource-cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    justify-content: center;
    min-height: 38px;
    margin-top: auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(47, 128, 237, 0.09);
    color: #2f80ed;
    font-size: 0.92rem;
    font-weight: 850;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.companias-resource-cta:hover,
.companias-resource-cta:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(90deg, #2f80ed, #28c78f);
    color: #ffffff;
    text-decoration: none;
}

.companias-search-cta {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-top: 42px;
    padding: 24px 26px;
    border: 1px solid rgba(47, 128, 237, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.companias-search-cta h2 {
    margin: 0 0 6px;
    color: #071a44;
    font-size: 1.3rem;
    font-weight: 850;
}

.companias-search-cta p {
    max-width: 650px;
    margin: 0;
    color: #5b6b84;
    line-height: 1.5;
}

.companias-search-cta .luz-button {
    flex: 0 0 auto;
    text-decoration: none;
}

.seo-page-disclaimer {
    max-width: 940px;
    margin: 30px 0 0;
    color: #9aa7b8;
    font-size: 0.76rem;
    line-height: 1.45;
}

@media (max-width: 1000px) {
    .companias-detail-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    .companias-detail-page .seo-title {
        font-size: clamp(1.9rem, 9vw, 2.25rem);
        line-height: 1.12;
    }

    .companias-detail-summary-section {
        padding: 20px;
    }

    .companias-detail-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
    }

    .companias-detail-nav {
        gap: 20px;
    }

    .companias-resource-grid {
        grid-template-columns: 1fr;
    }

    .companias-resource-card {
        min-height: 0;
    }

    .companias-search-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .companias-search-cta .luz-button {
        width: 100%;
        text-align: center;
    }
}
