/* Landing del precio de la luz.
   Movil primero: todo se diseña para 390 px y a partir de 760 px se reordena.
   Reutiliza los tokens de `assets/content.css`; aqui solo se añaden los del
   semaforo de precio, que tambien usara la app. */

:root {
    --pl-barato: #0f7a53;
    --pl-barato-bg: #eafaf2;
    --pl-barato-line: #bfeeda;
    --pl-medio: #a16207;
    --pl-medio-bg: #fdf6e6;
    --pl-medio-line: #f1e0b6;
    --pl-caro: #b42318;
    --pl-caro-bg: #fdefee;
    --pl-caro-line: #f6cfcb;
    --pl-track: #e9ece9;
}

.pl-page { padding-bottom: 8px; }
.pl-page[data-precio-luz] { padding-top: 16px; }
.pl-page[data-precio-luz] > .pl-header {
    width: calc(100% + 48px);
    margin-left: -24px;
    padding: 16px 24px 20px;
    background: transparent;
    border-radius: 0;
}

/* Cabecera ------------------------------------------------------------- */

.pl-header { padding: 22px 0 16px; }
.pl-header h1 {
    margin: 8px 0 10px;
    font-family: 'Poppins', 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -.02em;
}

/* El encabezado Vatify y la tarjeta del precio son bloques visuales
   independientes; el relleno del primero no sustituye el aire entre ambos. */
.pl-header + .pl-now { margin-top: 20px; }

/* Tarjeta del precio actual -------------------------------------------- */

.pl-now {
    border: 1px solid var(--seo-line);
    border-radius: 18px;
    background: var(--seo-surface);
    padding: 18px;
    box-shadow: 0 1px 2px rgba(17, 20, 19, .04);
}

.pl-now--barato { background: var(--pl-barato-bg); border-color: var(--pl-barato-line); }
.pl-now--medio { background: var(--pl-medio-bg); border-color: var(--pl-medio-line); }
.pl-now--caro { background: var(--pl-caro-bg); border-color: var(--pl-caro-line); }

.pl-now__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.pl-now__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--seo-muted);
}

.pl-now__range {
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--seo-muted);
}

.pl-now__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 6px 0 4px;
}

.pl-now__price strong {
    font-size: 40px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.pl-now__unit { font-size: 16px; font-weight: 600; color: var(--seo-muted); }

.pl-now__verdict { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.pl-now--barato .pl-now__verdict { color: var(--pl-barato); }
.pl-now--medio .pl-now__verdict { color: var(--pl-medio); }
.pl-now--caro .pl-now__verdict { color: var(--pl-caro); }

.pl-now__meta { margin: 0; font-size: 12.5px; color: var(--seo-soft); }

/* Pestañas hoy / mañana ------------------------------------------------ */

.pl-tabs {
    display: flex;
    gap: 6px;
    margin: 18px 0 14px;
    padding: 4px;
    background: #eceeeb;
    border-radius: 12px;
}

.pl-tab {
    flex: 1;
    text-align: center;
    padding: 9px 6px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: var(--seo-muted);
    transition: background .15s ease, color .15s ease;
}

.pl-tab small { display: block; font-size: 11px; font-weight: 600; opacity: .75; }
.pl-tab.is-active { background: var(--seo-surface); color: var(--seo-ink); box-shadow: 0 1px 2px rgba(17, 20, 19, .1); }
.pl-tab.is-disabled { color: var(--seo-soft); cursor: default; }
/* Mañana sin publicar sigue siendo un enlace: la pagina responde igualmente
   a que hora sale el precio. Solo se atenua para no prometer datos. */
.pl-tab[data-tab-espera]:not(.is-active) { color: var(--seo-soft); }

/* Resumen del dia ------------------------------------------------------ */

.pl-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.pl-stat {
    background: var(--seo-surface);
    border: 1px solid var(--seo-line);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
}

.pl-stat__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--seo-soft);
    margin-bottom: 4px;
}

.pl-stat__value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.pl-stat__unit {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--seo-soft);
    font-variant-numeric: tabular-nums;
}

.pl-stat--barato .pl-stat__value { color: var(--pl-barato); }
.pl-stat--caro .pl-stat__value { color: var(--pl-caro); }

/* Grafico: en movil, barras horizontales con el precio siempre visible --- */

.pl-chart {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--seo-surface);
    border: 1px solid var(--seo-line);
    border-radius: 16px;
    padding: 12px 12px 10px;
}

.pl-bar {
    display: grid;
    grid-template-columns: 2.1rem 1fr 4.4rem;
    align-items: center;
    gap: 8px;
    padding: 2px 4px;
    border-radius: 7px;
}

.pl-bar--barato { --pl-color: var(--pl-barato); }
.pl-bar--medio { --pl-color: #d9a441; }
.pl-bar--caro { --pl-color: var(--pl-caro); }

.pl-bar__hora {
    font-size: 12px;
    font-weight: 600;
    color: var(--seo-soft);
    font-variant-numeric: tabular-nums;
}

.pl-bar__track {
    position: relative;
    display: block;
    height: 16px;
    background: var(--pl-track);
    border-radius: 5px;
}

.pl-bar__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: calc(var(--v, 0) * 100%);
    background: var(--pl-color);
    border-radius: 5px;
}

/* El precio va anclado al final de la barra, no a una columna suelta: asi se
   lee junto al dato que representa. */
.pl-bar__precio {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Hora en curso: pastilla oscura en la hora, anillo en la barra y precio en
   negro. Tres señales, ninguna dependiente solo del color. */
.pl-bar.is-now {
    background: #eef1ee;
    box-shadow: inset 0 0 0 1.5px var(--seo-ink);
}

.pl-bar.is-now .pl-bar__hora {
    background: var(--seo-ink);
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    padding: 2px 5px;
    text-align: center;
}

.pl-bar.is-now .pl-bar__fill { box-shadow: 0 0 0 1.5px var(--seo-ink); }
.pl-bar.is-now .pl-bar__precio { color: var(--seo-ink); font-weight: 800; }

.pl-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 10px 0 22px;
    font-size: 12px;
    color: var(--seo-muted);
}

.pl-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: -4px; }
.pl-dot--barato { background: var(--pl-barato); }
.pl-dot--medio { background: #d9a441; }
.pl-dot--caro { background: var(--pl-caro); }
.pl-legend__unit { margin-left: auto; color: var(--seo-soft); }

/* Franjas -------------------------------------------------------------- */

.pl-franjas { display: grid; gap: 12px; margin-bottom: 18px; }

.pl-franja {
    border: 1px solid var(--seo-line);
    border-radius: 16px;
    background: var(--seo-surface);
    padding: 16px;
}

.pl-franja h3 { margin: 0 0 10px; font-size: 16px; }
.pl-franja--barato { background: var(--pl-barato-bg); border-color: var(--pl-barato-line); }
.pl-franja--caro { background: var(--pl-caro-bg); border-color: var(--pl-caro-line); }

.pl-franja ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }

.pl-franja li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, .72);
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.pl-franja__hora { font-weight: 600; }
.pl-franja__precio { font-weight: 800; }
.pl-franja--barato .pl-franja__precio { color: var(--pl-barato); }
.pl-franja--caro .pl-franja__precio { color: var(--pl-caro); }
.pl-franja__nota { margin: 0; font-size: 13px; line-height: 1.5; color: var(--seo-muted); }

/* Tabla desplegable ----------------------------------------------------- */

.pl-details {
    border: 1px solid var(--seo-line);
    border-radius: 14px;
    background: var(--seo-surface);
    padding: 4px 14px;
    margin-bottom: 26px;
}

.pl-details > summary {
    cursor: pointer;
    padding: 12px 0;
    font-weight: 700;
    font-size: 14.5px;
}

.pl-table { font-variant-numeric: tabular-nums; }
.pl-table tr.is-now { background: #f2f4f1; }

.pl-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}

.pl-chip--barato { background: var(--pl-barato-bg); color: var(--pl-barato); }
.pl-chip--medio { background: var(--pl-medio-bg); color: var(--pl-medio); }
.pl-chip--caro { background: var(--pl-caro-bg); color: var(--pl-caro); }

.pl-neg { color: var(--pl-barato); font-weight: 600; }
.pl-pos { color: var(--pl-caro); font-weight: 600; }
.pl-col-opt { display: none; }

/* Desglose -------------------------------------------------------------- */

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

.pl-desglose__item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
}

.pl-desglose__label { font-size: 14px; font-weight: 600; }

.pl-desglose__value {
    font-size: 14px;
    font-weight: 800;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.pl-desglose__value small { display: block; font-weight: 600; color: var(--seo-soft); }

.pl-desglose__bar {
    grid-column: 1 / -1;
    display: block;
    height: 10px;
    background: var(--pl-track);
    border-radius: 5px;
    overflow: hidden;
}

.pl-desglose__bar > span { display: block; height: 100%; border-radius: 5px; background: var(--seo-ink); }
.pl-desglose__item--mercado .pl-desglose__bar > span { background: var(--seo-green); }
.pl-desglose__item--peajes .pl-desglose__bar > span { background: #4d7ea8; }
.pl-desglose__item--ajustes .pl-desglose__bar > span { background: #d9a441; }
.pl-desglose__item--comercializacion .pl-desglose__bar > span { background: #8a7bb8; }

/* Aviso de datos no disponibles ----------------------------------------- */

.pl-alert {
    border: 1px solid var(--pl-medio-line);
    background: var(--pl-medio-bg);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.pl-alert h2 { margin: 0 0 8px; font-size: 19px; }
.pl-alert p { margin: 0 0 14px; color: var(--seo-muted); }

.pl-fuente { margin: 26px 0 32px; }

/* Puente entre /precio-luz-hoy/ y /precio-luz-manana/ -------------------- */

.pl-crosslink {
    margin: 0 0 24px;
    padding: 12px 14px;
    border: 1px solid var(--seo-line);
    border-radius: 12px;
    background: var(--seo-surface);
    font-size: 14px;
    line-height: 1.55;
    color: var(--seo-muted);
}

.pl-crosslink a { color: var(--seo-green); font-weight: 700; }

/* Referencia del dia en curso en la landing de mañana, mientras REE no ha
   publicado. No es una prevision: es el dato de hoy, dicho como tal. */

.pl-referencia {
    margin-bottom: 24px;
    padding: 18px 16px;
    border: 1px solid var(--seo-line);
    border-radius: 16px;
    background: var(--seo-surface);
}

.pl-referencia h2 { margin: 0 0 8px; font-size: 19px; }
.pl-referencia .seo-lead { font-size: 15px; margin: 0 0 14px; }
.pl-referencia .pl-stats { margin-bottom: 12px; }
.pl-referencia .seo-footnote { margin: 0; }

/* Escritorio ------------------------------------------------------------ */

@media (min-width: 760px) {
    .pl-header { padding: 34px 0 20px; }
    .pl-header h1 { font-size: 40px; }

    .pl-now { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 28px; padding: 24px 28px; }
    .pl-now__head { grid-column: 1 / -1; }
    .pl-now__price strong { font-size: 56px; }
    .pl-now__verdict { grid-column: 1; margin: 0; }
    .pl-now__meta { grid-column: 2; text-align: right; margin: 0; }

    .pl-tabs { width: max-content; }
    .pl-tab { min-width: 130px; }

    .pl-stats { gap: 14px; }
    .pl-stat { padding: 16px; }
    .pl-stat__value { font-size: 24px; }

    /* El grafico pasa a columnas verticales: mismo HTML, otra orientacion.
       El hueco superior es el sitio del precio de la barra mas alta. */
    .pl-chart {
        flex-direction: row;
        align-items: stretch;
        height: 360px;
        gap: 4px;
        padding: 58px 16px 12px;
    }

    .pl-bar {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: flex-start;
        flex: 1;
        gap: 6px;
        padding: 0;
        min-width: 0;
    }

    .pl-bar__hora { font-size: 11px; }
    .pl-bar__h { display: none; }

    .pl-bar__track {
        position: relative;
        width: 100%;
        height: auto;
        flex: 1;
        background: transparent;
        border-radius: 6px;
    }

    .pl-bar__fill {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: auto;
        height: calc(var(--v, 0) * 100%);
        border-radius: 6px 6px 3px 3px;
        transition: filter .15s ease;
    }

    /* El skin base conserva aquí su orientación histórica. La superficie
       Vatify de precio de hoy la sustituye al final de la hoja. */
    .pl-bar__precio {
        left: 50%;
        top: auto;
        bottom: calc(var(--v, 0) * 100%);
        margin-bottom: 7px;
        transform: translateX(-50%) rotate(180deg);
        writing-mode: vertical-rl;
        font-size: 11px;
        font-weight: 700;
        color: var(--seo-muted);
    }

    .pl-bar:hover .pl-bar__fill { filter: brightness(.92); }
    .pl-bar:hover .pl-bar__precio { color: var(--seo-ink); }

    .pl-bar.is-now { background: transparent; box-shadow: none; }

    .pl-bar.is-now .pl-bar__fill {
        outline: 2px solid var(--seo-ink);
        outline-offset: 2px;
        box-shadow: none;
    }

    /* Guia vertical punteada desde el suelo hasta la barra en curso. */
    .pl-bar.is-now .pl-bar__track::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        border-left: 1.5px dashed rgba(17, 20, 19, .3);
    }

    .pl-bar.is-now .pl-bar__precio {
        color: var(--seo-ink);
        font-weight: 800;
        font-size: 12px;
    }

    .pl-franjas { grid-template-columns: 1fr 1fr; gap: 16px; }
    .pl-col-opt { display: table-cell; }

    .pl-desglose__item { grid-template-columns: 200px 1fr 140px; }
    .pl-desglose__bar { grid-column: 2; }
    .pl-desglose__value { text-align: right; }
    .pl-desglose__value small { display: inline; margin-left: 6px; }
}

@media (max-width: 759px) {
    .pl-page[data-precio-luz] { padding-top: 12px; }
    .pl-page[data-precio-luz] > .pl-header { padding: 12px 24px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .pl-bar__fill,
    .pl-bar__precio,
    .pl-tab { transition: none; }
}

/* Sello de procedencia del aviso de «aun no publicado»: la ultima comprobacion
   real, no la hora en que se pinta la pagina. */
.pl-alert__sello {
    margin: 12px 0 0;
    font-size: 12.5px;
    color: var(--seo-soft);
}

/* ===========================================================================
   Landing Vatify de precio de la luz · referencia 2026-08-27

   Las páginas se sirven con el marcado y los datos de producción de PHP. La
   composición completa de la referencia se activa con `vt-price-today`; la
   landing de mañana solo añade, al final del archivo, la paridad editorial de
   breadcrumb, FAQ y CTA sin heredar el resto de decisiones específicas de hoy.
   ========================================================================== */

body.vt-price-today {
    --seo-bg: #fff;
    --seo-surface: #fff;
    --seo-ink: #000;
    --seo-muted: #717171;
    --seo-soft: #9b9b9b;
    --seo-line: #eff1ee;
    --seo-green: #078959;
    --seo-green-bg: #eafbf3;
    --seo-green-line: #b7e9d5;
    --pl-barato: #0abf7d;
    --pl-barato-bg: #eafbf3;
    --pl-barato-line: #b7e9d5;
    --pl-medio: #f2cb05;
    --pl-medio-bg: #fff7cf;
    --pl-medio-line: #e4e4e4;
    --pl-medio-text: #9a7100;
    --pl-caro: #c4392b;
    --pl-caro-bg: #fdecea;
    --pl-caro-line: #f3c7c1;
    --pl-track: #eff1ee;
    overflow-x: hidden;
    background: #fff;
    color: #000;
    font-family: 'Poppins', 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body.vt-price-today main,
body.vt-price-today .pl-page {
    background: #fff;
}

body.vt-price-today .seo-breadcrumb-bar {
    background: #fff;
    border-bottom: 0;
}

body.vt-price-today .seo-breadcrumb-bar .seo-breadcrumb {
    padding: 14px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

body.vt-price-today .seo-breadcrumb-bar .seo-breadcrumb a {
    color: #9b9b9b;
    text-decoration: none;
}

body.vt-price-today .seo-breadcrumb-bar .seo-breadcrumb a:hover {
    color: #078959;
}

body.vt-price-today .pl-page {
    max-width: 1180px;
    padding: 0 24px;
}

/* Hero blanco: las tres piezas conservan el eje de 1180 px del sitio. */
body.vt-price-today .pl-hero {
    width: calc(100% + 48px);
    margin-left: -24px;
    padding: 34px 24px 56px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 44px;
}

body.vt-price-today .pl-hero > * {
    width: min(1180px, 100%);
    margin-right: auto;
    margin-left: auto;
}

body.vt-price-today .pl-hero .pl-header {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: transparent;
    border: 0;
    border-radius: 0;
}

body.vt-price-today .pl-hero .pl-header .seo-kicker {
    align-self: flex-start;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #b7e9d5;
    border-radius: 8px;
    background: #eafbf3;
    color: #078959;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

body.vt-price-today .pl-hero .pl-header h1 {
    margin: 0;
    color: #000;
    font-family: 'Poppins', 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: normal;
    text-wrap: balance;
}

body.vt-price-today .pl-hero .pl-header .seo-lead {
    max-width: none;
    margin: 0;
    color: #717171;
    font-size: 15px;
    line-height: 1.7;
}

body.vt-price-today .pl-hero .pl-header .seo-lead a,
body.vt-price-today .pl-crosslink a,
body.vt-price-today .seo-footnote a {
    color: #078959;
    font-weight: 700;
}

/* Precio actual: el HTML conserva la lectura real y el JS puede actualizarlo. */
body.vt-price-today .pl-hero .pl-now {
    width: min(1180px, 100%);
    margin: 0;
    padding: 20px;
    border: 1px solid var(--pl-barato-line);
    border-radius: 25px;
    background: var(--pl-barato-bg);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.vt-price-today .pl-hero .pl-now--barato {
    background: var(--pl-barato-bg);
    border-color: var(--pl-barato-line);
}

body.vt-price-today .pl-hero .pl-now--medio {
    background: var(--pl-medio-bg);
    border-color: var(--pl-medio-line);
}

body.vt-price-today .pl-hero .pl-now--caro {
    background: var(--pl-caro-bg);
    border-color: var(--pl-caro-line);
}

body.vt-price-today .pl-now__head {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

body.vt-price-today .pl-now__label {
    color: #717171;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}

body.vt-price-today .pl-now__range {
    color: #717171;
    font-size: 13px;
    font-weight: 700;
}

body.vt-price-today .pl-now__price {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

body.vt-price-today .pl-now__price strong {
    color: #000;
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: normal;
}

body.vt-price-today .pl-now__unit {
    color: #717171;
    font-size: 16px;
    font-weight: 700;
}

body.vt-price-today .pl-now__verdict {
    margin: 0;
    color: #078959;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

body.vt-price-today .pl-now--medio .pl-now__verdict { color: var(--pl-medio-text); }
body.vt-price-today .pl-now--caro .pl-now__verdict { color: #b4342a; }

body.vt-price-today .pl-now__meta {
    margin: 0;
    color: #9b9b9b;
    font-size: 12px;
    line-height: 1.6;
}

/* Pestañas con la misma pastilla de 25 px que la referencia. */
body.vt-price-today .pl-hero .pl-tabs {
    align-self: flex-start;
    width: max-content;
    margin: 0;
    padding: 5px;
    gap: 4px;
    border-radius: 25px;
    background: #f3f3f3;
}

body.vt-price-today .pl-hero .pl-tab {
    min-width: 0;
    padding: 8px 26px;
    border-radius: 25px;
    color: #717171;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

body.vt-price-today .pl-hero .pl-tab.is-active {
    padding: 12px 34px;
    background: #fff;
    color: #000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

body.vt-price-today .pl-hero .pl-tab small {
    color: #9b9b9b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
}

/* Banda gris de datos: se extiende hasta los bordes de la ventana, como en la
   maqueta, y mantiene el eje interior de 1180 px. */
body.vt-price-today .pl-data-band {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 36px max(16px, calc((100vw - 1180px) / 2)) 36px;
    background: #f3f3f3;
}

body.vt-price-today .pl-data-band > .pl-panel,
body.vt-price-today .pl-data-band > .pl-crosslink {
    width: 100%;
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

body.vt-price-today .pl-data-band > .pl-panel {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent;
    border: 0;
}

/* Resumen */
body.vt-price-today .pl-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0;
}

body.vt-price-today .pl-stat {
    min-width: 0;
    padding: 20px;
    border: 0;
    border-radius: 25px;
    background: #fff;
    text-align: left;
}

body.vt-price-today .pl-stat__label {
    margin: 0 0 4px;
    color: #717171;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}

body.vt-price-today .pl-stat--barato .pl-stat__label { color: #078959; }
body.vt-price-today .pl-stat--caro .pl-stat__label { color: #b4342a; }

body.vt-price-today .pl-stat__value {
    color: #000;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: normal;
}

body.vt-price-today .pl-stat--barato .pl-stat__value { color: #078959; }
body.vt-price-today .pl-stat--caro .pl-stat__value { color: #c4392b; }

body.vt-price-today .pl-stat__unit {
    margin-top: 2px;
    color: #9b9b9b;
    font-size: 14px;
    line-height: 1.5;
}

/* Gráfico de columnas para tableta y escritorio. En móvil, las reglas del
   breakpoint final recuperan la lista horizontal de la referencia. */
body.vt-price-today .pl-chart {
    width: 100%;
    height: 200px;
    padding: 18px 14px 14px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 2px;
    overflow: hidden;
    border: 0;
    border-radius: 25px;
    background: #fff;
}

body.vt-price-today .pl-bar {
    position: relative;
    min-width: 0;
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.vt-price-today .pl-bar--barato { --pl-color: #078959; }
body.vt-price-today .pl-bar--medio { --pl-color: #d9a441; }
body.vt-price-today .pl-bar--caro { --pl-color: #c4392b; }

body.vt-price-today .pl-bar__hora {
    color: #717171;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

body.vt-price-today .pl-bar__h { display: none; }

body.vt-price-today .pl-bar__track {
    position: relative;
    width: 100%;
    height: auto;
    flex: 1;
    background: transparent;
    border-radius: 0;
}

body.vt-price-today .pl-bar__fill {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: calc(var(--v, 0) * 100%);
    min-height: 3px;
    border-radius: 6px 6px 0 0;
    background: var(--pl-color);
    box-shadow: none;
}

body.vt-price-today .pl-bar__precio {
    display: none;
}

body.vt-price-today .pl-bar.is-now {
    background: transparent;
    box-shadow: none;
}

body.vt-price-today .pl-bar.is-now .pl-bar__hora {
    padding: 2px 5px;
    border-radius: 25px;
    background: #000;
    color: #fff;
}

body.vt-price-today .pl-bar.is-now .pl-bar__fill {
    outline: 2px solid #000;
    outline-offset: 2px;
    box-shadow: none;
}

body.vt-price-today .pl-bar.is-now .pl-bar__track::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    border-left: 1px dashed rgba(0, 0, 0, .3);
}

body.vt-price-today .pl-legend {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #eff1ee;
    gap: 8px 18px;
    color: #717171;
    font-size: 13px;
}

body.vt-price-today .pl-dot {
    width: 10px;
    height: 10px;
    margin-right: -10px;
    border-radius: 3px;
}

body.vt-price-today .pl-dot--barato { background: #0abf7d; }
body.vt-price-today .pl-dot--medio { background: #f2cb05; }
body.vt-price-today .pl-dot--caro { background: #c4392b; }
body.vt-price-today .pl-legend__unit { color: #9b9b9b; }

/* Franjas */
body.vt-price-today .pl-franjas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0;
}

body.vt-price-today .pl-franja {
    min-width: 0;
    padding: 20px 18px;
    border: 0;
    border-radius: 25px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.vt-price-today .pl-franja--barato,
body.vt-price-today .pl-franja--caro {
    border-color: transparent;
    background: #fff;
}

body.vt-price-today .pl-franja h3 {
    margin: 0;
    color: #000;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

body.vt-price-today .pl-franja ul {
    margin: 0;
    gap: 8px;
}

body.vt-price-today .pl-franja li {
    padding: 12px 16px;
    border: 1px solid var(--pl-barato-line);
    border-radius: 14px;
    background: var(--pl-barato-bg);
    color: #000;
    font-size: 15px;
    line-height: 1.4;
}

body.vt-price-today .pl-franja--caro li {
    border-color: var(--pl-caro-line);
    background: var(--pl-caro-bg);
}

body.vt-price-today .pl-franja__hora { font-weight: 600; }
body.vt-price-today .pl-franja__precio { font-weight: 800; }
body.vt-price-today .pl-franja--barato .pl-franja__precio { color: #078959; }
body.vt-price-today .pl-franja--caro .pl-franja__precio { color: #b4342a; }

body.vt-price-today .pl-franja__nota {
    margin: 0;
    color: #717171;
    font-size: 14px;
    line-height: 1.65;
}

body.vt-price-today .pl-franja__nota strong { color: #000; }

/* Tabla: tarjeta blanca con filas semánticas que se apilan en móvil/tablet. */
body.vt-price-today .pl-details {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 25px;
    background: #fff;
}

body.vt-price-today .pl-details > summary {
    padding: 20px 18px;
    color: #000;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
}

body.vt-price-today .pl-details > summary::-webkit-details-marker { display: none; }
body.vt-price-today .pl-details > summary::after {
    content: '+';
    float: right;
    color: #078959;
    font-size: 20px;
    line-height: 1;
}
body.vt-price-today .pl-details[open] > summary::after { content: '−'; }

body.vt-price-today .pl-details .seo-tablewrap {
    margin: 0;
    overflow: visible;
}

body.vt-price-today .pl-details .pl-table {
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
}

body.vt-price-today .pl-details .pl-table thead th {
    padding: 0 6px 12px;
    border-bottom: 1px solid #eff1ee;
    background: transparent;
    color: #9b9b9b;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

body.vt-price-today .pl-details .pl-table tbody th,
body.vt-price-today .pl-details .pl-table tbody td {
    padding: 12px 6px;
    border-bottom: 1px solid #eff1ee;
    color: #000;
}

body.vt-price-today .pl-details .pl-table tbody tr:last-child th,
body.vt-price-today .pl-details .pl-table tbody tr:last-child td { border-bottom: 0; }
body.vt-price-today .pl-details .pl-table tbody tr.is-now { background: #fafaf9; }
body.vt-price-today .pl-details .pl-table tbody th[scope='row'] { font-weight: 700; }
body.vt-price-today .pl-details .pl-table .pl-chip { border-radius: 8px; font-size: 12px; }

body.vt-price-today .pl-col-opt { display: table-cell; }

/* Puente hacia mañana: texto plano al final de la banda gris. */
body.vt-price-today .pl-crosslink {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #717171;
    font-size: 14px;
    line-height: 1.7;
}

/* Secciones blancas de contenido editorial. */
body.vt-price-today .pl-page > .seo-section {
    margin: 0;
    padding: 60px 0 0;
    border-top: 0;
    background: transparent;
    border-radius: 0;
}

body.vt-price-today .pl-page > .seo-section.seo-section--soft {
    padding: 60px 0 0;
    background: transparent;
    border-radius: 0;
}

body.vt-price-today .seo-section__head {
    max-width: 72ch;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.vt-price-today .seo-section__head .seo-eyebrow {
    margin: 0;
    color: #0abf7d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

body.vt-price-today .seo-section h2 {
    margin: 0;
    color: #000;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: normal;
}

body.vt-price-today .seo-section p,
body.vt-price-today .seo-section .seo-lead {
    color: #717171;
    font-size: 15px;
    line-height: 1.7;
}

body.vt-price-today .seo-section__head .seo-lead {
    max-width: 72ch;
    margin: 0;
}

body.vt-price-today .pl-desglose__list {
    margin: 0;
    padding: 20px 18px;
    gap: 14px;
    border: 1px solid #eff1ee;
    border-radius: 25px;
    background: #fafaf9;
}

/* Cada bloque editorial de la maqueta es una columna con una separación
   constante entre antetítulo, contenido y nota. Sin este contenedor flex, el
   margen colapsado de la hoja editorial dejaba el título demasiado pegado a
   las barras y a las preguntas frecuentes. */
body.vt-price-today .pl-page > .seo-section#desglose,
body.vt-price-today .pl-page > .seo-section#periodos,
body.vt-price-today .pl-page > .seo-section#faq {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.vt-price-today .pl-desglose__item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
}

body.vt-price-today .pl-desglose__label {
    color: #000;
    font-size: 15px;
    font-weight: 600;
}

body.vt-price-today .pl-desglose__value {
    color: #000;
    font-size: 15px;
    font-weight: 800;
}

body.vt-price-today .pl-desglose__value small {
    display: inline;
    margin-left: 10px;
    color: #717171;
    font-size: 14px;
    font-weight: 400;
}

body.vt-price-today .pl-desglose__bar {
    grid-column: 1 / -1;
    height: 9px;
    border-radius: 25px;
    background: #eff1ee;
    overflow: hidden;
}

body.vt-price-today .pl-desglose__bar > span {
    border-radius: 25px;
}

/* Colores de la referencia Vatify; las anchuras siguen llegando del cálculo
   real de PrecioLuzVista.php. */
body.vt-price-today .pl-desglose__item--mercado .pl-desglose__bar > span { background: #0abf7d; }
body.vt-price-today .pl-desglose__item--peajes .pl-desglose__bar > span { background: #f2cb05; }
body.vt-price-today .pl-desglose__item--ajustes .pl-desglose__bar > span { background: #b7e9d5; }
body.vt-price-today .pl-desglose__item--comercializacion .pl-desglose__bar > span { background: #e4e4e4; }

body.vt-price-today .pl-desglose .seo-footnote,
body.vt-price-today #periodos .seo-footnote,
body.vt-price-today #faq .seo-footnote,
body.vt-price-today .pl-fuente {
    margin: 0;
    max-width: 820px;
    color: #717171;
    font-size: 15px;
    line-height: 1.75;
}

body.vt-price-today .seo-grid--3 {
    grid-template-columns: 1fr;
    gap: 14px;
}

body.vt-price-today .seo-grid--3 .seo-card {
    padding: 26px;
    border: 1px solid #eff1ee;
    border-radius: 25px;
    background: #fafaf9;
}

body.vt-price-today .seo-grid--3 .seo-card h3 {
    margin: 0 0 10px;
    color: #000;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

body.vt-price-today .seo-grid--3 .seo-card p {
    margin: 0;
    color: #717171;
    font-size: 14px;
    line-height: 1.65;
}

body.vt-price-today .seo-faq {
    margin: 0;
    gap: 12px;
}

body.vt-price-today .seo-faq details {
    padding: 0;
    border: 1px solid #eff1ee;
    border-radius: 25px;
    background: #fafaf9;
    overflow: hidden;
}

body.vt-price-today .seo-faq summary {
    padding: 20px 18px;
    color: #000;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

body.vt-price-today .seo-faq summary::after { color: #078959; }

body.vt-price-today .seo-faq p {
    margin: 0;
    padding: 0 18px 18px;
    color: #717171;
    font-size: 15px;
    line-height: 1.75;
}

body.vt-price-today .pl-fuente {
    margin: 60px 0 0;
}

/* CTA final: mantiene el copy de producción y adopta la banda de cierre de la
   referencia, incluyendo el rayo local con cache-busting desde PHP. */
body.vt-price-today .pl-page > .seo-section.pl-closing-cta {
    padding: 60px 0 84px;
}

body.vt-price-today .pl-closing-cta .seo-cta-box {
    position: relative;
    min-width: 0;
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    overflow: hidden;
    border: 0;
    border-radius: 25px;
    background: linear-gradient(rgba(0, 0, 0, .34), rgba(0, 0, 0, .34)), linear-gradient(89deg, #f2cb05 0%, #0abf7d 100%);
    color: #fff;
}

body.vt-price-today .pl-closing-cta__ray {
    position: absolute;
    right: -30px;
    bottom: -80px;
    z-index: 0;
    height: 280px;
    opacity: .2;
    pointer-events: none;
}

body.vt-price-today .pl-closing-cta__copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.vt-price-today .pl-closing-cta .seo-cta-box h2 {
    margin: 0;
    color: #fff;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.2;
}

body.vt-price-today .pl-closing-cta .seo-cta-box p {
    margin: 0;
    max-width: 680px;
    color: #fff;
    font-size: 15px;
    line-height: 1.65;
    opacity: .95;
}

body.vt-price-today .pl-closing-cta .seo-cta-box > .seo-cta {
    position: relative;
    z-index: 1;
    padding: 17px 28px;
    border-radius: 25px;
    background: #fff;
    color: #078959;
    font-size: 16px;
    font-weight: 800;
}

body.vt-price-today .pl-closing-cta .seo-cta-box > .seo-cta:hover {
    background: #fff;
    color: #0abf7d;
}

@media (min-width: 640px) {
    body.vt-price-today .pl-page { padding-right: 20px; padding-left: 20px; }
    body.vt-price-today .pl-hero {
        width: calc(100% + 40px);
        margin-left: -20px;
        padding: 26px 20px 40px;
        gap: 24px;
    }
    body.vt-price-today .pl-hero .pl-header h1 { font-size: 34px; }
    body.vt-price-today .pl-hero .pl-now { padding: 26px; }
    body.vt-price-today .pl-hero .pl-now { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 10px 24px; }
    body.vt-price-today .pl-hero .pl-now__head,
    body.vt-price-today .pl-hero .pl-now__price { grid-column: 1 / -1; }
    body.vt-price-today .pl-hero .pl-now__verdict { grid-column: 1; }
    body.vt-price-today .pl-hero .pl-now__meta { grid-column: 2; text-align: right; }
    body.vt-price-today .pl-now__price strong { font-size: 46px; }
    body.vt-price-today .pl-data-band { padding-top: 44px; padding-bottom: 44px; }
    body.vt-price-today .pl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.vt-price-today .pl-stat { padding: 24px; }
    body.vt-price-today .pl-chart { height: 290px; padding: 26px 28px 18px; gap: 5px; }
    body.vt-price-today .pl-bar__hora { font-size: 11px; }
    body.vt-price-today .pl-bar__precio {
        position: absolute;
        top: auto;
        bottom: calc(var(--v, 0) * 100%);
        left: 50%;
        display: block;
        margin-bottom: 7px;
        transform: translateX(-50%);
        color: #717171;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
        writing-mode: horizontal-tb;
    }
    body.vt-price-today .pl-bar.is-now .pl-bar__precio { color: #000; font-size: 12px; font-weight: 800; }
    body.vt-price-today .pl-franjas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.vt-price-today .pl-franja { padding: 28px 30px; }
    body.vt-price-today .pl-franja h3 { font-size: 20px; }
    body.vt-price-today .pl-details > summary { padding: 28px 30px; font-size: 20px; }
    body.vt-price-today .pl-details .seo-tablewrap { padding: 0 30px 28px; }
    body.vt-price-today .pl-desglose__list { padding: 28px 30px; }
    body.vt-price-today .pl-page > .seo-section,
    body.vt-price-today .pl-page > .seo-section.seo-section--soft { padding-top: 60px; }
    body.vt-price-today .seo-section h2 { font-size: 30px; }
    body.vt-price-today .seo-section p,
    body.vt-price-today .seo-section .seo-lead { font-size: 16px; }
    body.vt-price-today .seo-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.vt-price-today .seo-grid--3 .seo-card h3 { font-size: 20px; }
    body.vt-price-today .seo-faq summary { font-size: 16px; }
    body.vt-price-today .pl-closing-cta .seo-cta-box h2 { font-size: 30px; }
    body.vt-price-today .pl-closing-cta .seo-cta-box p { font-size: 16px; }
}

@media (min-width: 1000px) {
    body.vt-price-today .pl-page { padding-right: 24px; padding-left: 24px; }
    body.vt-price-today .pl-hero {
        width: calc(100% + 48px);
        margin-left: -24px;
        padding: 34px 24px 56px;
        gap: 44px;
    }
    body.vt-price-today .pl-hero .pl-header h1 { font-size: 40px; }
    body.vt-price-today .pl-hero .pl-now { padding: 26px; }
    body.vt-price-today .pl-data-band { padding-top: 60px; padding-bottom: 60px; }
    body.vt-price-today .pl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.vt-price-today .pl-details .seo-tablewrap { padding-right: 30px; padding-left: 30px; }
    body.vt-price-today .seo-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
    body.vt-price-today .pl-page { padding-right: 16px; padding-left: 16px; }
    body.vt-price-today .seo-breadcrumb-bar .seo-shell { padding-right: 16px; padding-left: 16px; }
    body.vt-price-today .pl-hero {
        width: calc(100% + 32px);
        margin-left: -16px;
        padding: 20px 16px 34px;
        gap: 24px;
    }
    body.vt-price-today .pl-data-band { padding-right: 16px; padding-left: 16px; }
    body.vt-price-today .pl-data-band > .pl-panel { gap: 0; }
    body.vt-price-today .pl-hero .pl-tabs { max-width: 100%; }
    body.vt-price-today .pl-hero .pl-tab { padding-right: 26px; padding-left: 26px; }
    body.vt-price-today .pl-hero .pl-tab.is-active { padding-right: 30px; padding-left: 30px; }

    /* En 390 px se muestran las tres referencias del día en una sola fila,
       como en la maqueta, sin convertirlas en tres tarjetas apiladas. */
    body.vt-price-today .pl-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 20px;
    }
    body.vt-price-today .pl-stat {
        padding: 12px 8px;
        border: 1px solid #e4e4e4;
        border-radius: 18px;
        text-align: center;
    }
    body.vt-price-today .pl-stat__label { font-size: 10px; }
    body.vt-price-today .pl-stat__value { font-size: clamp(17px, 5vw, 20px); }
    body.vt-price-today .pl-stat__unit { font-size: 11px; }

    /* Las 24 horas vuelven a ser filas horizontales: hora, barra y precio
       quedan visibles a la vez y la hora en curso se enmarca completa. */
    body.vt-price-today .pl-chart {
        height: auto;
        padding: 14px 12px 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        overflow: visible;
        border: 1px solid #e4e4e4;
        border-radius: 25px;
    }
    body.vt-price-today .pl-bar {
        display: grid;
        grid-template-columns: 2.4rem minmax(0, 1fr) 4.7rem;
        align-items: center;
        flex: none;
        gap: 8px;
        padding: 2px 4px;
        border-radius: 8px;
    }
    body.vt-price-today .pl-bar__hora {
        font-size: 12px;
        line-height: 1.2;
        text-align: left;
    }
    body.vt-price-today .pl-bar__h { display: inline; }
    body.vt-price-today .pl-bar__track {
        width: 100%;
        height: 20px;
        flex: none;
        background: var(--pl-track);
        border-radius: 6px;
    }
    body.vt-price-today .pl-bar__fill {
        top: 0;
        right: auto;
        bottom: 0;
        left: 0;
        width: calc(var(--v, 0) * 100%);
        height: auto;
        min-height: 0;
        border-radius: 6px;
    }
    body.vt-price-today .pl-bar__precio {
        position: absolute;
        top: 50%;
        bottom: auto;
        left: calc(100% + 10px);
        display: block;
        margin: 0;
        transform: translateY(-50%);
        color: #000;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
    }
    body.vt-price-today .pl-bar.is-now {
        background: #eef1ee;
        box-shadow: inset 0 0 0 2px #000;
    }
    body.vt-price-today .pl-bar.is-now .pl-bar__hora {
        padding: 2px 5px;
        text-align: center;
    }
    body.vt-price-today .pl-bar.is-now .pl-bar__fill {
        outline: 2px solid #000;
        outline-offset: 1px;
    }
    body.vt-price-today .pl-bar.is-now .pl-bar__track::before { content: none; }
    body.vt-price-today .pl-legend {
        margin: 10px 0 22px;
        padding-top: 0;
        border-top: 0;
        gap: 6px 12px;
        font-size: 12px;
    }
    body.vt-price-today .pl-dot {
        width: 9px;
        height: 9px;
        margin-right: -4px;
        border-radius: 50%;
    }

    body.vt-price-today .pl-franjas { gap: 12px; margin-bottom: 18px; }
    body.vt-price-today .pl-franja {
        padding: 16px;
        border: 1px solid #e4e4e4;
        border-radius: 20px;
        gap: 0;
    }
    body.vt-price-today .pl-franja--barato {
        border-color: var(--pl-barato-line);
        background: var(--pl-barato-bg);
    }
    body.vt-price-today .pl-franja--caro {
        border-color: var(--pl-caro-line);
        background: var(--pl-caro-bg);
    }
    body.vt-price-today .pl-franja h3 { margin: 0 0 10px; font-size: 18px; }
    body.vt-price-today .pl-franja ul { margin: 0 0 10px; gap: 6px; }
    body.vt-price-today .pl-franja li,
    body.vt-price-today .pl-franja--caro li {
        padding: 8px 10px;
        border: 0;
        border-radius: 9px;
        background: rgba(255, 255, 255, .72);
        font-size: 14px;
        font-weight: 400;
    }
    body.vt-price-today .pl-details .seo-tablewrap { padding: 0 18px 20px; }
    body.vt-price-today .pl-details .pl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    body.vt-price-today .pl-details .pl-table tbody { display: grid; gap: 10px; }
    body.vt-price-today .pl-details .pl-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px; border: 1px solid #eff1ee; border-radius: 14px; background: #fafaf9; }
    body.vt-price-today .pl-details .pl-table tbody th,
    body.vt-price-today .pl-details .pl-table tbody td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0; border: 0; background: transparent; font-size: 14px; }
    body.vt-price-today .pl-details .pl-table tbody th::before,
    body.vt-price-today .pl-details .pl-table tbody td::before { content: attr(data-label); flex: 0 0 auto; color: #9b9b9b; font-size: 11px; font-weight: 800; letter-spacing: .07em; line-height: 1.3; text-transform: uppercase; }
    body.vt-price-today .pl-details .pl-table tbody th[scope='row'] { background: transparent; color: #000; font-size: 14px; }
    body.vt-price-today .pl-details .pl-table .pl-col-opt { display: flex; }
    body.vt-price-today .pl-fuente { margin-top: 36px; }
    body.vt-price-today .pl-page > .seo-section.pl-closing-cta { padding-top: 36px; padding-bottom: 52px; }
    body.vt-price-today .pl-closing-cta .seo-cta-box { padding: 24px 20px; align-items: stretch; flex-direction: column; }
    body.vt-price-today .pl-closing-cta__copy { max-width: none; }
    body.vt-price-today .pl-closing-cta .seo-cta-box > .seo-cta { align-self: flex-start; max-width: 100%; white-space: normal; text-align: center; }
}

@media (min-width: 640px) and (max-width: 999px) {
    body.vt-price-today .pl-details .seo-tablewrap { padding: 0 30px 28px; }
    body.vt-price-today .pl-details .pl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    body.vt-price-today .pl-details .pl-table tbody { display: grid; gap: 10px; }
    body.vt-price-today .pl-details .pl-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px; border: 1px solid #eff1ee; border-radius: 14px; background: #fafaf9; }
    body.vt-price-today .pl-details .pl-table tbody th,
    body.vt-price-today .pl-details .pl-table tbody td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0; border: 0; background: transparent; font-size: 14px; }
    body.vt-price-today .pl-details .pl-table tbody th::before,
    body.vt-price-today .pl-details .pl-table tbody td::before { content: attr(data-label); flex: 0 0 auto; color: #9b9b9b; font-size: 11px; font-weight: 800; letter-spacing: .07em; line-height: 1.3; text-transform: uppercase; }
    body.vt-price-today .pl-details .pl-table tbody th[scope='row'] { background: transparent; color: #000; font-size: 14px; }
    body.vt-price-today .pl-details .pl-table .pl-col-opt { display: flex; }
}

/* Las magnitudes y su unidad forman una sola línea; el tramo horario queda
   debajo como contexto de las tarjetas de resumen. */
body.vt-price-today .pl-stat__measure {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
    white-space: nowrap;
}

body.vt-price-today .pl-stat__measure .pl-stat__value { display: block; }
body.vt-price-today .pl-stat__measure .pl-stat__unit { display: block; margin: 0; white-space: nowrap; }
body.vt-price-today .pl-stat__range { display: block; color: #717171; font-size: 14px; line-height: 1.5; white-space: nowrap; }
body.vt-price-today .pl-now__price,
body.vt-price-today .pl-now__price strong,
body.vt-price-today .pl-now__unit,
body.vt-price-today .pl-franja__hora,
body.vt-price-today .pl-franja__precio { white-space: nowrap; }

/* Periodos horarios: el valor real P1/P2/P3 se conserva, pero siempre se
   presenta como etiqueta para que no se confunda con texto de la fila. */
body.vt-price-today .pl-period-chip {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}
body.vt-price-today .pl-period-chip--p1 { background: #fff7cf; border-color: #f0de8a; color: #7a6600; }
body.vt-price-today .pl-period-chip--p2 { background: #f3f3f3; border-color: #e4e4e4; color: #717171; }
body.vt-price-today .pl-period-chip--p3 { background: #eafbf3; border-color: #b7e9d5; color: #078959; }

body.vt-price-today .seo-grid--3 .seo-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
body.vt-price-today .seo-grid--3 .seo-card > .pl-period-chip {
    align-self: flex-start;
    padding: 5px 11px;
}
body.vt-price-today .seo-grid--3 .seo-card h3 { margin: 0; }

/* ===========================================================================
   Paridad editorial con la landing de hoy · precio de mañana

   La página de mañana conserva su contenido y su estado (publicado o en
   espera), pero sus superficies editoriales comparten la misma composición
   Vatify: migas limpias, FAQ abierta sobre fondo blanco y CTA en banda con el
   rayo de marca. La clase queda aislada para no cambiar otras páginas SEO.
   =========================================================================== */

body.vt-price-tomorrow {
    --seo-bg: #fff;
    --seo-surface: #fff;
    --seo-ink: #000;
    --seo-muted: #717171;
    --seo-soft: #9b9b9b;
    --seo-line: #eff1ee;
    --seo-green: #078959;
    --seo-green-bg: #eafbf3;
    --seo-green-line: #b7e9d5;
    overflow-x: hidden;
    background: #fff;
    color: #000;
    font-family: 'Poppins', 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body.vt-price-tomorrow main,
body.vt-price-tomorrow .pl-page { background: #fff; }

body.vt-price-tomorrow .seo-breadcrumb-bar {
    background: #fff;
    border-bottom: 0;
}

body.vt-price-tomorrow .seo-breadcrumb-bar .seo-breadcrumb {
    padding: 14px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

body.vt-price-tomorrow .seo-breadcrumb-bar .seo-breadcrumb a {
    color: #9b9b9b;
    text-decoration: none;
}

body.vt-price-tomorrow .seo-breadcrumb-bar .seo-breadcrumb a:hover { color: #078959; }

/* FAQ: misma separación entre antetítulo, título, preguntas y nota que hoy. */
body.vt-price-tomorrow .pl-page > .seo-section#faq {
    margin: 0;
    padding: 60px 0 0;
    border-top: 0;
    background: transparent;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.vt-price-tomorrow #faq .seo-section__head {
    max-width: 72ch;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.vt-price-tomorrow #faq .seo-section__head .seo-eyebrow {
    margin: 0;
    color: #0abf7d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

body.vt-price-tomorrow #faq .seo-section h2,
body.vt-price-tomorrow #faq h2 {
    margin: 0;
    color: #000;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: normal;
}

body.vt-price-tomorrow #faq .seo-faq {
    margin: 0;
    gap: 12px;
}

body.vt-price-tomorrow #faq .seo-faq details {
    padding: 0;
    border: 1px solid #eff1ee;
    border-radius: 25px;
    background: #fafaf9;
    overflow: hidden;
}

body.vt-price-tomorrow #faq .seo-faq summary {
    padding: 20px 18px;
    color: #000;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

body.vt-price-tomorrow #faq .seo-faq summary::after { color: #078959; }

body.vt-price-tomorrow #faq .seo-faq p {
    margin: 0;
    padding: 0 18px 18px;
    color: #717171;
    font-size: 15px;
    line-height: 1.75;
}

body.vt-price-tomorrow #faq .seo-footnote,
body.vt-price-tomorrow .pl-fuente {
    margin: 0;
    max-width: 820px;
    color: #717171;
    font-size: 15px;
    line-height: 1.75;
}

body.vt-price-tomorrow .pl-fuente { margin-top: 60px; }

/* La nota de fuente acompaña al contenido sin competir con él y deja un
   colchón claro antes del pie común. El asterisco es solo presentación: el
   texto de datos sigue intacto para SEO y accesibilidad. */
body.vt-price-tomorrow .pl-fuente {
    margin-bottom: 52px;
    color: #9b9b9b;
    font-size: 13px;
    font-style: italic;
    line-height: 1.7;
}

body.vt-price-tomorrow .pl-fuente::before {
    content: '* ';
    font-style: normal;
}

/* CTA final: conserva el texto de mañana, con la misma banda Vatify de hoy. */
body.vt-price-tomorrow .pl-page > .seo-section.pl-closing-cta {
    margin: 0;
    padding: 60px 0 84px;
    border-top: 0;
    background: transparent;
    border-radius: 0;
}

body.vt-price-tomorrow .pl-closing-cta .seo-cta-box {
    position: relative;
    min-width: 0;
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    overflow: hidden;
    border: 0;
    border-radius: 25px;
    background: linear-gradient(rgba(0, 0, 0, .34), rgba(0, 0, 0, .34)), linear-gradient(89deg, #f2cb05 0%, #0abf7d 100%);
    color: #fff;
}

body.vt-price-tomorrow .pl-closing-cta__ray {
    position: absolute;
    right: -30px;
    bottom: -80px;
    z-index: 0;
    height: 280px;
    opacity: .2;
    pointer-events: none;
}

body.vt-price-tomorrow .pl-closing-cta__copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.vt-price-tomorrow .pl-closing-cta .seo-cta-box h2 {
    margin: 0;
    color: #fff;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.2;
}

body.vt-price-tomorrow .pl-closing-cta .seo-cta-box p {
    margin: 0;
    max-width: 680px;
    color: #fff;
    font-size: 15px;
    line-height: 1.65;
    opacity: .95;
}

body.vt-price-tomorrow .pl-closing-cta .seo-cta-box > .seo-cta {
    position: relative;
    z-index: 1;
    padding: 17px 28px;
    border-radius: 25px;
    background: #fff;
    color: #078959;
    font-size: 16px;
    font-weight: 800;
}

body.vt-price-tomorrow .pl-closing-cta .seo-cta-box > .seo-cta:hover {
    background: #fff;
    color: #0abf7d;
}

@media (min-width: 640px) {
    body.vt-price-tomorrow #faq .seo-section h2,
    body.vt-price-tomorrow #faq h2 { font-size: 30px; }
    body.vt-price-tomorrow #faq .seo-faq summary { font-size: 16px; }
    body.vt-price-tomorrow .pl-closing-cta .seo-cta-box h2 { font-size: 30px; }
    body.vt-price-tomorrow .pl-closing-cta .seo-cta-box p { font-size: 16px; }
}

@media (max-width: 639px) {
    body.vt-price-tomorrow .pl-page { padding-right: 16px; padding-left: 16px; }
    body.vt-price-tomorrow .seo-breadcrumb-bar .seo-shell { padding-right: 16px; padding-left: 16px; }
    body.vt-price-tomorrow .pl-alert .seo-cta--wide {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
    body.vt-price-tomorrow .pl-fuente { margin-top: 36px; margin-bottom: 36px; }
    body.vt-price-tomorrow .pl-page > .seo-section.pl-closing-cta { padding-top: 36px; padding-bottom: 52px; }
    body.vt-price-tomorrow .pl-closing-cta .seo-cta-box { padding: 24px 20px; align-items: stretch; flex-direction: column; }
    body.vt-price-tomorrow .pl-closing-cta__copy { max-width: none; }
    body.vt-price-tomorrow .pl-closing-cta .seo-cta-box > .seo-cta {
        align-self: flex-start;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
}

/* Cabecera del panel horario compartida por hoy y mañana en móvil. Se coloca
   al final para prevalecer sobre los dos skins editoriales sin duplicar el
   marcado ni alterar la orientación de escritorio. */
@media (max-width: 639px) {
    body.vt-price-today .pl-hero .pl-tabs,
    body.vt-price-tomorrow .pl-tabs {
        width: 100%;
        max-width: none;
        padding: 5px;
        gap: 4px;
        border-radius: 25px;
        background: #eff1ee;
    }

    body.vt-price-today .pl-hero .pl-tab,
    body.vt-price-tomorrow .pl-tab,
    body.vt-price-today .pl-hero .pl-tab.is-active,
    body.vt-price-tomorrow .pl-tab.is-active {
        min-width: 0;
        min-height: 64px;
        padding: 10px 8px;
        display: flex;
        flex: 1 1 50%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 22px;
        font-size: 18px;
        line-height: 1.2;
    }

    body.vt-price-today .pl-hero .pl-tab.is-active,
    body.vt-price-tomorrow .pl-tab.is-active {
        background: #fff;
        color: #000;
        box-shadow: 0 2px 7px rgba(0, 0, 0, .12);
    }

    body.vt-price-today .pl-stats,
    body.vt-price-tomorrow .pl-panel > .pl-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    body.vt-price-today .pl-stat,
    body.vt-price-tomorrow .pl-panel > .pl-stats .pl-stat {
        min-width: 0;
        min-height: 112px;
        padding: 14px 7px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 1px solid #e4e4e4;
        border-radius: 20px;
        background: #fff;
        text-align: center;
    }

    body.vt-price-today .pl-stat__label,
    body.vt-price-tomorrow .pl-panel .pl-stat__label,
    body.vt-price-today .pl-stat--barato .pl-stat__label,
    body.vt-price-today .pl-stat--caro .pl-stat__label {
        min-height: 2.5em;
        margin: 0 0 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #717171;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .04em;
        line-height: 1.25;
        text-align: center;
    }

    body.vt-price-today .pl-stat__measure,
    body.vt-price-tomorrow .pl-stat__measure {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        white-space: nowrap;
    }

    body.vt-price-today .pl-stat__value,
    body.vt-price-tomorrow .pl-panel .pl-stat__value {
        font-size: clamp(20px, 5.8vw, 24px);
        line-height: 1.1;
    }

    body.vt-price-today .pl-stat__unit,
    body.vt-price-tomorrow .pl-panel .pl-stat__unit,
    body.vt-price-today .pl-stat__range,
    body.vt-price-tomorrow .pl-stat__range {
        margin: 3px 0 0;
        color: #717171;
        font-size: 13px;
        line-height: 1.3;
        white-space: nowrap;
    }

    body.vt-price-today .pl-stat--barato .pl-stat__unit,
    body.vt-price-today .pl-stat--caro .pl-stat__unit,
    body.vt-price-tomorrow .pl-stat--barato .pl-stat__unit,
    body.vt-price-tomorrow .pl-stat--caro .pl-stat__unit {
        display: none;
    }

    body.vt-price-today .pl-chart,
    body.vt-price-tomorrow .pl-chart {
        padding-right: 8px;
        padding-left: 8px;
        gap: 4px;
    }

    body.vt-price-today .pl-bar,
    body.vt-price-tomorrow .pl-bar {
        grid-template-columns: 2.5rem minmax(0, 1fr) 3.6rem;
        gap: 6px;
        padding-top: 3px;
        padding-bottom: 3px;
    }

    body.vt-price-today .pl-bar__hora,
    body.vt-price-tomorrow .pl-bar__hora,
    body.vt-price-today .pl-bar__precio,
    body.vt-price-tomorrow .pl-bar__precio {
        font-size: 13px;
    }

    body.vt-price-today .pl-bar__track,
    body.vt-price-tomorrow .pl-bar__track {
        height: 22px;
    }

    body.vt-price-today .pl-bar__precio,
    body.vt-price-tomorrow .pl-bar__precio {
        left: calc(100% + 8px);
    }

    body.vt-price-today .pl-legend,
    body.vt-price-tomorrow .pl-legend {
        font-size: 13px;
    }
}
