/* =========================================================
   Experimento Basement · web scrapbook
   Papel, recortes y celo. Todo CSS a mano.
   ========================================================= */

:root {
    --papel: #f2ebdd;
    --papel-oscuro: #e6dcc8;
    --tinta: #17130f;
    --gris: #6b6258;
    --acento: #0f9c8c;
    --acento-fuerte: #0b6f64;
    --rojo: #d84a2f;
    --celo: rgba(255, 255, 255, 0.55);
    --sombra: 0 18px 38px rgba(31, 24, 15, 0.22);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--tinta);
    background-color: var(--papel);
    /* papel: manchas suaves */
    background-image:
        radial-gradient(circle at 15% 12%, rgba(216, 202, 176, 0.55), transparent 45%),
        radial-gradient(circle at 85% 8%, rgba(214, 198, 170, 0.5), transparent 40%),
        radial-gradient(circle at 60% 85%, rgba(219, 205, 180, 0.45), transparent 50%),
        linear-gradient(180deg, #f5efe3 0%, var(--papel) 40%, #efe7d6 100%);
    line-height: 1.65;
    overflow-x: hidden;
}

/* grano y arrugas del papel por encima de todo */
.grano {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0.32;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='r'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='220' height='220' filter='url(%23r)' opacity='0.55'/></svg>");
}

h1, h2, h3, .titulo, .sello, .boton, .talon {
    font-family: 'Archivo Black', sans-serif;
    letter-spacing: -0.02em;
}

/* ================= cabecera ================= */
.cabecera {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem clamp(1rem, 4vw, 3rem);
    background: rgba(242, 235, 221, 0.82);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}

.cabecera.pegada {
    border-bottom-color: var(--tinta);
    background: rgba(242, 235, 221, 0.95);
}

.sello {
    display: block;
    width: 78px;
    flex: 0 0 auto;
    transform: rotate(-3deg);
    transition: transform 0.3s;
}

.sello img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 9px rgba(31, 24, 15, 0.28));
}

.sello:hover {
    transform: rotate(2deg) scale(1.05);
}

/* logo del pie */
.pie-logo {
    width: 88px;
    height: auto;
    margin-bottom: 0.9rem;
    transform: rotate(-2deg);
    filter: drop-shadow(0 5px 10px rgba(31, 24, 15, 0.25));
}

.zona-menu {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem);
}

.menu {
    display: flex;
    gap: clamp(1rem, 2.5vw, 2rem);
}

.menu a {
    color: var(--tinta);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding-bottom: 2px;
    background-image: linear-gradient(var(--acento), var(--acento));
    background-size: 0% 3px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.35s ease;
}

.menu a:hover {
    background-size: 100% 3px;
}

.boton-tema {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--tinta);
    background: transparent;
    color: var(--tinta);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.3s, background 0.3s, color 0.3s;
}

.boton-tema:hover {
    transform: rotate(-14deg) scale(1.08);
    background: var(--tinta);
    color: var(--papel);
}

.boton-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.boton-menu span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background: var(--tinta);
    transition: transform 0.3s, opacity 0.3s;
}

.boton-menu.abierto span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.boton-menu.abierto span:nth-child(2) { opacity: 0; }
.boton-menu.abierto span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================= portada ================= */
.portada {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6rem, 12vh, 8rem) clamp(1rem, 4vw, 3rem) 10rem;
    overflow: hidden;
}

.titular {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 820px;
}

.ante-titulo {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    color: var(--gris);
    transform: rotate(-1.5deg);
    margin-bottom: 0.6rem;
}

.portada h1 {
    font-size: clamp(2rem, 6.6vw, 5.2rem);
    line-height: 0.82;
    text-transform: uppercase;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.25em;
}

.portada h1 .palabra {
    display: inline-block;
}

.portada h1 .palabra:nth-child(1) { transform: rotate(-3deg); }
.portada h1 .palabra:nth-child(2) { transform: rotate(1.5deg); }

.portada h1 .destacada {
    color: transparent;
    -webkit-text-stroke: 3px var(--tinta);
    transform: rotate(-1deg) translateY(0.02em);
    display: block;
    flex-basis: 100%;
}

.nota {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.3rem, 3.4vw, 1.9rem);
    line-height: 1.15;
    color: var(--acento-fuerte);
    margin: 1.2rem auto 0;
    transform: rotate(-1deg);
}

.acciones {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.8rem;
}

.boton {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--papel);
    background: var(--tinta);
    border: 2px solid var(--tinta);
    transform: rotate(-1deg);
    transition: transform 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
    box-shadow: 4px 4px 0 var(--acento);
}

.boton:hover {
    transform: rotate(1deg) translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--acento-fuerte);
}

.boton-linea {
    background: transparent;
    color: var(--tinta);
    box-shadow: 4px 4px 0 rgba(23, 19, 15, 0.25);
}

/* ---- recortes de fotos ---- */
.recorte {
    position: relative;
    margin: 0;
    will-change: transform;
}

.recorte img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(10px 14px 18px rgba(31, 24, 15, 0.32));
}

/* recortes con dos versiones: al pasar el ratón cambia la imagen */
.recorte img.accion {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.recorte:hover img.quieto {
    opacity: 0;
}

.recorte:hover img.accion {
    opacity: 1;
}

.recorte figcaption {
    font-family: 'Caveat', cursive;
    font-size: 1.25rem;
    color: var(--gris);
    text-align: center;
    margin-top: 0.4rem;
    transform: rotate(-1.5deg);
}

/* colocación del collage de la portada */
.portada .recorte {
    position: absolute;
    z-index: 2;
}

.recorte-izq {
    width: clamp(200px, 24vw, 340px);
    top: 11%;
    left: 3%;
    transform: rotate(-8deg);
    animation: flotar 9s ease-in-out infinite;
}

.recorte-der {
    width: clamp(150px, 17vw, 250px);
    top: 9%;
    right: 3%;
    transform: rotate(7deg);
    animation: flotar 11s ease-in-out infinite reverse;
}

.recorte-abajo {
    width: clamp(200px, 22vw, 320px);
    bottom: 7%;
    left: 8%;
    opacity: 0.97;
    transform: rotate(5deg);
    z-index: 1;
    animation: flotar 13s ease-in-out infinite;
}

.portada .recorte-izq,
.portada .recorte-der {
    z-index: 3;
}

.recorte-abajo-der {
    width: clamp(180px, 20vw, 280px);
    bottom: 5%;
    right: 7%;
    opacity: 0.97;
    transform: rotate(-5deg);
    z-index: 1;
    animation: flotar 12s ease-in-out infinite reverse;
}


}

@keyframes flotar {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -14px; }
}

.bajar {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
    color: var(--gris);
    text-decoration: none;
    z-index: 4;
}

.bajar span {
    display: inline-block;
    animation: picar 1.8s ease-in-out infinite;
}

@keyframes picar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ================= marquesina ================= */
.marquesina {
    background: var(--tinta);
    color: var(--papel);
    padding: 0.7rem 0;
    overflow: hidden;
    transform: rotate(-1.2deg);
    margin: 1.5rem 0;
    border-top: 3px solid var(--tinta);
    border-bottom: 3px solid var(--tinta);
}

.marquesina-texto {
    display: flex;
    gap: 2.5rem;
    white-space: nowrap;
    animation: correr 28s linear infinite;
}

.marquesina-texto span {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@keyframes correr {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ================= secciones ================= */
.seccion {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
}

.titulo {
    font-size: clamp(1.9rem, 5.5vw, 3.4rem);
    text-transform: uppercase;
    line-height: 0.9;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.titulo::after {
    content: '';
    position: absolute;
    left: -6px;
    right: -6px;
    bottom: 0.06em;
    height: 0.32em;
    background: var(--acento);
    opacity: 0.35;
    z-index: -1;
    transform: rotate(-0.8deg);
}

.subtitulo {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: var(--gris);
    margin-top: 0.4rem;
}

/* ---- nosotros ---- */
.nosotros {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hoja-hoja {
    position: relative;
    background: #fbf8f0;
    padding: clamp(1.6rem, 4vw, 3rem);
    box-shadow: var(--sombra);
    transform: rotate(-0.7deg);
    border-left: 5px solid var(--acento);
}

/* celo en la esquina */
.hoja-hoja::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    width: 120px;
    height: 28px;
    margin-left: -60px;
    background: var(--celo);
    border-left: 1px dashed rgba(23, 19, 15, 0.18);
    border-right: 1px dashed rgba(23, 19, 15, 0.18);
    transform: rotate(-2deg);
    box-shadow: 0 2px 6px rgba(31, 24, 15, 0.12);
}

.parrafo {
    margin-top: 1.1rem;
    font-size: clamp(1rem, 2.2vw, 1.12rem);
    font-weight: 300;
    color: #2c2620;
}

.parrafo strong, .parrafo em {
    font-weight: 600;
    color: var(--tinta);
}

.firma {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--acento-fuerte);
    margin-top: 1.6rem;
    transform: rotate(-1.5deg);
}

.recorte-nosotros {
    position: relative;
    width: 100%;
    background: #fdfaf3;
    padding: 14px 14px 6px;
    box-shadow: 0 14px 28px rgba(31, 24, 15, 0.2);
    transform: rotate(-2.5deg);
}

.recorte-nosotros::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 20%;
    width: 96px;
    height: 24px;
    background: var(--celo);
    border-left: 1px dashed rgba(23, 19, 15, 0.18);
    border-right: 1px dashed rgba(23, 19, 15, 0.18);
    transform: rotate(-6deg);
    box-shadow: 0 2px 5px rgba(31, 24, 15, 0.15);
}

.recorte-nosotros img {
    filter: none;
}

body.oscuro .recorte-nosotros {
    background: #1b1830;
}

/* ---- la banda (stickers con animación) ---- */
.banda {
    text-align: center;
}

.rejilla-banda {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1.4rem, 3vw, 2.4rem);
    margin-top: 3rem;
    align-items: start;
    justify-items: center;
}

.sticker {
    position: relative;
    width: 100%;
    max-width: 320px;
    cursor: pointer;
}

.sticker:hover {
    z-index: 5;
}

.caja-sticker {
    position: relative;
    height: clamp(260px, 34vw, 420px);
    transform: rotate(var(--giro, 0deg));
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* las fotos no están encuadradas igual: se igualan las cabezas */
.rejilla-banda .sticker:nth-child(1) img { transform: scale(1.24); }
.rejilla-banda .sticker:nth-child(2) img { transform: scale(1.06); }
.rejilla-banda .sticker:nth-child(3) img { transform: scale(1.00); }
.rejilla-banda .sticker:nth-child(4) img { transform: scale(1.10); }

.caja-sticker img {
    transform-origin: bottom center;
}

/* celo pegado sobre la etiqueta del nombre */
.sticker figcaption {
    position: relative;
}



/* cada sticker un poco torcido, como pegado a mano */
.rejilla-banda .sticker:nth-child(1) { --giro: -2deg; }
.rejilla-banda .sticker:nth-child(2) { --giro: 1.5deg; }
.rejilla-banda .sticker:nth-child(3) { --giro: -1deg; }
.rejilla-banda .sticker:nth-child(4) { --giro: 2.2deg; }

.sticker:hover .caja-sticker {
    transform: rotate(0deg) translateY(-6px) scale(1.04);
}

.caja-sticker img {
    position: absolute;
    left: 0;
    bottom: 14px;
    width: 100%;
    height: calc(100% - 14px);
    object-fit: contain;
    object-position: bottom center;
    transition: opacity 0.22s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    filter: drop-shadow(8px 12px 14px rgba(31, 24, 15, 0.28));
}

.sticker img.accion,
.sticker img.variante {
    opacity: 0;
}

/* el cambio de imagen: la normal se va y entra la de la acción */
.sticker:hover img.quieto {
    opacity: 0;
}

.sticker:hover img.accion {
    opacity: 1;
    transform: translateY(-8px) rotate(-1.5deg);
}

.sticker figcaption {
    position: relative;
    z-index: 2;
    margin-top: 0.9rem;
}

.sticker figcaption strong {
    display: block;
    font-family: 'Archivo Black', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sticker figcaption span {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--gris);
}

/* ---- directos ---- */
.directos {
    text-align: center;
}

.rejilla-directos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1.6rem, 4vw, 2.8rem);
    margin-top: 3rem;
}

.polaroid {
    background: #fdfaf3;
    padding: 14px 14px 0;
    box-shadow: 0 14px 28px rgba(31, 24, 15, 0.2);
    transform: rotate(-2deg);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
    position: relative;
}

.polaroid:nth-child(2) { transform: rotate(1.6deg); }
.polaroid:nth-child(3) { transform: rotate(-1.2deg); }

.polaroid:hover {
    transform: rotate(0deg) translateY(-8px) scale(1.02);
    box-shadow: 0 24px 40px rgba(31, 24, 15, 0.28);
}

.polaroid::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 18%;
    width: 90px;
    height: 24px;
    background: var(--celo);
    transform: rotate(-6deg);
    box-shadow: 0 2px 5px rgba(31, 24, 15, 0.15);
}

.marco {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: none;
    padding: 0;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

.marco img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.15) contrast(1.05);
    transition: transform 0.5s, filter 0.4s;
}

.marco:hover img {
    transform: scale(1.05);
    filter: saturate(1.3) contrast(1.1);
}

.marco iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-4deg);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    background: var(--papel);
    color: var(--tinta);
    border-radius: 50%;
    border: 3px solid var(--tinta);
    font-size: 1rem;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.marco:hover .play {
    background: var(--acento);
    transform: translate(-50%, -50%) rotate(0deg) scale(1.08);
}

.polaroid h3 {
    font-size: 1rem;
    margin-top: 0.85rem;
    text-transform: uppercase;
}

.polaroid p {
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
    color: var(--gris);
    padding-bottom: 1.1rem;
}

/* ---- conciertos ---- */
.conciertos {
    text-align: center;
}

.entradas {
    list-style: none;
    margin-top: 2.6rem;
    display: grid;
    gap: 1.1rem;
    text-align: left;
}

.entrada {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    background: #fdfaf3;
    padding: 1.1rem 1.4rem;
    border: 2px dashed rgba(23, 19, 15, 0.35);
    box-shadow: 0 8px 18px rgba(31, 24, 15, 0.12);
    transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.entrada:nth-child(odd) { transform: rotate(-0.8deg); }
.entrada:nth-child(even) { transform: rotate(0.7deg); }

.entrada:hover {
    transform: rotate(0deg) translateX(6px);
    border-color: var(--acento);
    box-shadow: 0 14px 24px rgba(31, 24, 15, 0.2);
}

.talon {
    flex: 0 0 auto;
    font-size: 0.95rem;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
    background: var(--tinta);
    color: var(--papel);
    padding: 0.5rem 0.7rem;
    transform: rotate(-3deg);
}

.datos h3 {
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    text-transform: uppercase;
}

.datos p {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: var(--gris);
}

/* ---- contacto ---- */
.contacto {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(1.5rem, 5vw, 4rem);
}

.postal {
    position: relative;
    width: 100%;
    max-width: 620px;
    background: #fbf8f0;
    padding: clamp(1.6rem, 4vw, 3rem);
    box-shadow: var(--sombra);
    transform: rotate(1deg);
    border: 2px solid rgba(23, 19, 15, 0.12);
    text-align: center;
}

.sello-postal {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 66px;
    height: 78px;
    border: 2px dashed rgba(23, 19, 15, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    transform: rotate(6deg);
    background: repeating-linear-gradient(135deg, rgba(15, 156, 140, 0.12) 0 6px, transparent 6px 12px);
}

.sello-postal img {
    width: 46px;
    height: auto;
}
.sello-postal small { font-size: 0.5rem; letter-spacing: 0.08em; }

.postal .parrafo {
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
}

.nota-postal {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: var(--acento-fuerte);
    margin-top: 1.2rem;
    transform: rotate(-2deg);
}

.recorte-contacto {
    transform: rotate(-5deg);
}

/* ---- pie ---- */
.pie {
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    border-top: 2px dashed rgba(23, 19, 15, 0.25);
    margin-top: 2rem;
}

.pie-marca {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.4rem;
}

.pie p:last-child {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: var(--gris);
}

/* ================= animaciones de entrada ================= */
.aparece {
    opacity: 0;
    transform: translateY(36px) rotate(-1.5deg);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.aparece.visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.polaroid.aparece.visible:nth-child(1) { transform: rotate(-2deg); }
.polaroid.aparece.visible:nth-child(2) { transform: rotate(1.6deg); }
.polaroid.aparece.visible:nth-child(3) { transform: rotate(-1.2deg); }
.entrada.aparece.visible:nth-child(odd) { transform: rotate(-0.8deg); }
.entrada.aparece.visible:nth-child(even) { transform: rotate(0.7deg); }

/* ================= móvil ================= */
@media (max-width: 860px) {
    .boton-menu { display: block; }

    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: var(--papel);
        border-bottom: 2px solid var(--tinta);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .menu.abierto { max-height: 320px; }

    .menu a {
        padding: 0.95rem 1.4rem;
        border-top: 1px dashed rgba(23, 19, 15, 0.2);
    }

    .portada {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .titular {
        margin: 0 auto;
        order: -1;
    }

    .portada .recorte {
        position: static;
        width: 72%;
        margin: 1.6rem auto;
        animation: none;
    }

    .recorte-abajo,
    .portada .recorte-izq,
.portada .recorte-der {
    z-index: 3;
}

.recorte-abajo-der { display: none; }

    .recorte-izq { transform: rotate(-5deg); margin-left: 0; }
    .recorte-der { transform: rotate(4deg); margin-right: 0; }

    .nosotros, .contacto {
        grid-template-columns: 1fr;
    }

    .rejilla-banda {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .caja-sticker {
        height: 230px;
    }

    .sticker figcaption strong {
        font-size: 0.8rem;
    }

    .sticker figcaption span {
        font-size: 1rem;
    }

    .recorte-nosotros, .recorte-contacto {
        width: 74%;
        margin: 0 auto;
    }

    .bajar { display: none; }
}

/* respeta a quien no quiere animaciones */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .aparece { opacity: 1; transform: none; }
}

/* =========================================================
   MODO OSCURO
   Se activa con la clase .oscuro en el body (botón de la barra).
   Solo cambian las variables y los pocos colores fijos que hay.
   ========================================================= */
body.oscuro {
    --papel: #141220;
    --papel-oscuro: #1c1930;
    --tinta: #f1ecf8;
    --gris: #a9a1bd;
    --acento: #3ed9c0;
    --acento-fuerte: #8ff2e0;
    --celo: rgba(255, 255, 255, 0.16);
    --sombra: 0 18px 38px rgba(0, 0, 0, 0.55);

    color: var(--tinta);
    background-color: #141220;
    background-image:
        radial-gradient(circle at 15% 12%, rgba(72, 44, 122, 0.55), transparent 45%),
        radial-gradient(circle at 85% 8%, rgba(26, 88, 118, 0.45), transparent 40%),
        radial-gradient(circle at 60% 85%, rgba(92, 40, 122, 0.35), transparent 50%),
        linear-gradient(180deg, #1a1728 0%, #141220 40%, #0e0c15 100%);
}

body.oscuro .grano {
    mix-blend-mode: screen;
    opacity: 0.1;
}

body.oscuro .cabecera {
    background: rgba(20, 18, 32, 0.82);
}

body.oscuro .cabecera.pegada {
    background: rgba(20, 18, 32, 0.96);
}

body.oscuro .hoja-hoja,
body.oscuro .postal,
body.oscuro .polaroid,
body.oscuro .entrada {
    background: #1b1830;
}

body.oscuro .parrafo {
    color: #d9d3e8;
}

body.oscuro .parrafo strong,
body.oscuro .parrafo em {
    color: #ffffff;
}

body.oscuro .entrada {
    border-color: rgba(255, 255, 255, 0.22);
}

body.oscuro .postal,
body.oscuro .sello-postal {
    border-color: rgba(255, 255, 255, 0.18);
}

body.oscuro .marquesina {
    background: #241f3a;
    color: var(--tinta);
    border-color: var(--acento);
}

body.oscuro .talon {
    background: var(--acento);
    color: #101018;
}

body.oscuro .pie {
    border-top-color: rgba(255, 255, 255, 0.18);
}

body.oscuro .titulo::after {
    opacity: 0.28;
}

/* ---- estrellas que parpadean en la portada ---- */
.estrellas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    color: var(--acento-fuerte);
}

.estrellas span {
    position: absolute;
    font-size: 1.1rem;
    opacity: 0.18;
    animation: titilar 4.5s ease-in-out infinite;
}

/* estrellas fugaces */
.estrellas .fugaz {
    width: 130px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--acento) 55%, #ffffff);
    opacity: 0;
    font-size: 0;
    animation-name: fugaz;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    transform: rotate(18deg);
}

@keyframes fugaz {
    0%   { opacity: 0; transform: translate(0, 0) rotate(18deg); }
    4%   { opacity: 1; }
    14%  { opacity: 0; transform: translate(38vw, 13vw) rotate(18deg); }
    100% { opacity: 0; transform: translate(38vw, 13vw) rotate(18deg); }
}

.estrellas span:nth-child(1) { top: 18%; left: 22%; }
.estrellas span:nth-child(2) { top: 30%; left: 78%; font-size: 0.9rem; animation-delay: 0.7s; }
.estrellas span:nth-child(3) { top: 62%; left: 30%; animation-delay: 1.4s; }
.estrellas span:nth-child(4) { top: 72%; left: 68%; font-size: 1.6rem; animation-delay: 2.1s; }
.estrellas span:nth-child(5) { top: 46%; left: 12%; font-size: 0.8rem; animation-delay: 2.8s; }
.estrellas span:nth-child(6) { top: 12%; left: 62%; animation-delay: 3.2s; }
.estrellas span:nth-child(7) { top: 86%; left: 46%; font-size: 1.4rem; animation-delay: 1.1s; }
.estrellas span:nth-child(8) { top: 54%; left: 90%; font-size: 0.9rem; animation-delay: 2.4s; }

@keyframes titilar {
    0%, 100% { opacity: 0.25; transform: scale(0.92); }
    50% { opacity: 0.8; transform: scale(1.18); }
}

/* el logo en modo oscuro: sombra suave, sin marcos */
body.oscuro .sello img,
body.oscuro .pie-logo {
    filter: drop-shadow(0 0 14px rgba(22, 184, 163, 0.35));
}
