/* ==========================================================================
   Video For Social Change — hoja de estilos principal
   Paleta y tipografías originales: Roboto / Roboto Slab, #EF4136, #7A7A7A
   ========================================================================== */

:root {
    --red: #EF4136;
    --red-soft: #FFA5A0;
    --text: #7A7A7A;
    --dark: #343432;
    --heading: #4D4D4D;
    --title: #595959;
    --line: #E8E8E8;
    --bg-soft: #F4F4F4;
    --container: 1100px;
    --measure: 780px;
    --rail: 320px;
    --radius: 4px;
    --shadow-hover: 0 14px 34px rgba(20, 20, 20, .10);
    --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --slab: "Roboto Slab", Georgia, serif;
    --header-h: 100px;
}

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 16.5px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

figure {
    margin: 0;
}

ul,
ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

p {
    margin: 0 0 1.15em;
}

a {
    color: var(--red);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover,
a:focus-visible {
    color: var(--red-soft);
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.22;
    color: var(--heading);
    margin: 0 0 .6em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(32px, 4vw, 46px);
    letter-spacing: -.02em;
}

h2 {
    font-size: clamp(24px, 2.6vw, 30px);
    letter-spacing: -.01em;
}

h3 {
    font-size: 20px;
}

button {
    font: inherit;
    cursor: pointer;
}

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

.wrap {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -80px;
    z-index: 20000;
    background: var(--red);
    color: #fff;
    padding: 10px 16px;
    border-radius: 2px;
    font-size: 14px;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

/* Cabecera --------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 9995;
    background: rgba(255, 255, 255, .65);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background-color .35s ease, box-shadow .35s ease;
}

.site-header::before,
.site-header::after {
    content: "";
    display: table;
}

.site-header.is-stuck {
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 1px 14px rgba(0, 0, 0, .06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(16px, 5vw, 50px);
    height: var(--header-h);
    transition: height .4s ease;
}

.site-header.is-stuck .header-inner {
    height: 80px;
}

.brand {
    display: block;
    flex: 0 1 190px;
    line-height: 0;
}

.brand-logo {
    width: 100%;
    height: auto;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    position: relative;
    isolation: isolate;
    display: block;
    padding: 4px 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -.45px;
    text-transform: uppercase;
    color: var(--dark);
}

.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
    color: #fff;
}

.nav-link:hover::before,
.nav-link:focus-visible::before,
.nav-link.is-active::before {
    transform: scaleX(1);
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--dark);
    background: transparent;
    color: var(--dark);
    align-items: center;
    justify-content: center;
}

.menu-bars {
    position: relative;
    display: block;
    width: 22px;
    height: 16px;
}

.menu-bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

.menu-bars span:nth-child(1) { top: 0; }
.menu-bars span:nth-child(2) { top: 7px; }
.menu-bars span:nth-child(3) { top: 14px; }

body.nav-open .menu-bars span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

body.nav-open .menu-bars span:nth-child(2) {
    opacity: 0;
}

body.nav-open .menu-bars span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(0, 0, 0, .35);
}

.nav-backdrop[hidden] {
    display: none;
}

/* Contenido principal */
.site-main {
    flex: 1 0 auto;
    padding-top: var(--header-h);
}

.page-inicio .site-main {
    padding-top: 0;
}

/* Hero / portada --------------------------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    max-height: 1080px;
    overflow: hidden;
    background: #111;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility .9s;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide picture,
.hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide img {
    object-fit: cover;
    object-position: center;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, .18) 100%),
        rgba(2, 1, 1, .22);
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(58px, 11vh, 130px);
    z-index: 2;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: clamp(22px, 8vw, 110px);
    color: #fff;
}

.hero-content > * {
    max-width: 900px;
}

.hero-title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(30px, 5vw, 70px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.hero-title a {
    color: inherit;
}

.hero-title a:hover,
.hero-title a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.hero-excerpt {
    margin: 0;
    max-width: 780px;
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.6;
    color: rgba(255, 255, 255, .94);
}

.hero-nav {
    position: absolute;
    left: clamp(14px, 3vw, 34px);
    top: 50%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transform: translateY(-50%);
}

.hero-arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
}

.hero-arrow svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
    color: var(--red);
}

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

.hero-dot {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    position: relative;
}

.hero-dot::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    transition: background-color .2s ease;
}

.hero-dot[aria-current="true"] {
    border-color: #fff;
}

.hero-dot[aria-current="true"]::after {
    background: var(--red);
}

/* Cabecera de página / migas -------------------------------------------- */
.page-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.page-header__inner {
    padding-top: clamp(26px, 3vw, 36px);
    padding-bottom: clamp(22px, 2.6vw, 30px);
}

.page-header h1 {
    margin: 0;
    color: #2B2B2B;
    font-size: clamp(32px, 4vw, 46px);
}

.page-header--center {
    text-align: center;
}

.page-header .breadcrumb {
    margin-bottom: 10px;
}

.page-body {
    padding-top: clamp(34px, 4vw, 48px);
    padding-bottom: clamp(50px, 7vw, 80px);
}

/* Prosa: páginas sin sidebar */
.prose {
    max-width: var(--measure);
    margin-inline: auto;
    font-size: 16.5px;
    line-height: 1.75;
}

.prose > :first-child {
    margin-top: 0;
}

.prose > :last-child {
    margin-bottom: 0;
}

.prose h2 {
    margin-top: 2em;
}

.prose h3 {
    margin-top: 1.7em;
}

.prose ul,
.prose ol {
    padding-left: 1.2em;
}

.prose li {
    margin-bottom: .45em;
}

.prose li::marker {
    color: var(--red);
}

.prose a {
    color: var(--red);
    text-decoration: underline;
    text-decoration-color: rgba(239, 65, 54, .35);
    text-underline-offset: 3px;
}

.prose a:hover {
    text-decoration-color: var(--red);
}

.prose img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.4em auto;
}

.prose > p:first-child {
    font-size: 18px;
    line-height: 1.7;
}

/* Figura ancha (Metodología) */
.page-figure {
    max-width: 900px;
    margin: clamp(30px, 4vw, 48px) auto;
    padding: clamp(18px, 3vw, 30px);
    background: var(--bg-soft);
    border-radius: var(--radius);
}

.page-figure img {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    margin: 0 auto;
    mix-blend-mode: multiply;
}

/* Índice de las páginas legales */
.page-index {
    max-width: var(--measure);
    margin: 0 auto clamp(30px, 4vw, 42px);
    padding: clamp(20px, 3vw, 26px);
    background: var(--bg-soft);
    border-radius: var(--radius);
}

.page-index__title {
    margin: 0 0 12px;
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text);
}

.page-index ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-index a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--heading);
    font-size: 15px;
    line-height: 1.45;
}

.page-index a::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: var(--red);
}

.page-index a:hover {
    color: var(--red);
}

/* Tarjeta de contacto */
.contact-card {
    max-width: var(--measure);
    margin-inline: auto;
    padding: clamp(24px, 4vw, 40px);
    background: var(--bg-soft);
    border-radius: var(--radius);
}

.contact-card .content {
    max-width: none;
    font-size: 16.5px;
    line-height: 1.75;
}

.contact-card img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.4em auto;
    mix-blend-mode: multiply;
}

.breadcrumb {
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #9A9A9A;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a {
    color: #7A7A7A;
}

.breadcrumb a:hover {
    color: var(--red);
}

.breadcrumb span[aria-current] {
    color: #B0B0B0;
}

.breadcrumb .sep {
    color: #C9C9C9;
}

.breadcrumb--center ol {
    justify-content: center;
}

/* Rejilla y tarjetas de vídeo ------------------------------------------- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 26px;
}

.video-card {
    display: block;
    color: inherit;
    transition: transform .25s ease;
}

.video-card:hover,
.video-card:focus-visible {
    transform: translateY(-3px);
}

.video-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f1f1;
    border-radius: var(--radius);
    transition: box-shadow .25s ease;
}

.video-card:hover .video-card__media,
.video-card:focus-visible .video-card__media {
    box-shadow: var(--shadow-hover);
}

.video-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    transition: transform .25s ease;
    pointer-events: none;
}

.video-card__play svg {
    width: 15px;
    height: 15px;
    margin-left: 3px;
    fill: var(--red);
}

.video-card:hover .video-card__media img,
.video-card:focus-visible .video-card__media img {
    transform: scale(1.04);
}

.video-card:hover .video-card__play {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card__title {
    display: block;
    margin: 15px 0 7px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--title);
    transition: color .2s ease;
}

.video-card:hover .video-card__title,
.video-card:focus-visible .video-card__title {
    color: var(--red);
}

.video-card__excerpt {
    display: block;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

/* Ficha de vídeo --------------------------------------------------------- */
.video-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--rail);
    gap: 54px;
    align-items: start;
}

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
    border-radius: var(--radius);
}

.video-embed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .92;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
}

.video-facade__btn {
    display: grid;
    place-items: center;
    width: clamp(64px, 9vw, 96px);
    height: clamp(64px, 9vw, 96px);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
    transition: transform .25s ease, background-color .25s ease;
}

.video-facade:hover .video-facade__btn,
.video-facade:focus-visible .video-facade__btn {
    transform: scale(1.08);
    background: #fff;
}

.video-facade__btn svg {
    width: 34%;
    height: 34%;
    margin-left: 6%;
    fill: var(--red);
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    margin: 18px 0 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--text);
}

.video-meta__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.video-meta__cats a {
    color: var(--red);
}

.video-meta__cats a:hover {
    color: var(--red-soft);
}

.video-meta__date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7B7B7B;
}

.video-meta__date svg {
    width: 14px;
    height: 14px;
    fill: #7B7B7B;
}

.video-body {
    font-size: 16.5px;
    line-height: 1.75;
}

.video-body strong {
    color: #5A5A5A;
}

.video-body ul {
    margin: .4em 0 1em;
    padding-left: 1.2em;
}

.video-body li {
    margin-bottom: .4em;
}

.video-body li::marker {
    color: var(--red);
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 44px;
}

.post-nav__item {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--heading);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.post-nav__item:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-hover);
}

.post-nav__item--next {
    text-align: right;
}

.post-nav__label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #9A9A9A;
}

.post-nav__title {
    font-size: 15.5px;
    line-height: 1.4;
    color: var(--heading);
    transition: color .2s ease;
}

.post-nav__item:hover .post-nav__title {
    color: var(--red);
}

.video-side {
    display: grid;
    gap: 34px;
}

@media (min-width: 1025px) {
    .video-side {
        position: sticky;
        top: calc(var(--header-h) + 24px);
        max-height: calc(100svh - var(--header-h) - 48px);
        overflow-y: auto;
        scrollbar-width: thin;
        padding-right: 4px;
    }
}

.side-title {
    margin: 0 0 16px;
    font-family: var(--slab);
    font-size: 18px;
    font-weight: 400;
    color: var(--red);
}

.side-card {
    display: block;
    margin-bottom: 24px;
}

.side-card:last-child {
    margin-bottom: 0;
}

.side-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f1f1;
    margin-bottom: 10px;
    border-radius: var(--radius);
}

.side-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.side-card:hover .side-card__media img {
    transform: scale(1.04);
}

.side-card__title {
    display: block;
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--title);
    transition: color .2s ease;
}

.side-card:hover .side-card__title {
    color: var(--red);
}

.side-card__excerpt {
    display: block;
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text);
}

.instagram-box {
    padding: 22px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    text-align: center;
}

.instagram-box p {
    margin: 0 0 14px;
    font-family: var(--slab);
    font-size: 18px;
    color: var(--red);
}

.instagram-box a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--red);
    border-radius: var(--radius);
    background: #fff;
    color: var(--red);
    font-size: 14px;
    font-weight: 500;
    transition: background-color .2s ease, color .2s ease;
}

.instagram-box a:hover {
    background: var(--red);
    color: #fff;
}

.instagram-box svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Galería ---------------------------------------------------------------- */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 clamp(26px, 4vw, 38px);
    padding: 0;
    list-style: none;
}

.filter-btn {
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--text);
    transition: color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.filter-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

.filter-btn[aria-pressed="true"] {
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 4px 14px rgba(239, 65, 54, .10);
}

.gallery {
    columns: 6;
    column-gap: 10px;
}

.gallery-item {
    display: block;
    break-inside: avoid;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    background: #f1f1f1;
    border-radius: var(--radius);
    transition: box-shadow .25s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform .45s ease, opacity .3s ease;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(239, 65, 54, 0);
    transition: background-color .3s ease;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
    background: rgba(239, 65, 54, .22);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item[hidden] {
    display: none;
}

.gallery-empty {
    padding: 30px 0 60px;
    text-align: center;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 15000;
    display: none;
    background: rgba(8, 8, 8, .95);
}

.lightbox.is-open {
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.lightbox__top {
    display: flex;
    justify-content: flex-end;
    padding: 14px 18px;
}

.lightbox__close,
.lightbox__nav {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    color: var(--red);
}

.lightbox__close svg,
.lightbox__nav svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.lightbox__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 0 10px;
}

.lightbox__img {
    max-width: min(92vw, 1300px);
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 12px 50px rgba(0, 0, 0, .5);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
}

.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

.lightbox__foot {
    padding: 12px 24px 24px;
    text-align: center;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
}

.lightbox__counter {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: .8px;
    color: rgba(255, 255, 255, .5);
}

body.lightbox-open {
    overflow: hidden;
}

/* Páginas de contenido --------------------------------------------------- */
.content--contact > p:first-child {
    text-align: center;
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 28px 0 0;
}

.contact-socials a {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: #FC0505;
    color: #fff;
    transition: opacity .2s ease;
}

.contact-socials a:hover {
    opacity: .82;
    color: #fff;
}

.contact-socials svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* Páginas legales --------------------------------------------------------- */
.page-legal .site-main {
    background: var(--bg-soft);
}

.legal-page {
    padding: clamp(28px, 4vw, 44px) 0 clamp(50px, 7vw, 80px);
}

.legal-inner {
    max-width: 860px;
    margin-inline: auto;
}

.legal-hero {
    padding: clamp(28px, 4vw, 42px);
    background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(0, 0, 0, .10)), var(--red);
    border-radius: var(--radius);
    color: #fff;
    box-shadow: 0 16px 36px rgba(239, 65, 54, .18);
}

.legal-hero .breadcrumb {
    margin-bottom: 18px;
}

.breadcrumb--light,
.breadcrumb--light a,
.breadcrumb--light .sep {
    color: rgba(255, 255, 255, .78);
}

.breadcrumb--light a:hover,
.breadcrumb--light span[aria-current] {
    color: #fff;
}

.legal-hero h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(32px, 4vw, 46px);
}

.legal-hero__subtitle {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .94);
}

.legal-hero__date {
    margin: 0;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.legal-index {
    max-width: none;
    margin: 18px 0;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}

.legal-content {
    counter-reset: legal;
    display: grid;
    gap: 18px;
}

.legal-card {
    padding: clamp(22px, 3vw, 34px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}

.legal-card h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    color: var(--heading);
    font-size: clamp(22px, 2.4vw, 27px);
}

.legal-card h2::before {
    counter-increment: legal;
    content: counter(legal);
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font: 600 15px/1 var(--font);
}

.legal-card h3 {
    margin: 1.6em 0 .5em;
    font-size: 18px;
    color: var(--heading);
}

.legal-card p {
    margin: 0 0 1em;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card ul {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

.legal-card li {
    margin-bottom: .4em;
    line-height: 1.7;
}

.legal-card li::marker {
    color: var(--red);
}

.legal-card a {
    color: var(--red);
    text-decoration: underline;
    text-decoration-color: rgba(239, 65, 54, .35);
    text-underline-offset: 3px;
}

.legal-card a:hover {
    text-decoration-color: var(--red);
}

.legal-card strong {
    color: var(--heading);
}

.legal-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
    margin: 18px 0 4px;
    padding: 22px;
    background: var(--bg-soft);
    border-radius: var(--radius);
}

.legal-data__label {
    display: block;
    margin-bottom: 3px;
    font-size: 10.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9A9A9A;
}

.legal-data__value {
    display: block;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--heading);
    overflow-wrap: anywhere;
}

.legal-note {
    margin: 18px 0 4px;
    padding: 16px 18px;
    background: var(--bg-soft);
    border-left: 3px solid var(--red);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.legal-note p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.7;
}

.legal-note strong {
    color: var(--heading);
}

.legal-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
    margin-top: 14px;
}

.legal-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.legal-contact__icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--red);
}

.legal-contact__icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.legal-contact__label {
    display: block;
    margin-bottom: 2px;
    font-size: 10.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9A9A9A;
}

.legal-contact__value {
    display: block;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--heading);
    overflow-wrap: anywhere;
}

.legal-others {
    margin-top: 18px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}

.legal-others__title {
    margin: 0 0 16px;
    font-size: 20px;
    color: var(--heading);
}

.legal-others__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.legal-other {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--red);
    font-size: 14px;
    font-weight: 500;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.legal-other:hover {
    border-color: var(--red);
    background: var(--red);
    color: #fff;
}

.legal-top {
    margin: 26px 0 0;
    text-align: center;
}

/* Pie -------------------------------------------------------------------- */
.site-footer {
    padding-top: clamp(42px, 6vw, 62px);
    background: #fff;
    border-top: 1px solid var(--line);
}

.footer-stats-inner {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    padding-bottom: 10px;
    text-align: center;
}

.stat {
    flex: 0 1 470px;
}

.stat-title {
    display: block;
    font-family: var(--slab);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--red);
}

.stat-number {
    display: block;
    font-size: clamp(44px, 6vw, 62px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.footer-note,
.footer-made {
    margin: 0 auto 22px;
    max-width: 980px;
    padding-inline: 20px;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: .4px;
    text-transform: uppercase;
    line-height: 1.7;
    text-align: center;
    color: var(--text);
}

.footer-note a {
    color: var(--red);
}

.footer-made {
    margin-bottom: 26px;
}

.heart {
    color: var(--red);
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 5vw, 60px);
    max-width: 980px;
    padding-bottom: 34px;
}

.footer-logos a {
    display: block;
    line-height: 0;
}

.footer-logos img {
    width: 100%;
    height: auto;
}

.footer-logos a:nth-child(1) img { max-width: 96px; }
.footer-logos a:nth-child(2) img { max-width: 300px; }
.footer-logos a:nth-child(3) img { max-width: 190px; }

.footer-bar {
    background: var(--bg-soft);
}

.footer-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 54px;
    padding-block: 8px;
}

.footer-legal ul {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-legal a {
    font-size: 12px;
    font-weight: 300;
    color: var(--text);
}

.footer-legal a:hover {
    color: var(--red);
}

.footer-copy {
    margin: 0;
    font-size: 12px;
    font-weight: 300;
    color: var(--text);
    text-align: center;
}

.socials {
    display: flex;
    gap: 5px;
}

.social {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: var(--radius);
    background: #FC0505;
    color: #fff;
}

.social:hover {
    color: #fff;
    opacity: .85;
}

.social svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
}

/* 404 -------------------------------------------------------------------- */
.error-page {
    display: grid;
    place-items: center;
    min-height: calc(100svh - var(--header-h) - 320px);
    padding: 60px 20px;
    text-align: center;
}

.error-code {
    margin: 0;
    font-family: var(--slab);
    font-size: clamp(80px, 16vw, 150px);
    line-height: 1;
    color: var(--red);
}

.error-page h1 {
    margin: 10px 0 14px;
    color: var(--heading);
}

.error-page p {
    max-width: 480px;
    margin: 0 auto 26px;
}

.btn {
    display: inline-block;
    padding: 11px 22px;
    border: 1px solid var(--red);
    border-radius: var(--radius);
    background: #fff;
    color: var(--red);
    font-size: 15px;
    font-weight: 500;
    transition: background-color .2s ease, color .2s ease;
}

.btn:hover,
.btn:focus-visible {
    background: var(--red);
    color: #fff;
}

/* Adaptación ------------------------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --header-h: 80px;
    }

    .brand {
        flex-basis: 150px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        z-index: 9992;
        max-height: calc(100svh - var(--header-h));
        overflow-y: auto;
        padding: 8px 0 18px;
        background: #fff;
        box-shadow: 0 18px 30px rgba(0, 0, 0, .12);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, transform .22s ease, visibility .22s;
    }

    body.nav-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav li {
        width: 100%;
        border-bottom: 1px solid #F1F1F1;
    }

    .nav-link {
        padding: 14px 24px;
        font-size: 14px;
        font-weight: 300;
        letter-spacing: 1.53px;
        text-align: center;
    }

    .nav-link::before {
        display: none;
    }

    .nav-link:hover,
    .nav-link:focus-visible,
    .nav-link.is-active {
        background: #000;
        color: #fff;
    }

    body.nav-open {
        overflow: hidden;
    }

    .video-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .video-side {
        grid-template-columns: 1fr;
    }

    .page-index ul {
        gap: 8px 22px;
    }

    .gallery {
        columns: 2;
    }

    .footer-bar-inner {
        flex-direction: column;
        gap: 10px;
        padding-block: 14px;
    }

    .footer-copy {
        order: 3;
    }

    .footer-legal {
        order: 1;
    }

    .socials {
        order: 2;
    }
}

@media (max-width: 767px) {
    :root {
        --header-h: 72px;
    }

    body {
        font-size: 16px;
    }

    .brand {
        flex-basis: 132px;
    }

    .hero {
        min-height: 520px;
    }

    .hero-content {
        bottom: 74px;
        padding-inline: 22px;
    }

    .hero-title {
        margin-bottom: 12px;
    }

    .hero-nav {
        left: 50%;
        top: auto;
        bottom: 22px;
        flex-direction: row;
        gap: 8px;
        transform: translateX(-50%);
    }

    .hero-arrow {
        display: none;
    }

    .hero-dots {
        flex-direction: row;
    }

    .page-header__inner {
        padding-top: 24px;
        padding-bottom: 20px;
    }

    .page-header h1 {
        font-size: clamp(30px, 8vw, 36px);
    }

    .page-body {
        padding-top: 28px;
        padding-bottom: 48px;
    }

    .prose {
        font-size: 16px;
        line-height: 1.72;
    }

    .prose > p:first-child {
        font-size: 17px;
    }

    .page-figure {
        margin: 24px auto;
        padding: 14px;
    }

    .contact-card {
        padding: 22px 18px;
    }

    .legal-page {
        padding-top: 24px;
        padding-bottom: 50px;
    }

    .legal-hero {
        padding: 24px 20px;
    }

    .legal-hero h1 {
        font-size: clamp(28px, 8vw, 34px);
    }

    .legal-hero__subtitle {
        font-size: 15px;
    }

    .legal-index {
        margin: 14px 0;
    }

    .legal-card {
        padding: 20px 18px;
    }

    .legal-card h2 {
        gap: 10px;
        font-size: 21px;
    }

    .legal-card h2::before {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .legal-data {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px;
    }

    .legal-contact {
        grid-template-columns: 1fr;
    }

    .legal-others {
        padding: 20px 18px;
    }

    .legal-others__links {
        flex-direction: column;
    }

    .legal-other {
        justify-content: center;
    }

    .page-index ul {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .video-card__title {
        font-size: 18.5px;
    }

    .gallery {
        columns: 1;
    }

    .gallery-item img {
        aspect-ratio: 4 / 3;
    }

    .post-nav {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .post-nav__item--next {
        text-align: left;
    }

    .footer-stats-inner {
        gap: 8px;
    }

    .stat-title {
        font-size: 16px;
    }

    .footer-logos {
        flex-wrap: nowrap;
        gap: 14px;
        padding-inline: 20px;
    }

    .footer-logos a {
        flex: 1 1 0;
        min-width: 0;
    }

    .footer-logos a:nth-child(1) img { max-width: 64px; margin-inline: auto; }
    .footer-logos a:nth-child(2) img { max-width: 100%; }
    .footer-logos a:nth-child(3) img { max-width: 100%; }

    .footer-legal ul {
        justify-content: center;
        gap: 12px 16px;
    }

    .lightbox__nav {
        width: 44px;
        height: 44px;
    }

    .lightbox__nav--prev { left: 0; }
    .lightbox__nav--next { right: 0; }

    .lightbox__img {
        max-height: 72vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}
