/* =========================================================
   Mural Naranja · 16 Días de Activismo 2026 · AGSCh
   ========================================================= */
:root {
    --rojo: #d90203;
    --naranja: #ff7009;
    --naranja-2: #f47a16;
    --naranja-claro: #ff9d44;
    --amarillo: #ffb002;
    --granate: #600401;
    --azul: #001558;          /* institucional AGSCh */
    --crema: #fff7ef;
    --texto: #3a0a05;
    --radio: 18px;
    --tesela: clamp(72px, 8.5vw, 128px);
    --sombra: 0 30px 80px -20px rgba(96, 4, 1, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 500;
    color: var(--texto);
    background: var(--granate);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rojo); }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font: 600 .95rem/1 "Poppins", sans-serif;
    padding: .85em 1.35em;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }
.btn-naranja {
    color: #fff;
    background: linear-gradient(135deg, var(--naranja) 0%, var(--rojo) 100%);
    box-shadow: 0 10px 24px -8px rgba(217, 2, 3, .6);
}
.btn-naranja:hover { box-shadow: 0 14px 30px -8px rgba(217, 2, 3, .75); }
.btn-claro { color: var(--granate); background: rgba(255, 255, 255, .92); }
.btn-linea { color: var(--rojo); background: transparent; border-color: currentColor; }
.btn-linea:hover { background: var(--rojo); color: #fff; border-color: var(--rojo); }
.btn-ancho { width: 100%; padding-block: 1.05em; font-size: 1rem; }

/* ---------- Barra superior ---------- */
.barra {
    position: fixed; inset: 0 0 auto; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 10px clamp(12px, 2.5vw, 32px);
    border-radius: 0;
    background: rgba(96, 4, 1, .72);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .5);
}
.barra-marca { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-size: .9rem; line-height: 1.1; }
.barra-marca img { width: 44px; height: 44px; background: #fff; border-radius: 50%; }
.barra-marca strong { font-weight: 700; }
.barra-acciones { display: flex; gap: .5rem; }
.barra .btn { padding: .75em 1.15em; }

/* ---------- Mural ---------- */
.mural {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--tesela), 1fr));
    grid-auto-rows: calc(var(--tesela) / 2);
    grid-auto-flow: dense;
    gap: 4px;
    padding: 68px 4px 4px; /* espacio para la barra superior */
    min-height: 100vh;
    min-height: 100svh;
    background: var(--naranja);
    overflow: hidden;
}

.tesela {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    background: var(--granate);
    cursor: pointer;
    isolation: isolate;
    opacity: 0;
    animation: aparecer .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms) forwards;
}
@keyframes aparecer { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

.tesela img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.15) brightness(1.05);
    transition: filter .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
/* Duotono: luces naranjas (multiply) + sombras granate (screen) */
.tesela::before,
.tesela::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    pointer-events: none;
    transition: opacity .5s ease;
}
.tesela::before { background: linear-gradient(160deg, var(--amarillo) 0%, var(--naranja) 45%, var(--rojo) 100%); mix-blend-mode: multiply; }
.tesela::after  { background: var(--granate); mix-blend-mode: screen; opacity: .85; }

.tesela figcaption {
    position: absolute; inset: auto 0 0; z-index: 2;
    display: flex; flex-direction: column;
    padding: 1.6rem .6rem .55rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(30, 4, 0, .85));
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
    line-height: 1.2;
}
.tesela-nombre { font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tesela-grupo { font-size: .7rem; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tesela:hover,
.tesela:focus-visible,
.tesela.activa { z-index: 3; box-shadow: 0 0 0 3px var(--amarillo), 0 18px 40px -10px rgba(0, 0, 0, .6); outline: none; }
.tesela:hover img,
.tesela:focus-visible img,
.tesela.activa img { filter: none; transform: scale(1.07); }
.tesela:hover::before, .tesela:hover::after,
.tesela:focus-visible::before, .tesela:focus-visible::after,
.tesela.activa::before, .tesela.activa::after { opacity: 0; }
.tesela:hover figcaption,
.tesela:focus-visible figcaption,
.tesela.activa figcaption { transform: none; }

/* Destello: una foto aleatoria muestra su color por un instante */
.tesela.destello img { filter: grayscale(.2); }
.tesela.destello::before, .tesela.destello::after { opacity: .15; }

.tesela-vacia {
    cursor: default;
    background: linear-gradient(160deg, var(--naranja-claro), var(--naranja) 55%, var(--naranja-2));
    opacity: 0;
}
.tesela-vacia:nth-child(3n)  { background: linear-gradient(160deg, var(--amarillo), var(--naranja)); }
.tesela-vacia:nth-child(5n)  { background: linear-gradient(160deg, var(--naranja), var(--rojo)); }
.tesela-vacia:nth-child(7n)  { background: var(--granate); }
.tesela-vacia::before, .tesela-vacia::after { display: none; }
.tesela-vacia { animation-name: aparecer-vacia; }
@keyframes aparecer-vacia { from { opacity: 0; transform: scale(.85); } to { opacity: .9; transform: none; } }

/* ---------- Tarjeta título dentro del mural ---------- */
.mural-titulo {
    grid-column: 2 / span 5;
    grid-row: 3 / span 8;
    z-index: 5;
    display: flex; flex-direction: column; justify-content: center;
    gap: .55rem;
    padding: clamp(1.2rem, 2.4vw, 2.2rem);
    border-radius: var(--radio);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(255, 176, 2, .22), transparent 60%),
        #fff;
    box-shadow: var(--sombra);
    animation: subir .8s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.mural-logo { width: min(100%, 340px); height: auto; margin-bottom: .3rem; }
.mural-titulo h1 {
    margin: 0;
    font-weight: 900;
    font-size: clamp(1.7rem, 3.2vw, 2.9rem);
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--rojo);
    text-transform: uppercase;
}
.mural-titulo p { margin: 0; font-size: clamp(.88rem, 1.05vw, 1rem); line-height: 1.5; color: var(--texto); }
.mural-titulo-acciones { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.mural-contador { font-size: .82rem !important; color: #7a3a2a !important; }
.mural-contador strong { color: var(--rojo); font-weight: 800; }
.hashtag { font-weight: 700; color: var(--naranja); }

/* ---------- Pie institucional ---------- */
.pie {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: 1.4rem clamp(1rem, 4vw, 3rem);
    background: var(--azul);
    color: #dfe4ff;
    font-size: .85rem;
    border-top: 6px solid;
    border-image: linear-gradient(90deg, var(--amarillo), var(--naranja), var(--rojo)) 1;
}
.pie img { width: 56px; height: 56px; background: #fff; border-radius: 50%; }
.pie > div:not(.redes) { display: flex; flex-direction: column; flex: 1; min-width: 220px; }
.pie strong { color: #fff; font-weight: 700; font-size: .95rem; }
.pie a { color: var(--amarillo); font-weight: 600; }

/* ---------- Paneles (dialog) ---------- */
.panel {
    width: min(560px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: var(--crema);
    color: var(--texto);
    box-shadow: var(--sombra);
    overflow: auto;
    overscroll-behavior: contain;
}
.panel[open] { animation: panel-in .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
.panel::backdrop { background: rgba(40, 4, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.panel-cabecera {
    position: sticky; top: 0; z-index: 2;
    display: flex; align-items: center; gap: .9rem;
    padding: 1.1rem 1.2rem;
    color: #fff;
    background: var(--naranja);
}
.panel-cabecera img { width: 58px; height: 58px; filter: drop-shadow(0 4px 10px rgba(96, 4, 1, .35)); }
.panel-cabecera div { flex: 1; }
.panel-sup { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.panel-cabecera h2 { margin: 0; font-weight: 900; font-size: 1.45rem; line-height: 1.1; }
.panel-cerrar {
    width: 40px; height: 40px; flex: none;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    color: #fff; font-size: 1.6rem; line-height: 1;
    cursor: pointer; transition: background .2s, transform .2s;
}
.panel-cerrar:hover { background: rgba(255, 255, 255, .4); transform: rotate(90deg); }
.panel-cuerpo { padding: 1.4rem 1.4rem 1.6rem; }
.panel-cuerpo p { line-height: 1.6; margin: 0 0 .9rem; font-size: .95rem; }
.panel-cuerpo h3 { margin: 1.4rem 0 .7rem; font-size: 1.05rem; font-weight: 700; color: var(--naranja-2); }

.fechas {
    display: flex; align-items: center; gap: .8rem;
    margin-bottom: 1.2rem; padding: 1rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px -10px rgba(96, 4, 1, .3);
}
.fechas div { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.fechas strong { font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--rojo); }
.fechas span { font-size: .72rem; line-height: 1.3; color: #7a3a2a; }
.fechas i { width: 38px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--amarillo), var(--rojo)); flex: none; }

.lista-acciones { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.lista-acciones li {
    padding: .8rem 1rem .8rem 1.1rem;
    border-left: 4px solid var(--naranja);
    border-radius: 0 12px 12px 0;
    background: #fff;
    font-size: .88rem; line-height: 1.5;
}
.lista-acciones b { display: block; font-weight: 700; color: var(--granate); }

.panel-enlaces { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 1rem; }
.contacto, .nota { font-size: .82rem !important; color: #7a3a2a; text-align: center; }
.contacto a, .nota a { font-weight: 600; word-break: break-all; }

/* ---------- Formulario ---------- */
#form-foto { display: grid; gap: 1rem; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.zona-foto {
    position: relative;
    display: grid; place-items: center;
    min-height: 210px;
    border: 2px dashed var(--naranja-claro);
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s, background .2s;
}
.zona-foto:hover, .zona-foto.arrastrando { border-color: var(--rojo); background: #fff2e6; }
.zona-foto input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.zona-vacia { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.5rem; text-align: center; color: var(--granate); pointer-events: none; }
.zona-vacia svg { width: 44px; height: 44px; color: var(--naranja); stroke-width: 1.6; }
.zona-vacia small { color: #8a5a4a; font-size: .78rem; }
.zona-preview { width: 100%; max-height: 320px; object-fit: contain; background: #fff; pointer-events: none; }
.zona-foto.con-foto { border-style: solid; border-color: var(--naranja); }
.zona-foto.con-foto .zona-vacia { display: none; }

.campo { display: grid; gap: .35rem; }
.campo span { font-size: .85rem; font-weight: 600; color: var(--granate); }
.campo em { color: var(--rojo); font-style: normal; }
.campo small { font-weight: 500; color: #8a5a4a; }
.campo input {
    width: 100%;
    padding: .85rem 1rem;
    font: 500 1rem "Poppins", sans-serif;
    color: var(--texto);
    border: 2px solid #f2d7c4;
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.campo input:focus { outline: none; border-color: var(--naranja); box-shadow: 0 0 0 4px rgba(255, 112, 9, .18); }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .8rem; line-height: 1.45; color: #5a2a1a; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rojo); flex: none; }

.aviso { padding: .9rem 1rem; border-radius: 12px; font-size: .9rem; line-height: 1.45; }
.aviso-error { background: #ffe4e0; color: #8a0a02; border: 1px solid #ffc2b8; }
.aviso-ok { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2rem 1rem; text-align: center; background: #fff; }
.aviso-ok strong { font-size: 1.35rem; font-weight: 900; color: var(--rojo); }
.aviso-ok::before {
    content: ""; width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--amarillo), var(--naranja)) center/100% no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.4 14.2-4.3-4.3 1.4-1.4 2.9 2.9 6-6 1.4 1.4-7.4 7.4Z'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.4 14.2-4.3-4.3 1.4-1.4 2.9 2.9 6-6 1.4 1.4-7.4 7.4Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
[hidden] { display: none !important; }

.btn-cargando { display: none; width: 18px; height: 18px; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: girar .7s linear infinite; }
.enviando .btn-cargando { display: inline-block; }
.enviando { pointer-events: none; opacity: .85; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .mural-titulo { grid-column: 1 / -1; grid-row: 3 / span 11; }
    .solo-ancho { display: none; }
}
@media (max-width: 560px) {
    :root { --tesela: 22vw; }
    .barra { padding: 8px 10px; }
    .barra-marca span { display: none; }
    .barra .btn { padding: .7em .95em; font-size: .85rem; }
    .mural-titulo { grid-row: 3 / span 11; }
    .mural-logo { width: min(100%, 260px); }
    .fechas { flex-direction: column; align-items: stretch; text-align: center; }
    .fechas i { width: 4px; height: 22px; margin: 0 auto; }
    .panel { border-radius: 20px; }
    .panel-cuerpo { padding: 1.1rem; }
}

@media (hover: none) {
    .tesela:hover img { filter: grayscale(1) contrast(1.15) brightness(1.05); transform: none; }
    .tesela:hover::before { opacity: 1; }
    .tesela:hover::after { opacity: .85; }
    .tesela:hover figcaption { transform: translateY(100%); }
    .tesela:hover { box-shadow: none; }
    .tesela.activa img { filter: none; transform: scale(1.07); }
    .tesela.activa::before, .tesela.activa::after { opacity: 0; }
    .tesela.activa figcaption { transform: none; }
    .tesela.activa { box-shadow: 0 0 0 3px var(--amarillo); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ---------- Campos adicionales del formulario ---------- */
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.campo select {
    width: 100%;
    padding: .85rem 2.4rem .85rem 1rem;
    font: 500 .95rem "Poppins", sans-serif;
    color: var(--texto);
    border: 2px solid #f2d7c4;
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d90203' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 18px;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .2s, box-shadow .2s;
}
.campo select:focus { outline: none; border-color: var(--naranja); box-shadow: 0 0 0 4px rgba(255, 112, 9, .18); }
.campo select:disabled { background-color: #faf3ee; color: #a07a6a; }
.campo input.invalido, .campo select.invalido { border-color: var(--rojo); }
.campo input.valido { border-color: #2fa86a; }
.declaraciones {
    display: grid; gap: .8rem;
    margin: 0; padding: 1rem;
    border: 0; border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 0 0 2px #f6e2d4;
}
.declaraciones legend {
    padding: 0 .4rem; margin-left: -.4rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--naranja-2);
    float: left; width: 100%;
}
.declaraciones strong { color: var(--granate); font-weight: 700; }
@media (max-width: 560px) { .fila { grid-template-columns: 1fr; } }

/* ---------- Visor de fotos ---------- */
.visor {
    width: 100vw; height: 100dvh; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0;
    background: transparent;
    overflow: hidden;
}
.visor[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 4.5rem clamp(.5rem, 3vw, 2rem) 2rem; }
.visor::backdrop { background: rgba(35, 3, 0, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.visor[open]::backdrop { animation: fundido .3s ease; }
@keyframes fundido { from { opacity: 0; } }

.visor-cuadro {
    grid-column: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; min-height: 0; margin: 0;
}
.visor-img { position: relative; display: flex; justify-content: center; align-items: center; flex: 1; min-height: 0; width: 100%; }
.visor-img img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    border: 6px solid #fff;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
    background: #fff;
}
.visor-img img.entra { animation: visor-entra .35s cubic-bezier(.2, .7, .2, 1); }
.visor[data-dir="sig"] .visor-img img.entra { animation-name: visor-sig; }
.visor[data-dir="ant"] .visor-img img.entra { animation-name: visor-ant; }
@keyframes visor-entra { from { opacity: 0; transform: scale(.94); } }
@keyframes visor-sig { from { opacity: 0; transform: translateX(40px); } }
@keyframes visor-ant { from { opacity: 0; transform: translateX(-40px); } }

.visor-cargando {
    position: absolute; top: 14px; right: 14px;
    width: 22px; height: 22px;
    border: 3px solid rgba(255, 255, 255, .35); border-top-color: var(--amarillo); border-radius: 50%;
    animation: girar .7s linear infinite;
    opacity: 0; transition: opacity .2s;
}
.visor.cargando .visor-cargando { opacity: 1; }

.visor figcaption {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    width: min(100%, 560px);
    margin-top: 1rem; padding: .8rem 1.2rem;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--naranja), var(--rojo));
    box-shadow: 0 12px 30px -12px rgba(217, 2, 3, .7);
}
.visor figcaption div { display: flex; flex-direction: column; min-width: 0; }
.visor figcaption strong { font-size: 1.1rem; font-weight: 800; line-height: 1.2; }
.visor figcaption span { font-size: .8rem; opacity: .9; }
.visor figcaption small { flex: none; font-size: .78rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .2); }

.visor-nav, .visor-cerrar {
    display: grid; place-items: center;
    border: 0; cursor: pointer; color: #fff;
    background: rgba(255, 255, 255, .12);
    transition: background .2s, transform .2s;
}
.visor-nav { width: 54px; height: 54px; border-radius: 50%; }
.visor-nav svg { width: 26px; height: 26px; stroke-width: 2.6; }
.visor-nav:hover { background: var(--naranja); transform: scale(1.08); }
.visor-ant { grid-column: 1; }
.visor-sig { grid-column: 3; }
.visor-cerrar {
    position: fixed; top: 16px; right: 16px; z-index: 2;
    width: 46px; height: 46px; border-radius: 50%;
    font-size: 1.8rem; line-height: 1;
}
.visor-cerrar:hover { background: var(--rojo); transform: rotate(90deg); }
.visor-nav:focus-visible, .visor-cerrar:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }
.visor.una-sola .visor-nav, .visor.una-sola figcaption small { visibility: hidden; }

@media (max-width: 640px) {
    .visor[open] { grid-template-columns: 1fr; grid-template-rows: 1fr; padding: 4rem .6rem 1rem; }
    .visor-cuadro { grid-column: 1; grid-row: 1; }
    .visor-nav { position: fixed; bottom: 1rem; z-index: 2; width: 46px; height: 46px; background: rgba(0, 0, 0, .35); }
    .visor-ant { left: .8rem; }
    .visor-sig { right: .8rem; }
    .visor figcaption { margin-bottom: 3.6rem; }
}

/* ---------- Mosaico según la forma de cada foto ----------
   Columna = 1 tesela, fila = media tesela.
   cuadrada 1×2 (1:1) · vertical 1×3 (2:3) · horizontal 2×3 (4:3) · panorámica 2×2 (2:1) */
.tesela, .tesela-vacia { grid-row: span 2; }
.tesela.forma-v { grid-row: span 3; }
.tesela.forma-h { grid-column: span 2; grid-row: span 3; }
.tesela.forma-p { grid-column: span 2; grid-row: span 2; }
/* Algunas cuadradas destacadas en grande para dar ritmo */
.tesela.forma-c:nth-child(11n + 4) { grid-column: span 2; grid-row: span 4; }
@media (max-width: 560px) {
    .tesela.forma-c:nth-child(11n + 4) { grid-column: span 1; grid-row: span 2; }
}
.tesela-vacia.relleno { grid-row: span 1; grid-column: span 1; animation-delay: .4s; }
.tesela-vacia.relleno.sobra { display: none; }

/* ---------- Guía de la foto ---------- */
.guia-foto {
    display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff3e6, #ffe6d2);
    box-shadow: inset 0 0 0 2px #ffd6b5;
}
.guia-mano {
    display: grid; place-items: center;
    width: 54px; height: 54px; border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--naranja), var(--rojo));
    box-shadow: 0 8px 18px -8px rgba(217, 2, 3, .7);
}
.guia-mano svg { width: 28px; height: 28px; stroke-width: 2; }
.guia-foto strong { display: block; font-weight: 800; color: var(--granate); font-size: .95rem; }
.guia-foto p { margin: .1rem 0 0 !important; font-size: .85rem !important; line-height: 1.45 !important; }
.guia-foto b { color: var(--rojo); font-weight: 700; }
.guia-foto ul { grid-column: 1 / -1; display: grid; gap: .3rem; margin: .4rem 0 0; padding: 0; list-style: none; font-size: .8rem; line-height: 1.35; }
.guia-foto li { display: flex; gap: .5rem; align-items: flex-start; }
.guia-foto li::before {
    content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
    background: #2fa86a center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.guia-foto li.no::before {
    background-color: var(--rojo);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}
@media (min-width: 901px) and (max-width: 1250px) { .mural-titulo { grid-row: 3 / span 9; } }
@media (max-width: 560px) { .mural { padding-top: 64px; } }

/* ---------- Redes sociales y set de actividades ---------- */
.redes { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.redes-grupo { display: flex; flex-direction: column; gap: .45rem; }
.redes-grupo > span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.redes-iconos { display: flex; flex-wrap: wrap; gap: .45rem; }
.redes-iconos a {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    transition: transform .2s, background .2s, color .2s;
}
.redes-iconos a:hover { transform: translateY(-2px); }
.redes-iconos svg { width: 20px; height: 20px; stroke-width: 2; }

.redes-panel .redes-grupo > span { color: var(--granate); }
.redes-panel .redes-iconos a { color: #fff; background: linear-gradient(135deg, var(--naranja), var(--rojo)); box-shadow: 0 6px 14px -6px rgba(217, 2, 3, .6); }

.redes-pie { flex: 1; justify-content: center; }
.redes-pie .redes-grupo > span { color: #b8c2f0; }
.redes-pie .redes-iconos a { color: #fff; background: rgba(255, 255, 255, .1); }
.redes-pie .redes-iconos a:hover { background: var(--naranja); }
.pie-correo { white-space: nowrap; }
@media (max-width: 900px) { .redes-pie { justify-content: flex-start; flex-basis: 100%; order: 3; } }

.mural-set {
    display: inline-flex; align-items: center; gap: .4rem;
    width: fit-content;
    font-size: .85rem; font-weight: 600; color: var(--naranja-2); text-decoration: none;
}
.mural-set:hover { color: var(--rojo); text-decoration: underline; }
.mural-set svg { width: 1.05em; height: 1.05em; }
