/* ================================================================
   HERO — página individual de evento (single-portafolios.php)
   Usa las mismas variables --svp-port-* del listado de portafolio,
   así que hereda automáticamente el modo claro/oscuro (html.svp-dark).
   Si este archivo se usa solo, sin el CSS del listado, define un
   fallback debajo.
   ================================================================ */
:root {
    --svp-port-bg: #ffffff;
    --svp-port-ink: #16130F;
    --svp-port-muted: #6E6A61;
    --svp-port-accent: #aa804c;
    --svp-port-line: rgba(0, 0, 0, 0.12);
}

html.svp-dark {
    --svp-port-bg: #121212;
    --svp-port-ink: #F2EEE5;
    --svp-port-muted: #A39C8F;
    --svp-port-accent: #D4A15F;
    --svp-port-line: rgba(255, 255, 255, 0.12);
}

#page {
    background: var(--svp-port-bg);
    transition: background-color .35s ease, color .35s ease;

}

.svp-single {
    background: var(--svp-port-bg);
    color: var(--svp-port-ink);
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Hero */
.svp-single-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    overflow: hidden;
}

.svp-single-hero--no-image {
    background:
        radial-gradient(circle at 20% 15%, rgba(170, 128, 76, .18) 0%, transparent 45%),
        linear-gradient(135deg, #1c1a17 0%, #100f0d 100%);
}

.svp-single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .85) 0%,
        rgba(0, 0, 0, .35) 45%,
        rgba(0, 0, 0, .15) 100%
    );
}

.svp-single-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 24px 56px;
    color: #ffffff;
}

/* Link "volver" */
.svp-single-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    color: #ffffff;
    text-decoration: none;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, .06);
    transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.svp-single-hero__back:hover,
.svp-single-hero__back:focus-visible {
    background: var(--svp-port-accent);
    border-color: var(--svp-port-accent);
    transform: translateX(-3px);
}

/* Eyebrow: disciplinas */
.svp-single-hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.svp-single-hero__eyebrow a {
    color: var(--svp-port-accent);
    text-decoration: none;
}

.svp-single-hero__eyebrow a:hover,
.svp-single-hero__eyebrow a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.svp-single-hero__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
}

/* Nombre del evento */
.svp-single-hero__title {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.02em;
    max-width: 900px;
}

.svp-single-hero__date {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, .75);
    text-transform: capitalize;
}

/* Contenido debajo del hero */
.svp-single-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 64px 24px 100px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--svp-port-ink);
}

.svp-single-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 32px 0;
}
.svp-gallery{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));

    gap:20px;

    width:min(1400px,92%);

    margin:80px auto;

}

.svp-gallery__item{

    display:block;

    overflow:hidden;

}

.svp-gallery__img{

    width:100%;

    display:block;

    transition:.4s;

}

.svp-gallery__item:hover .svp-gallery__img{

    transform:scale(1.05);

}

/* Responsive */
@media (max-width: 768px) {
    .svp-single-hero {
        min-height: 64vh;
    }

    .svp-single-hero__inner {
        padding: 110px 20px 40px;
    }

    .svp-single-hero__back {
        margin-bottom: 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .svp-single-hero {
        min-height: 56vh;
    }

    .svp-single-hero__title {
        font-size: 30px;
    }

    .svp-single-body {
        padding: 40px 18px 72px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .svp-single-hero__back {
        transition: none !important;
    }
}