/* Copiado del boceto aprobado «A · Tu web en el escaparate» (27 nov 2026), a.css. Los cambios frente al boceto
   van marcados con «portal:». */
/* A · «Tu web en el escaparate» */
.a-pag {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 16px;
}
.a-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 12px;
}
.a-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    min-height: 40px;
    padding: 0 12px 0 8px;
    margin-left: -8px;
    border-radius: var(--r2);
}
.a-volver:hover {
    background: var(--papel-2);
}
.a-cuenta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 8px 4px 4px;
    border-radius: var(--r2);
    box-shadow: inset 0 0 0 1px var(--filete-2);
}
.a-cuenta-cuadro {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--tinta);
    color: var(--papel);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
}

/* selector de webs */
.a-webs {
    display: flex;
    gap: 8px;
    overflow: hidden;
    padding-bottom: 4px;
}
.a-web {
    flex: 1 1 0;
    min-width: 0;
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 6px;
    align-items: center;
    padding: 10px;
    border-radius: var(--r3);
    background: var(--carta);
    box-shadow: inset 0 0 0 1px var(--filete);
}
.a-web img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}
.a-web b {
    display: block;
    font-size: 14px;
}
.a-web small {
    display: block;
    font-size: 11px;
    color: var(--tinta-3);
}
.a-web .st {
    grid-column: 1 / -1;
    justify-self: start;
}
.a-web.activa {
    box-shadow: inset 0 0 0 2px var(--tinta);
}
.a-web.prep {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--filete-2);
    opacity: 0.85;
}
.a-web.prep img {
    opacity: 0.8;
}

/* el escaparate */
.a-escaparate {
    margin-top: 16px;
    background: var(--papel-2);
    border-radius: var(--r3);
    padding: 18px 14px 14px;
}
.a-eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--tinta-2);
}
.a-eyebrow .ic {
    width: 15px;
    height: 15px;
}
.a-titular h1 {
    font-size: 32px;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-top: 8px;
}
.a-sub {
    font-size: 13px;
    color: var(--tinta-2);
    margin-top: 6px;
}
.a-escena {
    position: relative;
    height: 300px;
    margin-top: 16px;
}
.portatil {
    position: absolute;
    margin: 0;
    left: 7%;
    right: 19%;
    top: 34px;
}
.portatil-pantalla {
    background: #161513;
    padding: 6px 6px 8px;
    border-radius: 10px 10px 2px 2px;
    box-shadow: var(--sombra);
}
.portatil-pantalla img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    border-radius: 3px;
}
.portatil-base {
    height: 10px;
    margin: 0 -9%;
    background: #2b2925;
    border-radius: 2px 2px 8px 8px;
}
:root[data-tema="oscuro"] .portatil-base {
    background: #3a3732;
}
.movil {
    position: absolute;
    margin: 0;
    right: 3%;
    top: 72px;
    width: 23%;
    background: #161513;
    padding: 4px;
    border-radius: 14px;
    box-shadow: var(--sombra);
}
.movil-pantalla {
    border-radius: 10px;
    overflow: hidden;
}
.movil-pantalla img {
    width: 100%;
    aspect-ratio: 9 / 18.5;
    object-fit: cover;
    object-position: top;
}

/* insignias pegadas encima */
.insignia {
    position: absolute;
    z-index: 2;
    width: calc(50% - 4px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px 7px 7px;
    border-radius: var(--r2);
    background: var(--carta);
    box-shadow: 0 8px 22px -10px rgb(18 17 16 / 0.45), inset 0 0 0 1px var(--filete);
    transition: transform var(--rapido, 140ms);
}
.insignia:hover {
    transform: translateY(-2px);
}
.ins-ico {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: var(--bien-relleno);
    color: var(--bien-sobre);
}
.ins-aviso .ins-ico {
    background: var(--aviso-relleno);
    color: var(--aviso-sobre);
}
.ins-aviso {
    box-shadow: 0 8px 22px -10px rgb(18 17 16 / 0.45), inset 0 0 0 2px var(--aviso-relleno);
}
.ins-txt {
    flex: 1;
    min-width: 0;
}
.ins-txt b {
    display: block;
    font-size: 14px;
    line-height: 1.15;
}
.ins-txt small {
    display: block;
    font-size: 11.5px;
    color: var(--tinta-2);
    /* Si no cabe, baja de línea por el «·» (enTrozos), no se sale de la tarjeta. */
    line-height: 1.3;
}
.ins-flecha {
    width: 15px;
    height: 15px;
    color: var(--tinta-3);
}
.i1 {
    top: 0;
    left: 0;
}
.i2 {
    top: 0;
    right: 0;
}
.i3 {
    bottom: 0;
    left: 0;
}
.i4 {
    bottom: 0;
    right: 0;
}
.a-toca {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-size: 12px;
    color: var(--tinta-3);
    margin-top: 12px;
}
.a-toca .ic {
    width: 14px;
    height: 14px;
}

/* medidores */
.a-medidores {
    margin-top: 28px;
    display: grid;
    gap: 10px;
}
.a-med-cab h2,
.a-bloque h2 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.a-med-cab p {
    font-size: 13px;
    color: var(--tinta-2);
    margin: 2px 0 6px;
}
.medidor {
    background: var(--carta);
    border-radius: var(--r3);
    box-shadow: inset 0 0 0 1px var(--filete);
    padding: 14px 14px 16px;
}
.medidor > header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.medidor > header > div {
    flex: 1;
}
.medidor-ico {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: var(--r2);
    background: var(--papel-2);
    display: grid;
    place-items: center;
}
.medidor h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}
.medidor header p {
    font-size: 12px;
    color: var(--tinta-3);
}
.medidor-valor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 2px;
}
.medidor-valor b {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}
.medidor .tira {
    margin-top: 12px;
}

/* las cuatro notas de Google */
.notas {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
}
.notas li {
    display: grid;
    grid-template-columns: 1fr 42% 30px;
    align-items: center;
    gap: 10px;
}
.notas-nombre {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.15;
}
.notas-nombre small {
    display: block;
    font-size: 11px;
    color: var(--tinta-3);
    font-weight: 400;
}
.notas-barra {
    position: relative;
    height: 10px;
}
.notas-zonas {
    display: flex;
    gap: 2px;
    height: 100%;
}
.notas-zonas i {
    border-radius: 2px;
}
.notas-marca {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 3px;
    margin-left: -3px;
    background: var(--tinta);
    border-radius: 1px;
}
.notas b {
    font-size: 17px;
    font-weight: 600;
    text-align: right;
}
.notas-leyenda {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 12px;
    font-size: 11px;
    color: var(--tinta-3);
}
.notas-leyenda span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.notas-leyenda i {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

/* pie: caducidades, lo último, lo que llega pronto */
.a-pie {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}
.a-bloque {
    background: var(--carta);
    border-radius: var(--r3);
    box-shadow: inset 0 0 0 1px var(--filete);
    padding: 16px 14px;
}
.a-bloque h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    margin-bottom: 12px;
}
.a-bloque h2 small {
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    color: var(--tinta-3);
}
.cad-fila {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cad-ico {
    width: 30px;
    height: 30px;
    border-radius: var(--r2);
    background: var(--papel-2);
    display: grid;
    place-items: center;
}
.cad-txt {
    flex: 1;
}
.cad-txt b {
    display: block;
    font-size: 14px;
}
.cad-txt small {
    font-size: 12px;
    color: var(--tinta-3);
}
.cad-dias {
    font-size: 12px;
    color: var(--tinta-2);
}
.cad-dias b {
    font-size: 20px;
    color: var(--tinta);
}
.cad-barra {
    height: 8px;
    background: var(--papel-3);
    border-radius: 3px;
    margin: 8px 0 14px 40px;
    overflow: hidden;
}
.cad-barra:last-child {
    margin-bottom: 0;
}
.cad-barra i {
    display: block;
    height: 100%;
    background: var(--bien-relleno);
    border-radius: 3px;
}
.pronto-lista {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.pronto-pieza {
    border: 1.5px dashed var(--trazo);
    border-radius: var(--r2);
    padding: 10px 8px;
    display: grid;
    gap: 2px;
    color: var(--tinta-2);
}
.pronto-pieza .ic {
    margin-bottom: 4px;
}
.pronto-pieza b {
    font-size: 13px;
    color: var(--tinta);
}
.pronto-pieza small {
    font-size: 11px;
    line-height: 1.2;
}
.ult-fila {
    display: flex;
    gap: 12px;
    align-items: center;
}
.ult-fecha {
    width: 48px;
    height: 52px;
    border-radius: var(--r2);
    background: var(--tinta);
    color: var(--papel);
    display: grid;
    place-content: center;
    text-align: center;
    font-size: 11px;
    line-height: 1;
}
.ult-fecha b {
    font-size: 22px;
    line-height: 1;
}
.ult-fila small {
    display: block;
    font-size: 12px;
    color: var(--tinta-3);
}
.ult-enlace {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--acento-tinta);
}
.c-estados .ult-enlace {
    color: var(--tinta);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* barra de pedir un cambio */
/* en el móvil va fija abajo; en el boceto se pinta al final de la página */
.a-pedir {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    margin: 24px -16px 0;
    padding: 12px 16px 16px;
    background: var(--tinta);
    color: var(--papel);
}
.a-pedir b {
    display: block;
    font-size: 15px;
}
.a-pedir small {
    font-size: 12px;
    opacity: 0.7;
}

/* ---- segunda pantalla: velocidad ---- */
.a-det {
    display: grid;
    gap: 12px;
}
.det-cab {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 8px;
}
.det-cab > div {
    flex: 1;
}
.det-ico {
    width: 48px;
    height: 48px;
    border-radius: var(--r3);
    background: var(--bien-relleno);
    color: var(--bien-sobre);
    display: grid;
    place-items: center;
}
.det-ico .ic {
    width: 26px;
    height: 26px;
}
.det-cab h1 {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.det-cab p {
    font-size: 13px;
    color: var(--tinta-2);
}
.fots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 18px;
}
.fot {
    margin: 0;
}
.fot-movil {
    background: #161513;
    padding: 3px;
    border-radius: 9px;
}
.fot-pantalla {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 9 / 17;
}
.fot-pantalla img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.fot-tapa {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f6f5f1;
    padding: 6px 5px;
    display: grid;
    gap: 4px;
    align-content: start;
}
.fot-tapa i {
    height: 5px;
    border-radius: 2px;
    background: #e3e0d8;
}
.fot-tapa i:nth-child(2) {
    width: 70%;
}
.fot-tapa i:nth-child(3) {
    width: 45%;
}
.fot figcaption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    color: var(--tinta-2);
}
.fot.listo .fot-movil {
    box-shadow: 0 0 0 3px var(--bien-relleno);
}
.fot.listo figcaption {
    color: var(--bien);
}
.fot figcaption .ic {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}
.det-nota {
    font-size: 11.5px;
    color: var(--tinta-3);
    margin-top: 12px;
    line-height: 1.5;
}
.det-leyenda {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--tinta-3);
    margin: -4px 0 12px;
}
.ley-linea {
    width: 16px;
    height: 3px;
    background: var(--acento-tinta);
    border-radius: 1px;
}
.ley-ref {
    width: 16px;
    border-top: 1.5px dashed var(--trazo);
    margin-left: 8px;
}
.graf-caja {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 6px;
    height: 150px;
}
.graf-eje-y {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--tinta-3);
    text-align: right;
    margin: -6px 0;
}
.graf-lienzo {
    position: relative;
    border-bottom: 1px solid var(--trazo);
}
.graf {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.graf-area {
    fill: var(--acento-suave);
}
.graf-linea {
    fill: none;
    stroke: var(--acento-tinta);
    stroke-width: 2.5;
    stroke-linejoin: round;
}
.graf-ref {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1.5px dashed var(--trazo);
}
.graf-ref small {
    position: absolute;
    right: 0;
    top: 3px;
    font-size: 10.5px;
    color: var(--tinta-3);
}
.graf-rej {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid var(--filete);
}
.graf-sel {
    position: absolute;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    background: var(--carta);
    border: 3px solid var(--tinta);
    border-radius: 3px;
    z-index: 2;
}
.graf-guia {
    position: absolute;
    bottom: 0;
    border-left: 1px solid var(--trazo);
}
.graf-sel b {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: var(--tinta);
    color: var(--papel);
    font-size: 12px;
    padding: 4px 7px;
    border-radius: var(--r1);
}
.graf-eje-x {
    display: flex;
    justify-content: space-between;
    margin-left: 40px;
    margin-top: 6px;
    font-size: 10.5px;
    color: var(--tinta-3);
}
.det-tocado {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12.5px;
    background: var(--papel-2);
    border-radius: var(--r2);
    padding: 8px 10px;
}
.det-tocado .ic {
    width: 15px;
    height: 15px;
}
.aa-dos {
    display: grid;
    gap: 18px;
}
.aa h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.aa h4 small {
    font-weight: 400;
    color: var(--tinta-3);
    font-size: 12px;
}
.aa-fila {
    display: grid;
    grid-template-columns: 84px 1fr 54px;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    margin-bottom: 6px;
}
.aa-fila b {
    text-align: right;
    font-size: 15px;
}
.aa-barra {
    height: 14px;
    background: var(--papel-2);
    border-radius: 3px;
    overflow: hidden;
}
.aa-barra i {
    display: block;
    height: 100%;
    border-radius: 3px;
}
.aa-antes {
    background: var(--z-mal);
}
.c-lima .aa-antes {
    background: var(--tinta-3);
}
.aa-ahora {
    background: var(--bien-relleno);
}
.aa-veredicto {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bien);
    margin-top: 2px;
}
.hacemos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.hacemos li {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 10px;
    align-items: center;
}
.hacemos li .ic {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: var(--r2);
    background: var(--papel-2);
}
.hacemos b {
    font-size: 14px;
}
.hacemos small {
    font-size: 12px;
    color: var(--tinta-3);
}

/* ---- ordenador ---- */
@media (min-width: 1000px) {
    .a-pag {
        padding: 0 40px;
    }
    .a-top {
        padding: 22px 0 18px;
    }
    .a-webs {
        max-width: 640px;
    }
    .a-web {
        grid-template-columns: 28px 1fr auto;
        grid-template-rows: auto;
    }
    .a-web .st {
        grid-column: auto;
    }
    .a-main:not(.a-det) {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 20px;
        align-items: start;
        margin-top: 8px;
    }
    .a-escaparate {
        margin-top: 0;
        padding: 32px 32px 24px;
        position: sticky;
        top: 16px;
    }
    .a-titular h1 {
        font-size: 48px;
    }
    .a-escena {
        height: 540px;
        margin-top: 28px;
    }
    .portatil {
        top: 70px;
        left: 6%;
        right: 17%;
    }
    .movil {
        top: 150px;
        width: 21%;
        right: 3%;
    }
    .insignia {
        width: 250px;
        padding: 10px 12px 10px 10px;
    }
    .ins-ico {
        width: 40px;
        height: 40px;
    }
    .ins-txt b {
        font-size: 16px;
    }
    .ins-txt small {
        font-size: 13px;
    }
    .i2 {
        right: 4%;
    }
    .i3 {
        left: 6%;
        bottom: 10px;
    }
    .i4 {
        right: auto;
        left: calc(6% + 266px);
        bottom: 10px;
    }
    .a-medidores {
        margin-top: 0;
    }
    .a-pie {
        grid-column: 1 / -1;
        grid-template-columns: 1.1fr 0.9fr 1.2fr;
        margin-top: 0;
    }
    .a-pedir {
        margin: 24px 0 32px;
        border-radius: var(--r3);
        padding: 18px 24px;
        position: static;
    }
    .a-pedir b {
        font-size: 18px;
    }
    .a-det {
        max-width: 760px;
        margin: 0 auto;
    }
}
