* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
    background: #f4f4f4;
    color: #222;
}

a {
    color: #204d7a;
}

.cabecera {
    background: #222;
    color: #fff;
    padding: 20px 0 0;
}

.cabecera h1 {
    margin: 0;
    padding: 0 22px 18px;
    font-size: 2rem;
}

.menu-principal {
    display: flex;
    width: 100%;
    border-top: 1px solid #444;
}

.menu-principal a {
    flex: 1;
    display: block;
    padding: 18px 12px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.08rem;
}

.menu-principal a:hover,
.menu-principal a.activo {
    background: #555;
}

.contenido {
    max-width: 1080px;
    margin: 30px auto;
    padding: 0 20px;
}

.hero,
.tarjeta {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 9px;
}

.hero {
    padding: 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 30px;
    align-items: center;
}

.etiqueta {
    margin: 0 0 8px;
    color: #666;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.hero h2 {
    margin: 0 0 16px;
    font-size: 2.15rem;
    line-height: 1.16;
}

.entradilla {
    font-size: 1.12rem;
}

.terminal {
    overflow: hidden;
    border: 1px solid #444;
    border-radius: 9px;
    background: #111;
    color: #eee;
    box-shadow: 0 8px 22px rgba(0,0,0,.14);
}

.terminal-barra {
    display: flex;
    gap: 7px;
    padding: 11px 12px;
    background: #2b2b2b;
}

.terminal-barra span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #888;
}

.terminal-pantalla {
    min-height: 230px;
    padding: 22px;
    font-family: "Courier New", monospace;
    font-size: .95rem;
}

.terminal-pantalla p {
    margin: 0 0 8px;
}

.tarjeta {
    padding: 27px;
    margin-top: 22px;
}

.tarjeta h2 {
    margin-top: 0;
}

.submenu-tutorial {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;

    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.submenu-tutorial a {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 7px;
    background: #eee;
    color: #222;
    font-weight: 700;
}

.submenu-tutorial a:hover,
.submenu-tutorial a.activo {
    background: #555;
    color: #fff;
}

.paso {
    border-left: 5px solid #555;
}

.nota,
.aviso,
.correcto {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 7px;
}

.nota {
    background: #f0f0f0;
    border: 1px solid #d5d5d5;
}

.aviso {
    background: #fff7e5;
    border: 1px solid #e7cc8c;
}

.correcto {
    background: #eef7ee;
    border: 1px solid #bfd6bf;
}

pre {
    position: relative;
    overflow-x: auto;
    margin: 15px 0;
    padding: 18px;
    border-radius: 8px;
    background: #171717;
    color: #f2f2f2;
    font-family: "Courier New", monospace;
}

code {
    font-family: "Courier New", monospace;
}

.boton-copiar {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 1px solid #666;
    border-radius: 5px;
    padding: 5px 9px;
    background: #333;
    color: #fff;
    cursor: pointer;
    font-size: .8rem;
}

.boton-copiar:hover {
    background: #555;
}

.tabla {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.tabla th,
.tabla td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.tabla th {
    background: #eee;
}

.boton-principal,
.boton-siguiente,
.boton-secundario {
    display: inline-block;
    margin-top: 12px;
    margin-right: 8px;
    padding: 12px 18px;
    border-radius: 7px;
    background: #222;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.boton-secundario {
    background: #555;
}

.boton-principal:hover,
.boton-siguiente:hover,
.boton-secundario:hover {
    background: #777;
}

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

.lista-check li {
    margin: 7px 0;
}

.lista-check li::before {
    content: "✓ ";
    font-weight: bold;
}

.imagen-tutorial {
    display: block;
    width: 100%;
    max-width: 780px;
    height: auto;
    margin: 18px auto;
    border: 1px solid #ccc;
    border-radius: 9px;
}

.enlaces-utiles a {
    word-break: break-word;
}

.pdf-bloque {
    margin-top: 26px;
}

.pdf-visor {
    width: 100%;
    height: 78vh;
    min-height: 680px;
    border: 1px solid #bbb;
    border-radius: 8px;
    background: #eee;
}

.pdf-acciones {
    margin: 12px 0 18px;
}

.codigo-ruta {
    word-break: break-all;
}

.pie {
    text-align: center;
    padding: 25px 16px 35px;
    color: #666;
}

@media (max-width: 850px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .submenu-tutorial {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .pdf-visor {
        min-height: 600px;
        height: 72vh;
    }
}

@media (max-width: 560px) {
    .cabecera h1 {
        font-size: 1.55rem;
    }

    .menu-principal a {
        padding: 14px 5px;
        font-size: .95rem;
    }

    .contenido {
        padding: 0 12px;
        margin-top: 18px;
    }

    .hero,
    .tarjeta {
        padding: 20px;
    }

    .hero h2 {
        font-size: 1.7rem;
    }

    .submenu-tutorial {
        grid-template-columns: 1fr;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .pdf-visor {
        min-height: 520px;
        height: 68vh;
    }
}

.cabecera {
    position: relative;
}

/* Páginas legales */
.legal-contenido {
    max-width: 980px;
}

.legal-contenido h3 {
    margin-top: 26px;
}

.cookie-estado {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid #d5d5d5;
    border-radius: 7px;
    background: #f4f4f4;
}

/* === INICIO · estilo terminal neón === */
body.inicio-neon .hero {
    background:
        radial-gradient(circle at 12% 18%, rgba(52, 255, 119, .08), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(255, 238, 82, .07), transparent 24%),
        linear-gradient(135deg, #071018 0%, #0a1622 52%, #0b1d2c 100%);
    border: 1px solid rgba(71, 255, 132, .35);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, .20),
        0 0 22px rgba(51, 255, 117, .08);
    color: #edf4ef;
}

body.inicio-neon .hero .etiqueta {
    color: #61ff8a;
    text-shadow: 0 0 8px rgba(97, 255, 138, .35);
}

body.inicio-neon .hero h2 {
    color: #f5e95b;
    text-shadow: 0 0 10px rgba(245, 233, 91, .18);
}

body.inicio-neon .hero .entradilla {
    color: #d9e2e8;
}

body.inicio-neon .hero .boton-principal {
    background: #0a1118;
    color: #f5e95b;
    border: 1px solid #f5e95b;
    box-shadow: 0 0 12px rgba(245, 233, 91, .12);
}

body.inicio-neon .hero .boton-principal:hover,
body.inicio-neon .hero .boton-principal:focus {
    background: #111b24;
    color: #fff58a;
    box-shadow: 0 0 18px rgba(245, 233, 91, .22);
}

body.inicio-neon .hero .terminal {
    background: #020503;
    border: 1px solid #1f6f3d;
    box-shadow:
        inset 0 0 26px rgba(48, 255, 111, .04),
        0 0 16px rgba(48, 255, 111, .10);
}

body.inicio-neon .hero .terminal-barra {
    background: #090c0a;
    border-bottom: 1px solid #153b24;
}

body.inicio-neon .hero .terminal-barra span {
    background: #36e86d;
    box-shadow: 0 0 7px rgba(54, 232, 109, .45);
}

body.inicio-neon .hero .terminal-pantalla {
    color: #51ff7b;
    text-shadow: 0 0 5px rgba(81, 255, 123, .24);
}

body.inicio-neon .hero .terminal-pantalla strong {
    color: #a7ffb9;
}

@media (max-width: 560px) {
    body.inicio-neon .hero {
        box-shadow:
            0 12px 28px rgba(0, 0, 0, .18),
            0 0 14px rgba(51, 255, 117, .06);
    }
}

/* === REDISEÑO GENERAL ROJO 2026 === */
body {
    background:
        radial-gradient(circle at 12% 8%, rgba(255,255,255,.34), transparent 24%),
        radial-gradient(circle at 88% 20%, rgba(255,255,255,.18), transparent 22%),
        linear-gradient(145deg, #ffd7d9 0%, #f98b91 46%, #ef555f 100%);
    background-attachment: fixed;
}

.contenido {
    max-width: 1280px;
}

.hero,
.tarjeta,
.contacto-item {
    border-color: rgba(209, 42, 50, .20);
}

.tarjeta {
    box-shadow: 0 8px 24px rgba(113, 21, 27, .06);
}

/* Cabecera y menú mantienen su identidad oscura. */
.cabecera {
    background: #222;
}

/* Pie: mismo tono oscuro que la cabecera. */
.pie.pie-banda {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin-top: 34px;
    padding: 20px 16px;
    background: #222;
    color: #f4f4f4;
    border-top: 1px solid #3a3a3a;
    box-shadow: 0 -8px 22px rgba(0, 0, 0, .14);
}

.pie.pie-banda a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pie-separador {
    color: #888;
}

/* Inicio: accesos visuales a las distintas partes del sitio. */
.inicio-accesos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.inicio-tarjeta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: 118px;
    padding: 20px;
    border: 1px solid rgba(221, 49, 58, .26);
    border-radius: 14px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 8px 24px rgba(113, 21, 27, .07);
    color: #212121;
    text-decoration: none;
}

.inicio-tarjeta:hover,
.inicio-tarjeta:focus {
    transform: translateY(-2px);
    border-color: rgba(221, 49, 58, .55);
    box-shadow: 0 12px 30px rgba(113, 21, 27, .12);
}

.inicio-icono {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 13px;
    background: #ffe1e3;
    color: #cf202b;
    font-size: 1.55rem;
    font-weight: 800;
}

.inicio-tarjeta strong {
    display: block;
    margin-bottom: 3px;
    font-size: 1.18rem;
}

.inicio-tarjeta p {
    margin: 0;
    color: #555;
}

.inicio-flecha {
    color: #e11d2e;
    font-size: 1.35rem;
    font-weight: 800;
}

/* Tutorial: conserva los botones reales pero con acento rojo. */
.submenu-tutorial a {
    border-color: #efb4b8;
    background: #fff5f5;
}

.submenu-tutorial a:hover,
.submenu-tutorial a.activo {
    background: #c92a35;
    color: #fff;
}

body.tutorial-neon .hero {
    background:
        radial-gradient(circle at 12% 18%, rgba(52,255,119,.07), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(255,238,82,.06), transparent 24%),
        linear-gradient(135deg, #071018 0%, #0a1622 52%, #0b1d2c 100%);
    border-color: rgba(234, 52, 63, .72);
    box-shadow: 0 16px 34px rgba(112, 18, 24, .16);
    color: #edf4ef;
}

body.tutorial-neon .hero .etiqueta {
    color: #61ff8a;
}

body.tutorial-neon .hero h2 {
    color: #f5e95b;
}

body.tutorial-neon .hero .entradilla {
    color: #d9e2e8;
}

body.tutorial-neon .terminal {
    background: #020503;
    border-color: #1f6f3d;
}

body.tutorial-neon .terminal-pantalla {
    color: #51ff7b;
    text-shadow: 0 0 5px rgba(81,255,123,.24);
}

/* Contacto: Anonymous arriba, tarjetas en medio y servidor reducido abajo. */
.contacto-pagina {
    display: grid;
    gap: 24px;
}

.contacto-anonymous {
    display: flex;
    justify-content: center;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.contacto-anonymous img {
    display: block;
    width: min(260px, 58vw);
    height: auto;
}

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

.contacto-item {
    padding: 24px 18px;
    text-align: center;
    border: 1px solid rgba(221, 49, 58, .28);
    border-radius: 16px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 8px 22px rgba(113, 21, 27, .07);
}

.contacto-item strong {
    display: block;
    margin-bottom: 8px;
    color: #b71f2b;
}

.contacto-servidor-pequeno {
    display: flex;
    justify-content: center;
    padding: 0;
}

.contacto-servidor-pequeno img {
    display: block;
    width: min(720px, 86%);
    height: auto;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(113, 21, 27, .16);
}

@media (max-width: 800px) {
    .inicio-accesos,
    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .contenido {
        max-width: 100%;
    }

    .contacto-servidor-pequeno img {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .pie.pie-banda {
        flex-wrap: wrap;
        gap: 8px 11px;
    }

    .inicio-tarjeta {
        grid-template-columns: auto 1fr;
    }

    .inicio-flecha {
        display: none;
    }
}

/* Cabecera: fecha arriba y hora debajo, sustituyendo al antiguo botón. */
.cabecera-reloj {
    position: absolute;
    top: 12px;
    right: 22px;
    min-width: 118px;
    padding: 7px 12px;
    text-align: center;
    border: 1px solid #454545;
    border-radius: 9px;
    background: #171717;
    box-shadow: inset 0 0 14px rgba(255,255,255,.025);
    font-family: "Courier New", monospace;
    line-height: 1.15;
}

.cabecera-reloj span {
    display: block;
}

.cabecera-fecha {
    color: #d7d7d7;
    font-size: .78rem;
}

.cabecera-hora {
    margin-top: 3px;
    color: #63ff87;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-shadow: 0 0 6px rgba(99,255,135,.22);
}

/* Página maestra de cookies, privacidad y aviso legal. */
.legal-maestra {
    max-width: 1180px;
}

.legal-maestra .legal-hero {
    padding: 34px;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.legal-nav a {
    padding: 8px 12px;
    border: 1px solid #edb4b8;
    border-radius: 999px;
    background: #fff5f5;
    color: #9f1d27;
    font-weight: 700;
    text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus {
    background: #c92a35;
    color: #fff;
}

.legal-bloque {
    scroll-margin-top: 20px;
}

.legal-bloque h2 {
    margin-top: 0;
}

.legal-bloque h3 {
    margin-top: 24px;
}

.legal-meta {
    color: #666;
    font-size: .92rem;
}

.cookiebot-box {
    min-height: 90px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e2b5b9;
    border-radius: 10px;
    background: #fffafa;
}

@media (max-width: 560px) {
    .cabecera h1 {
        padding-right: 150px;
    }

    .cabecera-reloj {
        top: 9px;
        right: 10px;
        min-width: 110px;
        padding: 6px 9px;
    }
}

/* Ruta del tutorial: una sola caja, sin tarjetas interiores. */
.ruta-texto {
    display: grid;
    gap: 10px;
}

.ruta-texto p {
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px solid rgba(209, 42, 50, .12);
}

.ruta-texto p:last-child {
    border-bottom: 0;
}

.ruta-texto strong {
    color: #a91f29;
}
/* Tutorial: cabecera visual violeta para separar la introducción del cuerpo. */
body.tema-rojo .hero {
    background: linear-gradient(135deg, #4b35d1 0%, #3730a3 100%);
    border-color: rgba(55, 48, 163, .58);
    box-shadow: 0 14px 30px rgba(55, 48, 163, .16);
    color: #ffffff;
}

body.tema-rojo .hero .etiqueta {
    color: #e7e3ff;
}

body.tema-rojo .hero h2 {
    color: #ffffff;
}

body.tema-rojo .hero .entradilla {
    color: #f1efff;
}
