/* Panel de publicación de «GTA 6 al día» */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fuentes/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fuentes/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fuentes/inter-latin-800-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: italic;
    font-weight: 900;
    font-display: swap;
    src: url("../fuentes/inter-latin-900-italic.woff2") format("woff2");
}

:root {
    --fondo: #0A061A;
    --superficie: #17102E;
    --borde: #3A2F63;
    --borde-campo: #6B5FA0;
    --texto: #F5F2FF;
    --apagado: #BDB6D9;
    --rosa: #FF3CAC;
    --turquesa: #2DE2E6;
    --naranja: #FF9F43;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--fondo);
    color: var(--texto);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}

a {
    color: var(--turquesa);
}

a:hover {
    color: var(--texto);
}

:focus-visible {
    outline: 3px solid var(--turquesa);
    outline-offset: 2px;
}

h1 {
    margin: 0;
    font-size: 30px;
    font-style: italic;
    font-weight: 900;
    line-height: 1.15;
}

h2 {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--apagado);
}

h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

p {
    margin: 0;
}

.apagado {
    color: var(--apagado);
}

.pequeno {
    font-size: 13px;
}

.centrado {
    text-align: center;
}

/* ---------- Cabecera y pestañas ---------- */

.cabecera,
.pestanas {
    border-bottom: 1px solid var(--borde);
}

.cabecera-dentro,
.pestanas-dentro,
.contenido,
.avisos {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.cabecera-dentro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 20px;
}

.marca {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--texto);
    font-size: 18px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.punto {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--rosa);
}

.punto-grande {
    width: 16px;
    height: 16px;
}

.pestanas-dentro {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pestanas a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    color: var(--texto);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.pestanas a.activa {
    color: var(--turquesa);
    font-weight: 800;
    box-shadow: inset 0 -3px 0 var(--turquesa);
}

/* ---------- Contenido ---------- */

.contenido {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 20px 48px;
}

.avisos {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 20px;
}

.avisos .aviso {
    margin-top: 16px;
}

.aviso {
    padding: 12px 14px;
    border: 1px solid var(--turquesa);
    border-radius: 10px;
    background: var(--superficie);
    font-size: 15px;
}

.aviso-error {
    border-color: var(--rosa);
}

.aviso-suave {
    border-color: var(--naranja);
}

.aviso ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.nota,
.nota-version {
    color: var(--apagado);
    font-size: 13px;
    line-height: 1.5;
}

.nota-version {
    padding: 10px 14px;
    border: 1px dashed var(--borde-campo);
    border-radius: 10px;
}

.vacio {
    color: var(--apagado);
    font-size: 15px;
}

.bloque {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- Tarjetas ---------- */

.tarjeta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--borde);
    border-radius: 12px;
    background: var(--superficie);
}

.tarjeta-pendiente {
    border-color: var(--naranja);
}

.tarjeta-error {
    border-color: var(--rosa);
}

.tarjeta-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fecha {
    color: var(--apagado);
    font-size: 14px;
    font-weight: 600;
}

.serie {
    padding: 4px 10px;
    border: 1px solid var(--borde);
    border-radius: 999px;
    color: var(--apagado);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.fila-estado {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.etiqueta {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.etiqueta-pendiente,
.etiqueta-aviso {
    background: var(--naranja);
    color: var(--fondo);
}

.etiqueta-aprobada {
    border-color: var(--turquesa);
    color: var(--turquesa);
}

.etiqueta-hecho {
    background: var(--turquesa);
    color: var(--fondo);
}

.etiqueta-error {
    background: var(--rosa);
    color: var(--fondo);
}

.etiqueta-apagado {
    border-color: var(--apagado);
    color: var(--apagado);
}

.fila-ajuste {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.fila-ajuste-texto {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
}

.fila-ajuste-texto span {
    font-size: 13px;
}

/* ---------- Botones y enlaces ---------- */

.boton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.boton-principal {
    background: var(--turquesa);
    color: var(--fondo);
}

.boton-principal:hover {
    background: var(--texto);
    color: var(--fondo);
}

.boton-secundario {
    border-color: var(--apagado);
    background: transparent;
    color: var(--texto);
}

.boton-secundario:hover {
    border-color: var(--texto);
}

.boton-peligro {
    border-color: var(--rosa);
    background: transparent;
    color: var(--rosa);
    font-weight: 600;
}

.boton-grande {
    min-height: 52px;
    font-size: 17px;
}

.boton-corto {
    width: auto;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
}

.boton-texto {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--turquesa);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.boton-texto.apagado {
    color: var(--apagado);
}

.enlace-alto {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    font-weight: 600;
}

.acciones {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.dos-columnas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* ---------- Formularios ---------- */

.formulario {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label,
legend {
    font-size: 14px;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--borde-campo);
    border-radius: 10px;
    background: var(--superficie);
    color: var(--texto);
    font-family: inherit;
    font-size: 16px;
}

textarea {
    padding: 12px 14px;
    line-height: 1.4;
    resize: vertical;
}

::placeholder {
    color: var(--apagado);
    opacity: 1;
}

fieldset {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 14px 16px 16px;
    border: 1px solid var(--borde);
    border-radius: 12px;
}

legend {
    padding: 0 6px;
}

.casilla {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-size: 16px;
    font-weight: 400;
}

.casilla input {
    width: 22px;
    height: 22px;
    accent-color: var(--turquesa);
}

.zona-archivo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    border: 1px dashed var(--borde-campo);
    border-radius: 12px;
    background: var(--superficie);
    text-align: center;
}

.zona-archivo input {
    max-width: 100%;
    min-height: 44px;
    color: var(--texto);
    font-family: inherit;
    font-size: 14px;
}

/* ---------- Pieza ---------- */

.video {
    align-self: center;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 9 / 16;
    border: 1px solid var(--borde);
    border-radius: 12px;
    background: #000000;
}

.datos {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 8px 12px;
    margin: 0;
    font-size: 14px;
}

.datos dt {
    color: var(--apagado);
}

.datos dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.titulo-red {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.texto-red {
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.pie-red {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--borde);
    color: var(--apagado);
    font-size: 13px;
}

.eliminar {
    margin-top: 8px;
    padding: 4px 16px;
    border: 1px solid var(--borde);
    border-radius: 12px;
}

.eliminar summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--apagado);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.eliminar[open] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
}

/* ---------- Historial ---------- */

.titulo-historia {
    margin: 0;
    color: var(--texto);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

.titulo-historia a {
    color: var(--texto);
    text-decoration: none;
}

.titulo-historia a:hover {
    color: var(--turquesa);
}

.bloque-red {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fila-red {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    min-height: 44px;
}

.nombre-red {
    font-size: 14px;
    font-weight: 600;
}

.paginas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    font-size: 15px;
}

/* ---------- Entrada y errores ---------- */

.entrada {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 32px 24px;
}

.entrada-marca {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.entrada-titulo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 34px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1;
}

.linea-neon {
    height: 3px;
    background: var(--turquesa);
}
