
/* ===== Fondo: pan de oro envejecido y craquelado ===== */
.paralax_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #a87a26 url("galeria/pan_de_oro.webp") center / cover no-repeat;
}

/* Las capas del parallax no se usan con este fondo */
.capa {
    display: none;
}

.contenido_pagina {
    position: relative;
    z-index: 1;
}
/* ===== Artículo destacado: mismo ancho que las 4 imágenes del carrusel ===== */
.contenido {
    --margen: 32px;            /* el mismo margen que el carrusel, para que coincidan */
    width: min(100%, 1100px);
    margin: 40px auto 0;
    padding: 0 var(--margen);
    box-sizing: border-box;
}

.destacado {
    position: relative;
    height: 340px;
    overflow: hidden;
    border: 6px solid #1a1a1a;
    border-radius: 28px;
    background: radial-gradient(circle at 70% 30%, #3a2a0c, #0d0904 70%);  /* para las que no llevan foto */
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),  /* rebote hacia fuera, como el carrusel */
                box-shadow 0.35s ease;
}

/* Al pasar el ratón: sale hacia fuera con brillo dorado */
.destacado:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
                0 0 0 3px #d4a72c;
}

/* Cada diapositiva ocupa todo el recuadro; solo se ve la activa */
.destacado-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s;
}

.destacado-slide.activa {
    opacity: 1;
    visibility: visible;
}

/* Foto de fondo con un zoom lento */
.destacado-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transition: transform 7s ease-out;
}

.destacado-slide.activa img {
    transform: scale(1);
}

/* Oscurece la foto por la izquierda para que se lea el texto */
.destacado-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 5, 1, 0.85) 0%, rgba(8, 5, 1, 0.45) 55%, rgba(8, 5, 1, 0) 100%);
}

.destacado-texto {
    position: absolute;
    left: 48px;
    bottom: 56px;
    max-width: 60%;
    z-index: 1;
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s ease 0.3s, opacity 0.8s ease 0.3s;
}

.destacado-slide.activa .destacado-texto {
    transform: translateY(0);
    opacity: 1;
}

/* Etiqueta tipo pegatina */
.etiqueta {
    display: inline-block;
    font-family: 'Permanent Marker', cursive;
    font-size: 15px;
    letter-spacing: 1px;
    color: #111;
    background: #fff;
    padding: 3px 12px 1px;
    border-radius: 4px;
    transform: rotate(-3deg);
}

.destacado-texto h2 {
    margin: 14px 0 10px;
    font-family: 'Permanent Marker', cursive;
    font-weight: normal;
    font-size: clamp(26px, 3.4vw, 44px);
    line-height: 1.1;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.destacado-texto p {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    color: #f1e6c8;
}

.destacado-texto .cita {
    color: #f3d77a;            /* la cita en dorado */
    font-weight: bold;
    letter-spacing: 1px;
}

.destacado-texto p .cita { white-space: nowrap; }

/* Botón «Léelo entero» dentro del destacado */
.destacado-enlace {
    display: inline-block;
    margin-top: 14px;
    font-family: 'Permanent Marker', cursive;
    font-size: 17px;
    color: #111;
    background: #f3d77a;
    padding: 5px 16px 3px;
    border: 3px solid #111;
    border-radius: 6px;
    text-decoration: none;
    transform: rotate(-2deg);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}
.destacado-enlace:hover,
.destacado-enlace:focus-visible { background: #fff; transform: rotate(0deg) scale(1.08); outline: none; }

/* Puntitos para saltar de una a otra */
.destacado-puntos {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.destacado-puntos button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.destacado-puntos button.activo {
    background: #d4a72c;
    border-color: #d4a72c;
    transform: scale(1.25);
}

@media (max-width: 760px) {
    .destacado { height: 420px; }
    .destacado-slide::after {
        background: linear-gradient(0deg, rgba(8, 5, 1, 0.9) 0%, rgba(8, 5, 1, 0.4) 60%, rgba(8, 5, 1, 0.1) 100%);
    }
    .destacado-texto {
        left: 24px;
        right: 24px;
        bottom: 48px;
        max-width: none;
    }
}

/* ===== Carrusel: 4 móviles enteros a la vez ===== */
.carrucel {
    --visibles: 4;             /* cuántas imágenes se ven a la vez */
    --hueco: 24px;             /* espacio entre imágenes */
    --margen: 32px;            /* margen a los lados */
    width: min(100%, 1100px);
    margin: 0 auto 40px;
    padding: 60px var(--margen);   /* hueco para que la imagen agrandada no se corte */
    box-sizing: border-box;
    overflow: hidden;
    /* recorta justo después de la 4ª imagen (deja 16px para el efecto de agrandar) */
    clip-path: inset(0 calc(var(--margen) - 16px));
}

.carrucel-imgs {
    display: flex;             /* imágenes en fila */
    gap: var(--hueco);
}

/* Cada elemento de la fila (el enlace con su imagen) con el ancho justo para que quepan 4 */
.carrucel-imgs > a,
.carrucel-imgs > img {
    flex: 0 0 calc((100% - (var(--visibles) - 1) * var(--hueco)) / var(--visibles));
    min-width: 0;
    display: block;
}

/* La imagen: forma de pantalla de móvil (9:16) */
.carrucel-imgs img,
.carrucel-imgs video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    box-sizing: border-box;
    border: 6px solid #1a1a1a;     /* marco tipo teléfono */
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    cursor: zoom-in;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),  /* rebote hacia fuera */
                box-shadow 0.35s ease;
}

/* Al pasar el ratón: se agranda y sale hacia fuera */
.carrucel-imgs img:hover,
.carrucel-imgs video:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.45),
                0 0 0 3px #d4a72c;          /* brillo dorado */
    z-index: 2;
}

/* Tablet: 2 a la vez · Móvil: 1 a la vez */
@media (max-width: 1100px) {
    .carrucel { --visibles: 3; }
}
@media (max-width: 760px) {
    .carrucel { --visibles: 2; }
}
@media (max-width: 520px) {
    .carrucel { --visibles: 1; --margen: 48px; }
    .contenido { --margen: 48px; }
}

/* ===== Columna lateral: logo arriba y menú debajo ===== */
:root {
    --ancho-lateral: 240px;
}

.lateral {
    position: fixed;           /* se queda quieta al hacer scroll */
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--ancho-lateral);
    box-sizing: border-box;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    z-index: 10;
}

.principal {
    margin-left: var(--ancho-lateral);   /* el contenido empieza a la derecha de la columna */
}

/* Logo: la pegatina sin fondo */
.logo {
    display: block;
}

.logo img {
    display: block;
    width: 180px;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
    transition: transform 0.2s ease;
}

.logo:hover img {
    transform: rotate(-3deg) scale(1.04);
}

/* Menú: cada opción como una pegatina negra, a juego con el logo */
.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.menu a {
    display: inline-block;
    font-family: 'Permanent Marker', cursive;
    font-size: 22px;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
    background: #111;
    padding: 6px 20px 4px;
    border: 3px solid #fff;
    border-radius: 6px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35);
    transform: rotate(-2deg);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.menu li:nth-child(even) a {
    transform: rotate(2deg);
}

.menu a:hover,
.menu a:focus-visible {
    color: #f3d77a;            /* letras doradas */
    transform: rotate(0deg) scale(1.1);
}

/* Pantallas pequeñas: el logo y el menú pasan arriba, y el menú en fila */
@media (max-width: 760px) {
    .lateral {
        position: static;
        width: auto;
        gap: 20px;
        padding: 20px 16px 0;
    }
    .principal {
        margin-left: 0;
    }
    .menu ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .menu a {
        font-size: 18px;
        padding: 5px 14px 3px;
    }
}

/* ===== Pie: redes y contacto ===== */
.pie {
    width: min(100% - 64px, 1036px);   /* mismo ancho que el carrusel */
    margin: 20px auto 40px;
    padding: 28px 24px 22px;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    background: rgba(17, 17, 17, 0.9);
    border: 5px solid #fff;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.pie-lema {
    margin: 0 0 20px;
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(18px, 2.4vw, 26px);
    line-height: 1.3;
}

.pie-lema span {
    color: #f3d77a;
    white-space: nowrap;
}

.pie-redes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.pie-redes a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #111;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transform: rotate(-1.5deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.pie-redes li:nth-child(even) a {
    transform: rotate(1.5deg);
}

.pie-redes a:hover,
.pie-redes a:focus-visible {
    background: #f3d77a;
    transform: rotate(0deg) scale(1.1) translateY(-3px);
}

.pie-redes svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

.pie-redes svg .relleno {
    fill: currentColor;
    stroke: none;
}

.pie-copy {
    margin: 20px 0 0;
    font-size: 13px;
    color: #bfb39a;
}

@media (max-width: 520px) {
    .pie { width: calc(100% - 32px); }
}

/* ===== Visor: la imagen ampliada al pincharla ===== */
.visor {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 12, 2, 0.85);
    cursor: zoom-out;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.visor.abierto {
    opacity: 1;
    pointer-events: auto;
}

.visor img {
    max-width: 100%;
    max-height: 100%;              /* nunca más grande que la pantalla */
    object-fit: contain;
    border: 4px solid #d4a72c;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.85);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.visor.abierto img {
    transform: scale(1);
}

.visor-cerrar {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #f3d77a;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

/* ===== Aura: columna fija a la derecha, siempre abierta ===== */
:root {
    --ancho-aura: 360px;
}

.aura {
    position: fixed;
    top: 16px;
    right: 16px;
    bottom: 16px;              /* ocupa casi todo el largo de la pantalla */
    width: var(--ancho-aura);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    color: #fff;
    /* Fondo: el icono del Sagrado Corazón, oscurecido para que se lea el chat */
    background:
        linear-gradient(rgba(17, 17, 17, 0.82), rgba(17, 17, 17, 0.72) 45%, rgba(17, 17, 17, 0.9)),
        #111 url("galeria/aura_fondo.jpg") center / cover no-repeat;
    border: 5px solid #fff;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    z-index: 20;
}

.aura-cabecera {
    padding: 22px 22px 18px;
    border-bottom: 2px solid rgba(212, 167, 44, 0.5);
}

.aura-cabecera h2 {
    margin: 12px 0 8px;
    font-family: 'Permanent Marker', cursive;
    font-weight: normal;
    font-size: 26px;
    line-height: 1.15;
    color: #f3d77a;
}

.aura-cabecera p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: #f1e6c8;
}

/* Los mensajes ocupan todo el hueco del medio y hacen scroll por dentro */
.aura-mensajes {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    max-width: 85%;
    margin: 0;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.45;
    border-radius: 14px;
}

.msg-aura {                    /* lo que dice Aura: a la izquierda, en oro */
    align-self: flex-start;
    color: #111;
    background: #f3d77a;
    border-bottom-left-radius: 4px;
}

.msg-tu {                      /* lo que escribe la persona: a la derecha, en blanco */
    align-self: flex-end;
    color: #111;
    background: #fff;
    border-bottom-right-radius: 4px;
}

.aura-form {
    display: flex;
    gap: 8px;
    padding: 14px;
    border-top: 2px solid rgba(212, 167, 44, 0.5);
}

.aura-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    font: inherit;
    font-size: 15px;
    color: #111;
    background: #fffaf0;
    border: none;
    border-radius: 8px;
}

.aura-form button {
    padding: 8px 16px 6px;
    font-family: 'Permanent Marker', cursive;
    font-size: 17px;
    color: #111;
    background: #d4a72c;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.aura-form :disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* El contenido se corre a la izquierda para dejarle sitio a Aura */
.principal {
    margin-right: calc(var(--ancho-aura) + 32px);
}

/* Pantallas medianas y móvil: Aura pasa debajo del contenido, a todo el ancho */
@media (max-width: 1100px) {
    .aura {
        position: static;
        width: auto;
        height: 520px;
        margin: 0 16px 40px;
    }
    .principal {
        margin-right: 0;
    }
}

/* ===== Páginas interiores (Pasajes, Galería): cabecera tipo pegatina ===== */
.pagina-portada {
    padding: 48px 48px 44px;
    color: #fff;
    background: radial-gradient(circle at 70% 30%, #3a2a0c, #0d0904 70%);
    border: 6px solid #1a1a1a;
    border-radius: 28px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
    margin-bottom: 40px;
}

.pagina-portada h1 {
    margin: 14px 0 10px;
    font-family: 'Permanent Marker', cursive;
    font-weight: normal;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
    color: #f3d77a;
}

.pagina-portada p {
    margin: 0;
    max-width: 640px;
    font-size: 18px;
    line-height: 1.5;
    color: #f1e6c8;
}

/* La página en la que estás se marca en dorado en el menú */
.menu a[aria-current="page"] {
    color: #f3d77a;
}

/* ===== Ventana de contacto ===== */
.contacto {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(20, 12, 2, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.contacto.abierto {
    opacity: 1;
    pointer-events: auto;
}

.contacto-caja {
    position: relative;
    width: min(100%, 480px);
    max-height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 28px 28px 24px;
    color: #fff;
    background: #111;
    border: 5px solid #fff;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.9) rotate(-1deg);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contacto.abierto .contacto-caja {
    transform: scale(1) rotate(0deg);
}

.contacto-cerrar {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #f3d77a;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.contacto-caja h2 {
    margin: 12px 0 6px;
    font-family: 'Permanent Marker', cursive;
    font-weight: normal;
    font-size: 30px;
    color: #f3d77a;
}

.contacto-intro {
    margin: 0 0 18px;
    color: #f1e6c8;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contacto-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #f1e6c8;
}

.contacto-form input,
.contacto-form textarea {
    padding: 10px 12px;
    font: inherit;
    font-weight: normal;
    font-size: 16px;
    color: #111;
    background: #fffaf0;
    border: 2px solid transparent;
    border-radius: 8px;
    resize: vertical;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: #d4a72c;
}

.contacto-trampa {
    position: absolute;
    left: -9999px;
}

.contacto-form button[type="submit"] {
    align-self: flex-start;
    padding: 8px 26px 6px;
    font-family: 'Permanent Marker', cursive;
    font-size: 20px;
    color: #111;
    background: #d4a72c;
    border: 3px solid #fff;
    border-radius: 8px;
    cursor: pointer;
    transform: rotate(-2deg);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contacto-form button[type="submit"]:hover {
    transform: rotate(0deg) scale(1.08);
}

.contacto-form button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.contacto-estado {
    margin: 0;
    min-height: 1.4em;
    font-size: 15px;
}

.contacto-estado.ok { color: #f3d77a; }
.contacto-estado.error { color: #ffb4a8; }
.contacto-estado a { color: #f3d77a; }

/* ===== Reels de Instagram: portada con botón de play ===== */
.reel {
    position: relative;
    display: block;
}

.reel-play {
    position: absolute;
    left: 50%;
    top: 80%;                      /* abajo, para no tapar la frase del reel */
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    border: 3px solid #fff;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.75);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    pointer-events: none;          /* el clic lo recibe la imagen */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.reel-play::after {                /* el triángulo dorado */
    content: "";
    position: absolute;
    left: 54%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 13px 0 13px 21px;
    border-color: transparent transparent transparent #f3d77a;
}

.reel:hover .reel-play {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(17, 17, 17, 0.9);
}

/* En el visor: el reproductor de Instagram en lugar de la imagen */
.visor-reel {
    display: none;
    width: min(400px, 92vw);
    height: min(720px, 86vh);
    border: 4px solid #d4a72c;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.visor.con-reel img { display: none; }
.visor.con-reel .visor-reel { display: block; }

/* Vídeo propio (presentación) ampliado, con sonido */
.visor-video {
    display: none;
    max-width: min(420px, 92vw);
    max-height: 88vh;
    aspect-ratio: 9 / 16;
    border: 4px solid #d4a72c;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    cursor: default;
}

.visor.con-video img { display: none; }
.visor.con-video .visor-video { display: block; }

/* ===== Galería: los reels en fila ===== */
.galeria-reels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.galeria-reel iframe,
.galeria-reel .reel img {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 6px solid #1a1a1a;
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.galeria-reel iframe {
    height: 620px;
    background: #fff;
}

.galeria-reel .reel img {
    aspect-ratio: 9 / 16;
    object-fit: cover;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.galeria-reel .reel:hover img {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.45), 0 0 0 3px #d4a72c;
}

/* ===== Chat de Aura: mensajes, "escribiendo…" y avisos ===== */
.msg strong { font-weight: bold; }

.msg-aura.escribiendo .puntos {
    display: inline-flex;
    gap: 5px;
    padding: 4px 2px;
}

.msg-aura.escribiendo .puntos i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #111;
    opacity: 0.35;
    animation: aura-punto 1.2s infinite ease-in-out;
}

.msg-aura.escribiendo .puntos i:nth-child(2) { animation-delay: 0.15s; }
.msg-aura.escribiendo .puntos i:nth-child(3) { animation-delay: 0.3s; }

@keyframes aura-punto {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
    40%           { opacity: 1;    transform: translateY(-4px); }
}

/* Avisos (sin voz, demasiados mensajes…): en blanco roto con borde dorado */
.msg-aviso {
    color: #111;
    background: #fffaf0;
    border: 2px dashed #d4a72c;
}

.aura-redes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.aura-redes a {
    padding: 4px 12px 3px;
    font-family: 'Permanent Marker', cursive;
    font-size: 14px;
    color: #fff;
    background: #111;
    border-radius: 6px;
    text-decoration: none;
    transform: rotate(-2deg);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.aura-redes a:nth-child(even) { transform: rotate(2deg); }
.aura-redes a:hover { color: #f3d77a; transform: rotate(0deg) scale(1.08); }

.aura-form input:focus {
    outline: 2px solid #d4a72c;
}

/* ===== Música: listas de Spotify (y YouTube cuando estén) ===== */
.listas-musica {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 32px;
    margin-bottom: 24px;
}

.lista-musica {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 24px 24px;
    color: #fff;
    border: 6px solid #1a1a1a;
    border-radius: 28px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

/* Guerrero: brasa dorada intensa · Calma: noche serena */
.lista-guerrero { background: radial-gradient(circle at 80% 15%, #5a3a08, #0d0904 72%); }
.lista-calma    { background: radial-gradient(circle at 80% 15%, #1d2433, #07080c 72%); }
.lista-coffee   { background: radial-gradient(circle at 80% 15%, #4a2e1c, #0c0805 72%); }  /* Coffee & Lofi: café tostado */
.lista-reproductor.lista-reproductor-yt { height: auto; aspect-ratio: 16 / 9; background: #000; }

.lista-cabecera h2 {
    margin: 14px 0 8px;
    font-family: 'Permanent Marker', cursive;
    font-weight: normal;
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.1;
    color: #f3d77a;
}

.lista-cita {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    font-style: italic;
    color: #f1e6c8;
}

.lista-cita span {
    font-style: normal;
    color: #f3d77a;
    white-space: nowrap;
}

.lista-reproductor {
    display: block;
    width: 100%;
    height: 352px;
    border: 0;
    border-radius: 14px;
    background: #121212;
}

.lista-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.boton-lista {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #111;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transform: rotate(-1.5deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.boton-lista:nth-child(even) { transform: rotate(1.5deg); }

.boton-lista:hover,
.boton-lista:focus-visible {
    background: #f3d77a;
    transform: rotate(0deg) scale(1.08) translateY(-3px);
}

.boton-lista svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.boton-lista svg .relleno { fill: currentColor; stroke: none; }

/* Botón aún sin enlace (YouTube muy pronto) */
.boton-lista.pronto {
    opacity: 0.55;
    cursor: default;
}

.boton-lista.pronto:hover,
.boton-lista.pronto:focus-visible {
    background: #fff;
    transform: rotate(1.5deg);
}

.nota-musica {
    margin: 0 0 40px;
    font-size: 14px;
    font-weight: bold;
    color: #1a1a1a;
    text-align: center;
}

@media (max-width: 520px) {
    .lista-musica { padding: 22px 16px 18px; }
}

/* ===== Tablón de noticias: banner bajo el menú (lo rellena noticias.js) ===== */
.noticias {
    width: 100%;
    max-width: 220px;
    display: grid;                 /* todas las tarjetas en el mismo hueco, una encima de otra */
}

.noticia {
    grid-area: 1 / 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 14px;
    color: #fff;
    text-decoration: none;
    border: 4px solid #fff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: rotate(-1.5deg);
    transition: opacity 0.7s ease, visibility 0.7s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.noticia.activa { opacity: 1; visibility: visible; }

.noticia:hover,
.noticia:focus-visible {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5), 0 0 0 3px #d4a72c;
}

.noticia-oro   { background: radial-gradient(circle at 80% 10%, #4a3510, #0d0904 75%); }
.noticia-noche { background: radial-gradient(circle at 80% 10%, #1d2433, #07080c 75%); }
.noticia-brasa { background: radial-gradient(circle at 80% 10%, #5a2a08, #0d0904 75%); }

/* Con foto: la foto de fondo, oscurecida para que se lea */
.noticia.con-foto {
    background: linear-gradient(rgba(8, 5, 1, 0.35), rgba(8, 5, 1, 0.9) 60%), var(--foto) center / cover;
}

.noticia .etiqueta {
    align-self: flex-start;
    font-size: 13px;
}

.noticia strong {
    font-family: 'Permanent Marker', cursive;
    font-weight: normal;
    font-size: 20px;
    line-height: 1.15;
    color: #f3d77a;
}

.noticia p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #f1e6c8;
}

.noticia-boton {
    align-self: flex-start;
    margin-top: 4px;
    padding: 4px 12px 3px;
    font-family: 'Permanent Marker', cursive;
    font-size: 14px;
    color: #111;
    background: #d4a72c;
    border-radius: 6px;
}

.noticias-puntos {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.noticias-puntos button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid #111;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.noticias-puntos button.activo {
    background: #111;
}

/* Pantallas bajitas: la columna hace scroll para que no se corte el banner */
.lateral { overflow-y: auto; }

/* Móvil: el banner va debajo del menú, a lo ancho */
@media (max-width: 760px) {
    .noticias {
        max-width: 420px;
    }
    .lateral { overflow: visible; }
}

/* ===== Pie: botones y número del pez con la letra graffiti (como la página de obras), colores de la web ===== */
.pie-redes a {
    font-family: 'Permanent Marker', cursive;
    font-weight: normal;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.pie .pez-num {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
}

/* ===== Galería y secciones: rejilla tipo mosaico (antes iba dentro de galeria.html) ===== */
.galeria-contenido { columns: 3 180px; column-gap: 22px; margin-bottom: 40px; }
.galeria-contenido.vacia { columns: auto; }
.galeria-item {
    position: relative; display: block; width: 100%; margin: 0 0 22px; padding: 0;
    break-inside: avoid; cursor: pointer; background: #111;
    border: 6px solid #1a1a1a; border-radius: 24px; overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.galeria-item img { display: block; width: 100%; height: auto; }
.galeria-item:hover, .galeria-item:focus-visible {
    transform: scale(1.03) translateY(-4px); outline: none;
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.5), 0 0 0 3px #d4a72c;
}
.galeria-play {
    position: absolute; right: 14px; bottom: 14px;
    width: 52px; height: 52px; display: grid; place-items: center; padding-left: 4px; box-sizing: border-box;
    font-size: 21px; color: #111; background: rgba(243, 215, 122, 0.92);
    border: 3px solid #fff; border-radius: 50%; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* Aviso «Muy pronto» cuando una rejilla está vacía */
.muy-pronto,
.muy-pronto-caja {
    margin: 0 0 40px;
    padding: 22px 26px;
    color: #f1e6c8;
    font-size: 17px;
    line-height: 1.5;
    background: rgba(13, 9, 4, 0.82);
    border: 3px dashed #d4a72c;
    border-radius: 20px;
}
.muy-pronto-caja p { margin: 12px 0 0; max-width: 640px; }

/* ===== Pestañas de la Galería: pegatinas como el menú ===== */
.pestanas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 30px;
}
.pestanas button {
    font-family: 'Permanent Marker', cursive;
    font-size: 19px;
    letter-spacing: 1px;
    color: #fff;
    background: #111;
    padding: 6px 18px 4px;
    border: 3px solid #fff;
    border-radius: 6px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transform: rotate(-1.5deg);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, background 0.2s ease;
}
.pestanas button:nth-child(even) { transform: rotate(1.5deg); }
.pestanas button:hover,
.pestanas button:focus-visible { color: #f3d77a; transform: rotate(0deg) scale(1.06); outline: none; }
.pestanas button[aria-selected="true"] { color: #111; background: #f3d77a; }

/* Fondos para descargar */
.rejilla-fondos { columns: 4 160px; }
.fondo-pieza { break-inside: avoid; margin: 0 0 26px; }
.fondo-pieza .galeria-item { margin-bottom: 10px; }
.fondo-pieza figcaption { color: #fff; font-size: 15px; line-height: 1.35; text-shadow: 0 1px 3px rgba(0,0,0,0.8); margin-bottom: 8px; }
.fondo-descargar {
    display: inline-block;
    font-family: 'Permanent Marker', cursive;
    font-size: 16px;
    color: #111;
    background: #f3d77a;
    padding: 5px 14px 3px;
    border: 3px solid #111;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.fondo-descargar:hover, .fondo-descargar:focus-visible { background: #fff; }
.fondo-contador { margin: 8px 0 0; color: #f6dd8a; font-size: 13px; line-height: 1.3; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }

/* ===== Fe y razón: cuatro tarjetas con su óleo (2 x 2) ===== */
.fyr-tarjetas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin-bottom: 44px;
}
@media (max-width: 760px) {
    .fyr-tarjetas { grid-template-columns: 1fr; }
}
.fyr-tarjeta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #f1e6c8;
    text-decoration: none;
    background: #0d0904;
    border: 6px solid #1a1a1a;
    border-radius: 28px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.fyr-tarjeta:hover, .fyr-tarjeta:focus-visible {
    transform: translateY(-6px) rotate(-0.6deg);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.5), 0 0 0 3px #d4a72c;
    outline: none;
}
/* La imagen: el banner de la sección, con fundido a negro hacia el texto */
.fyr-foto {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.fyr-foto::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--foto) var(--foco, center) center / cover no-repeat;
    transition: transform 0.6s ease;
}
.fyr-foto::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 9, 4, 0) 45%, rgba(13, 9, 4, 0.75) 80%, #0d0904 100%);
}
.fyr-tarjeta:hover .fyr-foto::before,
.fyr-tarjeta:focus-visible .fyr-foto::before { transform: scale(1.05); }
.fyr-foto .etiqueta {
    position: absolute;
    left: 20px;
    bottom: 14px;
    z-index: 1;
}
.fyr-cuerpo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 6px 22px 26px;
}
.fyr-tarjeta h2 {
    margin: 0;
    font-family: 'Permanent Marker', cursive;
    font-weight: normal;
    font-size: 28px;
    color: #f3d77a;
}
.fyr-tarjeta p { margin: 0; font-size: 16px; line-height: 1.5; }

/* Aviso «Pulsa para entrar →»: en el móvil no hay ratón que delate que la tarjeta se abre */
.fyr-cuerpo { flex: 1; }               /* el cuerpo ocupa todo el alto: el aviso queda abajo en todas */
.fyr-cuerpo::after {
    content: "Pulsa para entrar →";
    align-self: flex-start;
    margin-top: auto;
    padding: 6px 16px 4px;
    font-family: 'Permanent Marker', cursive;
    font-size: 15px;
    color: #111;
    background: #d4a72c;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(212, 167, 44, 0.35);
    transition: background 0.25s ease, transform 0.25s ease;
}
.fyr-tarjeta:hover .fyr-cuerpo::after,
.fyr-tarjeta:focus-visible .fyr-cuerpo::after {
    background: #f3d77a;
    transform: translateX(4px);
}
/* Pantallas táctiles: un latido suave para invitar a tocar */
@media (hover: none) {
    .fyr-cuerpo::after { animation: fyr-latido 2.4s ease-in-out infinite; }
    .fyr-tarjeta:active { transform: scale(0.98); }
}
@keyframes fyr-latido {
    0%, 100% { box-shadow: 0 4px 12px rgba(212, 167, 44, 0.35); }
    50%      { box-shadow: 0 4px 22px rgba(243, 215, 122, 0.8); }
}

@media (prefers-reduced-motion: reduce) {
    .fyr-foto::before { transition: none; }
    .fyr-cuerpo::after { animation: none; transition: none; }
}

/* Volver a Fe y razón y títulos de bloque */
.miga { margin: 0 0 16px; }
.miga a {
    font-family: 'Permanent Marker', cursive;
    font-size: 17px;
    color: #fff;
    background: #111;
    padding: 4px 14px 2px;
    border-radius: 6px;
    text-decoration: none;
}
.miga a:hover, .miga a:focus-visible { color: #f3d77a; }
.titulo-seccion {
    display: inline-block;
    margin: 0 0 20px;
    font-family: 'Permanent Marker', cursive;
    font-weight: normal;
    font-size: 28px;
    color: #fff;
    background: #111;
    padding: 4px 16px 2px;
    border-radius: 6px;
    transform: rotate(-1.5deg);
}

/* ===== Fe y razón: contenido de las secciones (sale de fe-y-razon.js) ===== */
.fr-contenido { margin-bottom: 20px; }
.fr-bloque { margin: 0 0 46px; }
.fr-texto { display: table; margin: -6px 0 18px; padding: 8px 14px; color: #f1e6c8; font-size: 16px; line-height: 1.5; background: rgba(13, 9, 4, 0.8); border-radius: 10px; max-width: 680px; }

.fr-intro {
    margin: 0 0 40px;
    padding: 28px 30px;
    color: #f1e6c8;
    background: rgba(13, 9, 4, 0.88);
    border-left: 8px solid #d4a72c;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.fr-intro h2 { margin: 0 0 10px; font-family: 'Permanent Marker', cursive; font-weight: normal; font-size: 26px; color: #f3d77a; }
.fr-intro p { margin: 0; font-size: 17px; line-height: 1.6; max-width: 680px; }

.fr-cita {
    margin: 0 0 44px;
    padding: 30px 34px;
    text-align: center;
    background: #111;
    border: 3px solid #f3d77a;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.fr-cita p { margin: 0 0 12px; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; color: #f3d77a; font-style: italic; }
.fr-cita cite { font-style: normal; font-size: 14px; letter-spacing: 1px; color: #f1e6c8; text-transform: uppercase; }

/* Filtros: pegatinas pequeñas */
.fr-filtros { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.fr-filtros button {
    font-family: 'Permanent Marker', cursive; font-size: 16px; color: #fff; background: #111;
    padding: 4px 14px 2px; border: 3px solid #fff; border-radius: 6px; cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.fr-filtros button:hover, .fr-filtros button:focus-visible { color: #f3d77a; outline: none; }
.fr-filtros button[aria-pressed="true"] { color: #111; background: #f3d77a; }

/* Fichas */
.fr-fichas { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.fr-ficha {
    display: flex; flex-direction: column; gap: 10px;
    padding: 22px 22px 20px;
    color: #f1e6c8;
    background: radial-gradient(circle at 80% 0%, #33240a, #0d0904 70%);
    border: 5px solid #1a1a1a;
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.fr-ficha[hidden] { display: none; }
.fr-ficha h3 { margin: 0; font-family: 'Permanent Marker', cursive; font-weight: normal; font-size: 21px; line-height: 1.2; color: #f3d77a; }
.fr-ficha > p { margin: 0; font-size: 15px; line-height: 1.55; }
.fr-cuando { align-self: flex-start; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #d4a72c; }
.fr-datos { margin: 2px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(212, 167, 44, 0.35); display: grid; gap: 6px; font-size: 13.5px; line-height: 1.4; }
.fr-datos div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.fr-datos dt { color: #d4a72c; }
.fr-datos dd { margin: 0; }
.fr-solidez {
    align-self: flex-start; margin-top: auto;
    font-size: 13px; color: #111; background: #f3d77a;
    padding: 3px 10px; border-radius: 4px;
}

/* Pasos numerados */
.fr-pasos { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.fr-pasos li {
    counter-increment: paso; position: relative;
    padding: 50px 22px 22px;
    color: #f1e6c8; background: rgba(13, 9, 4, 0.9);
    border: 5px solid #1a1a1a; border-radius: 22px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.fr-pasos li::before {
    content: counter(paso);
    position: absolute; top: -14px; left: 20px;
    width: 46px; height: 46px; display: grid; place-items: center;
    font-family: 'Permanent Marker', cursive; font-size: 24px; color: #111;
    background: #f3d77a; border: 3px solid #111; border-radius: 50%;
}
.fr-pasos h3 { margin: 0 0 8px; font-family: 'Permanent Marker', cursive; font-weight: normal; font-size: 20px; color: #f3d77a; }
.fr-pasos p { margin: 0; font-size: 15px; line-height: 1.55; }

/* Listas y caja de aviso */
.fr-lista {
    margin: 0; padding: 22px 26px 22px 46px;
    color: #f1e6c8; background: rgba(13, 9, 4, 0.88);
    border-radius: 20px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    font-size: 16px; line-height: 1.55;
}
.fr-lista li { margin: 0 0 8px; }
.fr-lista li:last-child { margin-bottom: 0; }
.fr-lista li::marker { color: #f3d77a; }
.fr-ojo .fr-lista { border: 3px dashed #d4a72c; }
.fr-ojo .fr-lista li::marker { content: '✕  '; color: #e0795a; }

/* Preguntas que se abren */
.fr-preguntas { display: grid; gap: 14px; }
.fr-preguntas details {
    color: #f1e6c8; background: rgba(13, 9, 4, 0.9);
    border: 4px solid #1a1a1a; border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.fr-preguntas summary {
    cursor: pointer; list-style: none;
    padding: 18px 54px 18px 22px; position: relative;
    font-family: 'Permanent Marker', cursive; font-size: 19px; color: #f3d77a;
}
.fr-preguntas summary::-webkit-details-marker { display: none; }
.fr-preguntas summary::after {
    content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-family: sans-serif; font-size: 26px; color: #f3d77a; transition: transform 0.25s ease;
}
.fr-preguntas details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.fr-preguntas summary:focus-visible { outline: 3px solid #d4a72c; outline-offset: -3px; }
.fr-preguntas details p { margin: 0; padding: 0 22px 20px; font-size: 16px; line-height: 1.6; max-width: 700px; }

@media (max-width: 520px) {
    .fr-intro, .fr-cita { padding: 22px 20px; }
    .fr-datos div { grid-template-columns: 80px 1fr; }
}

/* Nota pequeña al pie del chat de Aura (aviso de IA) */
.aura-nota {
    margin: 0;
    padding: 0 14px 12px;
    font-size: 11.5px;
    line-height: 1.4;
    color: rgba(255, 244, 214, 0.6);
    text-align: center;
}

/* Páginas legales (aviso legal, privacidad, créditos) */
.legal {
    padding: 36px 48px 40px;
    color: #f5ecd8;
    font-size: 17px;
    line-height: 1.65;
    background: rgba(13, 9, 4, 0.92);
    border: 6px solid #1a1a1a;
    border-radius: 28px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
    margin-bottom: 40px;
}
.legal h2 {
    margin: 30px 0 8px;
    font-family: 'Permanent Marker', cursive;
    font-size: 24px;
    font-weight: normal;
    color: #f3d77a;
}
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal a { color: #f3d77a; }
.legal-fecha { margin-top: 30px; font-size: 14px; color: rgba(245, 236, 216, 0.65); }
@media (max-width: 700px) { .legal { padding: 26px 22px 30px; font-size: 16px; } }

/* Enlaces legales del pie */
.pie-legal { margin: 10px 0 0; font-size: 13px; text-align: center; color: rgba(255, 255, 255, 0.7); }
.pie-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pie-legal a:hover, .pie-legal a:focus-visible { color: #f3d77a; }
.aura-nota a { color: inherit; text-decoration: underline; }

/* Música: caja «Escuchar aquí» antes de cargar Spotify / YouTube */
.lista-cargar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 352px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    background: radial-gradient(circle at 50% 40%, #3a2a0c, #121212 75%);
    border-radius: 14px;
}
.lista-cargar-yt { height: auto; aspect-ratio: 16 / 9; }
.lista-cargar button {
    padding: 12px 26px 9px;
    font-family: 'Permanent Marker', cursive;
    font-size: 22px;
    color: #111;
    background: #f3d77a;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}
.lista-cargar button:hover, .lista-cargar button:focus-visible { transform: scale(1.05); }
.lista-cargar p { margin: 0; max-width: 34ch; font-size: 13px; line-height: 1.45; color: rgba(255, 244, 214, 0.7); }
.lista-cargar a { color: inherit; }
.lista-reproductor[hidden] { display: none; }

/* Con carátula: la portada de la lista, cuadrada, con el botón encima */
.lista-cargar.con-portada { height: auto; padding: 0 0 16px; justify-content: flex-start; background: #121212; overflow: hidden; }
.lista-cargar-portada {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.18);
}
.lista-cargar.con-portada p { padding: 0 14px; }

/* Banners de Fe y razón: imagen al óleo a la derecha que se funde en negro hacia el texto */
.pagina-portada.con-banner { position: relative; overflow: hidden; }
.pagina-portada.con-banner::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 58%;
    background: var(--banner) center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 30%, #000 60%);
            mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 30%, #000 60%);
    pointer-events: none;
}
.pagina-portada.con-banner > * { position: relative; z-index: 1; }
.pagina-portada.con-banner p { max-width: 52%; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
@media (max-width: 900px) {
    .pagina-portada.con-banner::before {
        width: 100%;
        opacity: 0.35;
        -webkit-mask-image: none; mask-image: none;
    }
    .pagina-portada.con-banner p { max-width: none; }
}
/* La caja de YouTube con carátula no debe quedarse en 16:9 (se cortaba la portada) */
.lista-cargar.con-portada { aspect-ratio: auto; }

/* Música: las tres tarjetas alineadas (cabecera, carátula y botones a la misma altura) */
@supports (grid-template-rows: subgrid) {
    .lista-musica {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 4;
        align-content: start;
        row-gap: 18px;
    }
    .lista-musica > .lista-botones { align-self: start; }
}
/* La carátula se ve entera; el botón va debajo, sin tapar nada */
.lista-cargar.con-portada { gap: 16px; }
.lista-cargar-portada { box-shadow: none; }

/* ===== Aura viva: su habitación arriba del chat (aura-viva.js) ===== */
.aura.aura-viva {
    /* el icono de Jesús y Juan ocupa todo el panel (como antes), más oscuro, y al entrar se aleja */
    background: #0d0b10;
    isolation: isolate;
}
.aura.aura-viva::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(rgba(12, 10, 14, 0.80), rgba(12, 10, 14, 0.70) 40%, rgba(12, 10, 14, 0.88)),
        #111 url("galeria/aura_fondo.jpg") center / cover no-repeat;
    transform: scale(var(--z, 1)) translate(var(--px, 0), var(--py, 0));
    transform-origin: 50% 40%;
}
.aura.aura-viva.av-panel-dormida::before { filter: brightness(.75); transition: filter 1.2s; }
@media (max-width: 1100px) { .aura.aura-viva { position: relative; } }
.av-hab {
    position: relative;
    flex: none;
    height: 150px;
    overflow: hidden;
    background: transparent;   /* se ve el cuadro del panel por detrás */
}
.av-lejos-borroso, .av-lejos, .av-velo { display: none; }
.av-hab canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.av-lejos-borroso {
    position: absolute; inset: -20px;
    background: url("galeria/aura_fondo.jpg") center 42% / cover no-repeat;
    filter: blur(14px) brightness(.28) saturate(.8);
}
.av-lejos {
    position: absolute; left: 50%; top: 50%;
    width: 210px; height: 262px; margin: -136px 0 0 -105px;
    background: url("galeria/aura_fondo.jpg") center / contain no-repeat;
    filter: brightness(.42) saturate(.9);
    -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
            mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
    transform: scale(var(--z, 1)) translate(var(--px, 0), var(--py, 0));
    transition: filter 1.2s;
}
.av-hab-dormida .av-lejos { filter: brightness(.28) saturate(.8); }
.av-velo {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(300px 150px at 50% 45%, transparent 30%, rgba(8, 7, 11, .75) 100%),
                linear-gradient(transparent 55%, rgba(8, 7, 11, .85));
}
.av-aura { position: absolute; left: 0; top: 0; width: 96px; height: 96px; will-change: transform; cursor: pointer; }
.av-cuerpo { position: absolute; inset: 0; transform-origin: 50% 60%; }
.av-cuerpo img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.av-ojos, .av-boca { opacity: 0; }
.av-sombra {
    position: absolute; left: 0; top: 0; width: 60px; height: 10px; border-radius: 50%;
    background: radial-gradient(rgba(243, 215, 122, .35), transparent 70%); pointer-events: none;
}
.av-orbita { position: absolute; inset: -12px; pointer-events: none; opacity: 0; transition: opacity .4s; }
.av-orbita i {
    position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%;
    background: #f3d77a; box-shadow: 0 0 8px #f3d77a; animation: av-orbita 1.6s linear infinite;
}
.av-orbita i:nth-child(2) { animation-delay: -.4s; width: 4px; height: 4px; }
.av-orbita i:nth-child(3) { animation-delay: -.8s; }
.av-orbita i:nth-child(4) { animation-delay: -1.2s; width: 4px; height: 4px; }
@keyframes av-orbita {
    from { transform: rotate(0) translateX(58px) scaleY(.5); }
    to   { transform: rotate(360deg) translateX(58px) scaleY(.5); }
}
.av-pensando .av-orbita { opacity: 1; }
.av-zzz { position: absolute; right: -6px; top: 4px; pointer-events: none; opacity: 0; font-family: Georgia, serif; color: #f3d77a; font-size: 15px; }
.av-zzz span { position: absolute; opacity: 0; animation: av-zz 3s ease-in infinite; }
.av-zzz span:nth-child(2) { animation-delay: 1s; font-size: 12px; }
.av-zzz span:nth-child(3) { animation-delay: 2s; font-size: 10px; }
@keyframes av-zz { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(18px, -34px); } }
.av-dormida .av-zzz { opacity: 1; }
@media (max-height: 700px) and (min-width: 1101px) { .av-hab { height: 120px; } .av-aura { width: 80px; height: 80px; } }
@media (max-width: 1100px) { .aura.aura-viva { height: 640px; } }
@media (prefers-reduced-motion: reduce) { .av-orbita i, .av-zzz span { animation: none; } }
/* Los mensajes empiezan abajo, junto a la caja de escribir: el cuadro queda libre arriba */
.aura.aura-viva .aura-mensajes > :first-child { margin-top: auto; }

/* ===== Móvil y tablet: Aura, tablón y pie al final, en ese orden (lo coloca orden-movil.js) ===== */
.aura.aura-abajo {
    width: min(100% - 32px, 1036px);   /* mismo ancho que el pie */
    margin: 20px auto 0;
}
.noticias.noticias-abajo {
    margin: 28px auto 0;               /* centrado entre Aura y el pie */
    width: calc(100% - 32px);
}

/* ===== Móvil y tablet: que la conversación tenga sitio de verdad =====
   Antes el panel medía 640 px fijos y la cabecera + la habitación de Aura se lo comían.
   Ahora el panel crece lo que haga falta y los mensajes tienen su propio hueco con scroll. */
@media (max-width: 1100px) {
    .aura.aura-viva { height: auto; }
    .aura.aura-viva .aura-mensajes {
        flex: none;
        height: min(55vh, 440px);       /* hueco fijo para charlar; lo que sobra hace scroll dentro */
        min-height: 240px;
    }
}
@media (max-width: 760px) {
    .aura .aura-cabecera { padding: 16px 18px 14px; }
    .aura .aura-cabecera h2 { font-size: 22px; margin: 10px 0 6px; }
    .aura .aura-cabecera p { font-size: 14px; }
    .av-hab { height: 104px; }          /* la habitación de Aura, más bajita */
    .av-aura { width: 72px; height: 72px; }
    .aura .aura-mensajes { padding: 14px; }
}

/* ===== Chat: Aura habla en sus colores, sin caja, y el icono se ve siempre detrás =====
   Aura: letra dorada (el oro de la gotita) con un brillo suave y una rayita a la izquierda.
   Tú: burbuja de cristal oscuro con letra blanca, para distinguirlo sin tapar el cuadro.
   Los avisos (.msg-aviso) se quedan como estaban. */
.msg-aura:not(.msg-aviso) {
    max-width: 92%;
    padding: 2px 0 2px 12px;
    color: #f6dd8a;
    background: none;
    border-radius: 0;
    border-left: 2px solid rgba(243, 215, 122, 0.7);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.8), 0 0 18px rgba(212, 167, 44, 0.25);
}
.msg-aura:not(.msg-aviso) strong { color: #fff3c4; }
.msg-aura:not(.msg-aviso) a { color: #fff3c4; }
.msg-aura.escribiendo .puntos i {
    background: #f3d77a;
    box-shadow: 0 0 6px rgba(243, 215, 122, 0.8);
}
.msg-tu {
    color: #fff;
    background: rgba(10, 8, 14, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(3px);
            backdrop-filter: blur(3px);
}

/* Caja de intro con foto (p. ej. «Lo que piensa Aura» en Fe de campeones) */
.fr-intro.con-foto { display: flex; align-items: center; gap: 26px; }
.fr-intro-foto {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(243, 215, 122, 0.45));
    animation: aura-flota 5s ease-in-out infinite;
}
@keyframes aura-flota { 50% { transform: translateY(-8px); } }
@media (max-width: 600px) {
    .fr-intro.con-foto { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .fr-intro-foto { animation: none; }
}

/* Vídeo dentro de una ficha (p. ej. Topuria en Fe de campeones) */
.fr-video {
    position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 420px;
    padding: 0; overflow: hidden; cursor: pointer; background: #000;
    border: 2px solid rgba(212, 167, 44, 0.5); border-radius: 14px;
}
.fr-video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s; }
.fr-video:hover img, .fr-video:focus-visible img { opacity: 1; }
.fr-video span {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 58px; height: 58px; display: grid; place-items: center; padding-left: 4px;
    font-size: 24px; color: #111; background: #f3d77a; border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.fr-video em {
    position: absolute; left: 0; right: 0; bottom: 10px; font-style: normal; font-size: 14px;
    color: #f1e6c8; text-shadow: 0 2px 6px #000;
}
.fr-video-marco { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 420px; border: 0; border-radius: 14px; background: #000; }
.fr-video.horizontal, .fr-video-marco.horizontal { aspect-ratio: 16 / 9; max-height: none; }

/* Foto de la persona en una ficha (Fe de campeones). Fotos libres de Wikimedia Commons */
.fr-foto { margin: 0 0 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fr-foto img {
    width: 120px; height: 120px; object-fit: cover; object-position: 50% 25%;
    border-radius: 50%; border: 3px solid #d4a72c; background: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(13, 9, 4, 0.9), 0 8px 20px rgba(0, 0, 0, 0.5);
}
.fr-foto figcaption { font-size: 11px; line-height: 1.3; text-align: center; opacity: 0.7; }
.fr-foto figcaption a { color: inherit; text-decoration: none; }
.fr-foto figcaption a:hover, .fr-foto figcaption a:focus-visible { text-decoration: underline; opacity: 1; }
.fr-foto.ancha { align-items: stretch; }
.fr-foto.ancha img { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 14px; object-position: 50% 50%; }


/* ===== ¡Fiesta! Bienvenida al padre Francisco (aura-chat.js · fiesta) ===== */
.fiesta-lienzo { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9998; }
.fiesta-flash {
    position: fixed; inset: 0; pointer-events: none; z-index: 9997;
    background: radial-gradient(circle at 50% 40%, rgba(255, 244, 200, .85), rgba(212, 167, 44, .35) 45%, transparent 75%);
    animation: fiesta-flash 1.5s ease-out forwards;
}
@keyframes fiesta-flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.fiesta-cartel {
    position: fixed; left: 50%; top: 22%; z-index: 9999; pointer-events: none;
    transform: translate(-50%, -50%) scale(.3); opacity: 0;
    display: flex; align-items: center; gap: .6em; padding: .7em 1.3em; max-width: calc(100vw - 32px);
    font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.3rem, 4.6vw, 2.6rem); line-height: 1.15; text-align: center;
    color: #fff4c8; background: rgba(12, 10, 14, .82); border: 2px solid #d4a72c; border-radius: 18px;
    box-shadow: 0 0 40px rgba(243, 215, 122, .7), inset 0 0 24px rgba(212, 167, 44, .35);
    text-shadow: 0 0 14px rgba(243, 215, 122, .9);
    animation: fiesta-entra .8s cubic-bezier(.2, 1.6, .4, 1) forwards;
    transition: opacity .9s, transform .9s;
}
.fiesta-cartel.fuera { opacity: 0 !important; transform: translate(-50%, -80%) scale(.9) !important; }
.fiesta-estrella { color: #f3d77a; animation: fiesta-gira 2s linear infinite; display: inline-block; }
@keyframes fiesta-entra { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes fiesta-gira { to { transform: rotate(360deg); } }
.aura.fiesta-panel { animation: fiesta-panel 1.2s ease-in-out 5; }
@keyframes fiesta-panel {
    0%, 100% { box-shadow: 0 0 0 rgba(243, 215, 122, 0); }
    50% { box-shadow: 0 0 46px rgba(243, 215, 122, .85), inset 0 0 30px rgba(243, 215, 122, .35); }
}
.av-fiesta .av-orbita { opacity: 1; }
.av-fiesta .av-orbita i { animation-duration: .7s; }
@media (prefers-reduced-motion: reduce) { .fiesta-cartel, .fiesta-estrella, .aura.fiesta-panel { animation: none; opacity: 1; transform: translate(-50%, -50%); } }
@media (max-width: 600px) {
    .fiesta-cartel { width: calc(100vw - 32px); justify-content: center; gap: .4em; padding: .6em .8em; font-size: 1.45rem; top: 18%; }
}

/* ===== Pie: llamada a suscribirse y seguirnos (encima de los botones de redes) ===== */
.pie-llamada {
    max-width: 640px;
    margin: 0 auto 20px;
    padding: 16px 0 0;
    border-top: 1px solid rgba(243, 215, 122, 0.35);
}
.pie-llamada-titulo {
    margin: 0 0 6px;
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(18px, 2.2vw, 22px);
    color: #f3d77a;
}
.pie-llamada-texto {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

/* ===== Música: videoclip destacado encima de las listas (musica.html) ===== */
.lista-videoclip {
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
    background: radial-gradient(circle at 75% 10%, #6b4a0c, #0d0904 70%);
}
.lista-videoclip .lista-cargar-portada { aspect-ratio: 16 / 9; flex: none; }
.lista-videoclip .lista-cargar { flex: none; }
@media (min-width: 1000px) {
    .lista-videoclip {
        display: grid;
        grid-template-columns: minmax(240px, 1fr) 2fr;
        grid-template-rows: auto auto;
        column-gap: 28px;
        align-items: start;
    }
    .lista-videoclip > .lista-cabecera { grid-column: 1; grid-row: 1; }
    .lista-videoclip > .lista-botones  { grid-column: 1; grid-row: 2; }
    .lista-videoclip > .lista-cargar,
    .lista-videoclip > .lista-reproductor { grid-column: 2; grid-row: 1 / span 2; }
}


/* ===== Botón de suscripción al canal: arriba de la portada (04/11/2026) ===== */
.suscribir {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}
.boton-suscribir {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    box-sizing: border-box;
    padding: 7px 22px 5px;
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    color: #111;
    background: #f3d77a;
    border: 3px solid #111;
    border-radius: 6px;
    text-decoration: none;
    transform: rotate(-2deg);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}
.boton-suscribir svg {
    flex: none;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
.boton-suscribir svg path { fill: currentColor; stroke: none; }
.boton-suscribir:hover,
.boton-suscribir:focus-visible {
    background: #fff;
    transform: rotate(0deg) scale(1.06);
}
.boton-suscribir:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .boton-suscribir { transition: none; }
}
