:root {
    --bg-dark: #122033;
    --bg-darker: #09111c;
    --bg-light: #f6f1e8;
    --bg-soft: #ede6da;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #fffdf8;
    --surface-dark: rgba(255, 255, 255, 0.06);
    --text-dark: #142131;
    --text-light: #edf2f7;
    --muted: #708094;
    --muted-dark: #506074;
    --primary: #d8b15b;
    --primary-hover: #c19942;
    --primary-soft: rgba(216, 177, 91, 0.16);
    --secondary: #214b6b;
    --secondary-soft: rgba(33, 75, 107, 0.14);
    --border: rgba(237, 242, 247, 0.12);
    --border-strong: rgba(237, 242, 247, 0.22);
    --border-light: rgba(20, 33, 49, 0.1);
    --card: rgba(255, 255, 255, 0.05);
    --shadow: 0 22px 55px rgba(5, 12, 22, 0.28);
    --shadow-soft: 0 18px 40px rgba(12, 24, 40, 0.1);
    --header-bg: rgba(9, 17, 28, 0.08);
    --header-bg-scrolled: rgba(9, 17, 28, 0.82);
    --header-border: rgba(237, 242, 247, 0.08);
    --header-shadow: 0 18px 36px rgba(5, 12, 22, 0.14);
    --button-text: #101922;
    --button-secondary-bg: transparent;
    --button-secondary-border: rgba(237, 242, 247, 0.24);
    --button-secondary-text: var(--text-light);
    --facebook: #1877f2;
    --facebook-hover: #0e62d4;
    --instagram-start: #833ab4;
    --instagram-mid: #fd1d1d;
    --instagram-end: #fcb045;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --container: 1180px;
    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-text: "Manrope", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #0e1724;
        --bg-soft: #111f30;
        --surface: rgba(17, 31, 48, 0.9);
        --surface-strong: #152335;
        --text-dark: #edf2f7;
        --muted-dark: #a8b6c5;
        --border-light: rgba(237, 242, 247, 0.08);
        --shadow-soft: 0 18px 40px rgba(3, 7, 14, 0.24);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-text);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background-image:
        radial-gradient(circle at top, rgba(216, 177, 91, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 20%);
}

img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

/* ============ Accesibilidad: skip link + focus visible ============ */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: var(--button-text);
    padding: 10px 16px;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 700;
    z-index: 9999;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

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

/* ============ Header / Nav ============ */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    border-bottom: 1px solid transparent;
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, -webkit-backdrop-filter 0.35s ease, backdrop-filter 0.35s ease;
}

.header.header-scrolled {
    background: var(--header-bg-scrolled);
    border-color: var(--header-border);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    backdrop-filter: blur(14px) saturate(135%);
    box-shadow: var(--header-shadow);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-center {
    position: relative;
    left: auto;
    transform: none;
    z-index: 2;
    top: auto;
    height: 42px;
    translate: none;
}

.logo-mark {
    width: auto;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 8px 18px rgba(5, 12, 22, 0.18));
    transform-origin: center;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.logo-center:hover .logo-mark,
.logo-center:focus-visible .logo-mark,
.logo-center:active .logo-mark {
    transform: translateY(-1px) scale(1.14);
    filter: drop-shadow(0 16px 32px rgba(216, 177, 91, 0.36));
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    color: rgba(237, 242, 247, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.25s ease;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--primary);
}

.nav a:hover::after,
.nav a:focus-visible::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    margin: 5px 0;
    background: var(--text-light);
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ============ Sections base ============ */

.section-dark {
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
    color: var(--text-light);
}

.section-light {
    background: var(--bg-light);
}

.section-accent {
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-dark) 86%, black), var(--bg-dark));
    color: var(--text-light);
}

/* ============ Hero ============ */

.hero {
    padding: 118px 0 104px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(216, 177, 91, 0.14), transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(33, 75, 107, 0.24), transparent 52%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-tag {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.76rem;
}

.hero h1 {
    font-size: clamp(3rem, 5.9vw, 5.55rem);
    line-height: 0.96;
    margin-bottom: 30px;
    letter-spacing: -0.035em;
    max-width: 10ch;
    text-wrap: balance;
}

.hero-description {
    max-width: 540px;
    color: rgba(237, 242, 247, 0.8);
    margin-bottom: 40px;
    font-size: 1.06rem;
    line-height: 1.85;
    text-wrap: pretty;
}

.hero-image {
    position: relative;
    aspect-ratio: 7 / 10;
}

.hero-image picture {
    display: block;
    aspect-ratio: 7 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.hero-image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.hero-image img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
}

/* ============ Buttons ============ */

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-actions {
    margin-bottom: 34px;
}

.hero-impact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 760px;
}

.impact-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 14px;
    padding: 18px 18px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.impact-icon {
    font-size: 1.25rem;
    line-height: 1;
    margin-top: 2px;
}

.impact-item strong {
    display: block;
    color: var(--text-light);
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.impact-item p {
    margin: 0;
    color: rgba(237, 242, 247, 0.7);
    font-size: 0.86rem;
    line-height: 1.55;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.97rem;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: var(--button-text);
    box-shadow: 0 10px 24px rgba(216, 177, 91, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--primary-hover);
    box-shadow: 0 14px 30px rgba(216, 177, 91, 0.34);
}

.btn-outline {
    border-color: var(--button-secondary-border);
    color: var(--button-secondary-text);
    background: var(--button-secondary-bg);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.btn-outline-dark {
    border-color: rgba(20, 33, 49, 0.14);
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.56);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
    color: var(--secondary);
    border-color: rgba(33, 75, 107, 0.24);
    background: rgba(33, 75, 107, 0.08);
}

.btn-facebook {
    background: var(--facebook);
    color: var(--text-light);
}

.btn-facebook:hover,
.btn-facebook:focus-visible {
    background: var(--facebook-hover);
}

.btn-instagram {
    color: var(--text-light);
    background: linear-gradient(135deg, var(--instagram-start) 0%, var(--instagram-mid) 50%, var(--instagram-end) 100%);
}

/* ============ About / Featured ============ */

.about,
.movement,
.featured,
.contact {
    padding: 110px 0;
}

.two-columns,
.movement-grid,
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.image-card {
    position: relative;
}

.image-card picture {
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-card img {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.history-media {
    align-self: stretch;
}

.history-media picture {
    aspect-ratio: auto;
}

.history-media img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center top;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.content-card h2,
.section-head h2 {
    font-size: clamp(1.9rem, 3.5vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-accent .section-head h2,
.section-dark .section-head h2 {
    color: var(--text-light);
}

.content-card p,
.section-head p {
    color: var(--muted-dark);
    margin-bottom: 14px;
    font-size: 1.02rem;
}

.movement {
    position: relative;
}

.movement::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 25%, rgba(216, 177, 91, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 40%);
    pointer-events: none;
}

.movement-grid {
    position: relative;
    z-index: 1;
    gap: 64px;
}

.movement-logo-card {
    padding: clamp(28px, 5vw, 56px);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(246, 241, 232, 0.92));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.movement-logo {
    max-width: 360px;
    margin: 0 auto;
    border-radius: 0;
    object-fit: contain;
}

.movement-copy h2 {
    font-size: clamp(2.3rem, 4vw, 3.7rem);
    line-height: 0.98;
    margin-bottom: 22px;
    text-wrap: balance;
}

.movement-copy p {
    max-width: 58ch;
    color: var(--muted-dark);
    font-size: 1.03rem;
    line-height: 1.85;
    margin-bottom: 15px;
}

.classification-note {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    vertical-align: middle;
}

.classification-note-inline {
    margin-top: 10px;
}

.classification-trigger {
    appearance: none;
    border: 1px solid var(--border-light);
    background: color-mix(in srgb, var(--surface-strong) 72%, var(--primary-soft));
    color: var(--secondary);
    border-radius: 20px;
    padding: 0.7rem 0.95rem;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.classification-trigger-card {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
    min-width: 168px;
    text-align: left;
    box-shadow: 0 16px 34px rgba(9, 17, 28, 0.12);
}

.classification-trigger-label {
    color: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.classification-trigger-hint {
    color: var(--muted-dark);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: none;
}

.classification-trigger:hover,
.classification-trigger:focus-visible,
.classification-note.is-open .classification-trigger {
    border-color: rgba(216, 177, 91, 0.55);
    color: var(--text-dark);
    background: color-mix(in srgb, var(--primary-soft) 68%, var(--surface-strong));
    transform: translateY(-1px);
}

.classification-popover {
    position: absolute;
    left: 0;
    top: calc(100% + 12px);
    width: min(320px, 72vw);
    padding: 16px 18px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-strong) 94%, white);
    border: 1px solid rgba(18, 32, 51, 0.12);
    box-shadow: 0 22px 48px rgba(9, 17, 28, 0.22);
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.7;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 30;
}

.classification-popover::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 18px;
    width: 14px;
    height: 14px;
    background: color-mix(in srgb, var(--surface-strong) 94%, white);
    border-top: 1px solid rgba(18, 32, 51, 0.12);
    border-left: 1px solid rgba(18, 32, 51, 0.12);
    transform: rotate(45deg);
}

.classification-note:hover .classification-popover,
.classification-note:focus-within .classification-popover,
.classification-note.is-open .classification-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.section-accent .section-head p,
.section-accent .timeline-item p {
    color: rgba(237, 242, 247, 0.78);
}

.center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

/* History List */

.history-list {
    list-style: none;
    margin: 1.4rem 0;
}

.history-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--muted-dark);
    font-size: 1rem;
}

.history-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(216, 177, 91, 0.25);
}

.history-list li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 13px;
    width: 8px;
    height: 5px;
    border-left: 2px solid var(--button-text);
    border-bottom: 2px solid var(--button-text);
    transform: rotate(-45deg);
}

/* ============ Stats ============ */

.stats {
    padding: 110px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.stat-card {
    background: var(--surface-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 22px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 177, 91, 0.4);
}

.stat-card h3 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--primary);
    margin-bottom: 10px;
    font-family: var(--font-display);
}

.stat-card p {
    color: rgba(237, 242, 247, 0.78);
    font-size: 0.95rem;
    margin: 0;
}

.stat-card .classification-note {
    display: inline-flex;
    margin-top: 10px;
}

.classification-note-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

.stat-card-definition-shell {
    position: relative;
    padding: 0;
    overflow: visible;
}

.stat-card-definition {
    appearance: none;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: inherit;
    box-shadow: none;
    padding: 32px 22px;
}

.stat-card-definition-value {
    display: block;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--primary);
    margin-bottom: 10px;
    font-family: var(--font-display);
    line-height: 1;
}

.stat-card-definition-label {
    display: block;
    color: rgba(237, 242, 247, 0.78);
    font-size: 0.95rem;
    font-weight: 500;
}

.section-accent .classification-trigger {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(237, 242, 247, 0.18);
    color: var(--text-light);
}

.section-accent .stat-card-definition.classification-trigger {
    background: transparent;
    border-color: transparent;
}

.stat-card-definition.classification-trigger:hover,
.stat-card-definition.classification-trigger:focus-visible,
.classification-note.is-open .stat-card-definition.classification-trigger,
.section-accent .stat-card-definition.classification-trigger:hover,
.section-accent .stat-card-definition.classification-trigger:focus-visible,
.section-accent .classification-note.is-open .stat-card-definition.classification-trigger {
    background: transparent;
    border-color: transparent;
    transform: none;
}

.section-accent .classification-trigger-hint {
    color: rgba(237, 242, 247, 0.68);
}

.section-accent .classification-trigger:hover,
.section-accent .classification-trigger:focus-visible,
.section-accent .classification-note.is-open .classification-trigger {
    background: rgba(216, 177, 91, 0.16);
    border-color: rgba(216, 177, 91, 0.42);
    color: var(--text-light);
}

.section-accent .classification-popover {
    background: rgba(13, 24, 38, 0.96);
    border-color: rgba(216, 177, 91, 0.24);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
    color: rgba(237, 242, 247, 0.92);
}

.section-accent .classification-popover::before {
    background: rgba(13, 24, 38, 0.96);
    border-color: rgba(216, 177, 91, 0.24);
}

/* Timeline */

.timeline {
    list-style: none;
    display: grid;
    gap: 16px;
    max-width: 880px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 24px;
    padding: 24px 26px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.timeline-item:hover {
    border-color: rgba(216, 177, 91, 0.3);
    transform: translateX(4px);
}

.timeline-year {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--primary);
    font-size: 1.3rem;
}

.timeline-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

/* Blockquote */

blockquote {
    margin-top: 22px;
    padding: 22px 26px;
    border-left: 4px solid var(--primary);
    background: var(--primary-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-dark);
}

blockquote p {
    margin-bottom: 8px;
    color: var(--text-dark);
}

blockquote cite {
    font-family: var(--font-text);
    font-style: normal;
    font-size: 0.88rem;
    color: var(--muted-dark);
    font-weight: 600;
}

/* ============ Gallery ============ */

.gallery {
    padding: 110px 0;
}

/* ============ FAQ ============ */

.faq {
    padding: 110px 0;
}

.faq-list {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-strong) 90%, white);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 56px 22px 24px;
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 700;
    color: var(--text-dark);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-text);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    padding: 0 24px 22px;
    color: var(--muted-dark);
    line-height: 1.75;
}

.gallery-grid {
    list-style: none;
    column-count: 2;
    column-gap: 1.5rem;
}

@media (min-width: 980px) {
    .gallery-grid {
        column-count: 3;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.gallery-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-dark);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.gallery-trigger img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-trigger::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 55%);
    opacity: 0.5;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-trigger:hover,
.gallery-trigger:focus-visible {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -15px rgba(216, 177, 91, 0.26);
}

.gallery-trigger:hover img,
.gallery-trigger:focus-visible img {
    transform: scale(1.06);
}

.gallery-trigger:hover::after,
.gallery-trigger:focus-visible::after {
    opacity: 0.2;
}

/* ============ Lightbox ============ */

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 17, 28, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox[hidden] {
    display: none !important;
}

.lightbox.is-open {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-figure {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-caption {
    color: rgba(237, 242, 247, 0.78);
    font-size: 0.9rem;
    font-weight: 500;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-close {
    top: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    font-size: 32px;
    font-weight: 200;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    font-size: 36px;
    line-height: 1;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
    background: var(--primary);
    color: var(--button-text);
    transform: scale(1.08);
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
    transform: translateY(-50%) scale(1.08);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ============ Social section (no negative margin hack) ============ */

.social-section {
    position: relative;
    z-index: 20;
    margin-top: 0;
    padding: 24px 0 12px;
}

.contact-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 40px;
    background: var(--surface-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.contact-box h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    margin-bottom: 8px;
}

.contact-box p {
    color: var(--muted-dark);
    margin: 0;
    max-width: 480px;
}

/* ============ Contact CTA ============ */

.contact-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    padding: 56px;
    background: linear-gradient(135deg, var(--bg-soft), var(--surface-strong));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.contact-cta h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    margin-bottom: 12px;
}

.contact-cta p {
    color: var(--muted-dark);
    max-width: 520px;
    margin: 0;
}

/* ============ Contact Modal ============ */

body.modal-open {
    overflow: hidden;
}

body.modal-open .header,
body.modal-open main,
body.modal-open .footer,
body.modal-open .to-top {
    filter: blur(10px);
    transition: filter 0.25s ease;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 17, 28, 0.46);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.modal-overlay.is-open {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.modal-card {
    position: relative;
    width: min(720px, 100%);
    max-height: min(88vh, 920px);
    overflow-y: auto;
    padding: 36px;
    border-radius: 28px;
    background: color-mix(in srgb, var(--surface-strong) 92%, white);
    border: 1px solid var(--border-light);
    box-shadow: 0 30px 80px rgba(9, 17, 28, 0.24);
}

.modal-copy {
    margin-bottom: 24px;
}

.modal-copy h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 10px;
}

.modal-copy p {
    margin: 0;
    color: var(--muted-dark);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: rgba(9, 17, 28, 0.04);
    color: var(--secondary);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
    background: var(--primary-soft);
    color: var(--text-dark);
    transform: scale(1.04);
}

.conference-form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.01em;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-dark);
    padding: 0.9rem 1rem;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: rgba(216, 177, 91, 0.58);
    box-shadow: 0 0 0 4px rgba(216, 177, 91, 0.14);
    background: #fff;
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-field-hidden {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.form-status {
    margin: 0;
    min-height: 1.5em;
    color: var(--muted-dark);
    font-size: 0.94rem;
}

.form-status.is-success {
    color: #136f3a;
}

.form-status.is-error {
    color: #9f2c2c;
}

.conference-form.is-submitting .btn {
    opacity: 0.72;
    pointer-events: none;
}

/* ============ Footer ============ */

/* ============ Branding: History signature ============ */

.history-signature {
    margin-top: 22px;
    max-width: 140px;
}

.history-signature img {
    height: auto;
    width: 100%;
    max-width: 140px;
    border-radius: 0;
    opacity: 0.7;
    object-fit: contain;
}

/* ============ Footer branding ============ */

.footer {
    background: var(--bg-darker);
    color: rgba(237, 242, 247, 0.82);
    padding: 56px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-wrap {
    display: grid;
    grid-template-columns: 1.25fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.footer-brand-name {
    font-family: var(--font-display);
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}

.footer-tag {
    color: rgba(237, 242, 247, 0.62);
    font-size: 0.86rem;
    margin: 0;
}

.footer-lead {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 1.8rem;
    line-height: 1;
    margin: 0;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    justify-content: center;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.footer-social-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 0;
    box-shadow: 0 16px 28px rgba(9, 17, 28, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.footer-social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-social-icon-facebook {
    background: #1877f2;
}

.footer-social-icon-instagram {
    background: linear-gradient(135deg, #feda75 0%, #fa7e1e 24%, #d62976 52%, #962fbf 76%, #4f5bd5 100%);
}

.footer-social-icon:hover,
.footer-social-icon:focus-visible {
    filter: brightness(1.04);
    box-shadow: 0 20px 34px rgba(9, 17, 28, 0.28);
}

.footer-social-icon:hover,
.footer-social-icon:focus-visible {
    transform: translateY(-2px);
}

.footer-credits {
    color: rgba(237, 242, 247, 0.56);
    font-size: 0.78rem;
    margin: 0;
    text-align: right;
    letter-spacing: 0.02em;
}

.footer-credits a {
    color: rgba(237, 242, 247, 0.76);
    font-weight: 500;
}

.footer-credits a:hover,
.footer-credits a:focus-visible {
    color: var(--primary);
    text-decoration: underline;
}

/* ============ Scroll to top ============ */

.to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--button-text);
    border: none;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(216, 177, 91, 0.32);
    transition: transform 0.25s ease, background 0.25s ease, opacity 0.3s ease;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.to-top[hidden] {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.to-top:hover,
.to-top:focus-visible {
    background: var(--primary-hover);
    transform: translateY(-4px);
}

/* ============ Responsive ============ */

@media (max-width: 980px) {
    .hero-grid,
    .two-columns,
    .movement-grid,
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-impact {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-image picture,
    .image-card picture {
        aspect-ratio: 16 / 11;
        max-width: 640px;
        margin: 0 auto;
    }

    .hero-image {
        max-width: 520px;
        margin: 0 auto;
    }

    .hero-image > img {
        aspect-ratio: 7 / 10;
    }

    .history-media {
        max-width: 640px;
        margin: 0 auto;
    }

    .history-media picture,
    .history-media img {
        aspect-ratio: auto;
    }

    .movement-logo-card {
        max-width: 640px;
        margin: 0 auto;
        width: 100%;
    }

    .contact-box,
    .contact-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px;
    }

    .faq {
        padding: 88px 0;
    }

    .modal-card {
        padding: 32px 26px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .footer-credits {
        text-align: center;
    }

    .classification-popover {
        width: min(320px, calc(100vw - 48px));
    }
}

@media (max-width: 768px) {
    .footer-logo {
        height: 44px;
    }

    .logo-mark {
        height: 36px;
    }

    .menu-toggle {
        display: block;
        margin-left: 0;
        position: relative;
        z-index: 3;
    }

    .nav {
        position: absolute;
        top: 86px;
        left: 0;
        right: 0;
        background: rgba(9, 17, 28, 0.96);
        border-top: 1px solid var(--header-border);
        display: none;
        flex-direction: column;
        padding: 24px;
        gap: 18px;
    }

    .nav.active {
        display: flex;
    }

    .hero {
        padding: 88px 0 68px;
    }

    .movement,
    .about,
    .stats,
    .featured,
    .gallery,
    .contact {
        padding: 80px 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px;
    }

    .contact-cta {
        padding: 32px 24px;
        text-align: left;
    }

    .header.header-scrolled {
        -webkit-backdrop-filter: blur(8px) saturate(120%);
        backdrop-filter: blur(8px) saturate(120%);
    }

    .classification-popover,
    .modal-overlay {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .classification-note {
        align-items: flex-start;
    }

    .classification-note-block {
        align-items: stretch;
    }

    .classification-trigger-card {
        min-width: min(100%, 220px);
    }

    .modal-overlay {
        padding: 18px;
    }

    .classification-popover {
        left: 0;
        right: auto;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
    .lightbox-close { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 26px; }

    .to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 560px) {
    .nav-wrap {
        min-height: 72px;
    }

    .logo-mark {
        height: 32px;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(2.5rem, 11vw, 3.5rem);
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.75;
    }

    .hero-actions,
    .contact-actions {
        width: 100%;
    }

    .hero-actions .btn,
    .contact-actions .btn {
        width: 100%;
    }

    .faq-item summary {
        padding: 20px 52px 20px 20px;
        font-size: 1.15rem;
    }

    .faq-item p {
        padding: 0 20px 20px;
    }

    .classification-trigger {
        width: fit-content;
    }

    .stat-card-definition {
        width: 100%;
    }

    .classification-trigger-card {
        width: 100%;
        min-width: 0;
    }

    .impact-item {
        padding: 16px;
    }

    .contact-box,
    .contact-cta {
        padding: 28px 20px;
    }

    .modal-card {
        padding: 28px 18px 22px;
        border-radius: 22px;
    }

    .form-actions .btn {
        width: 100%;
    }

    .footer-wrap {
        gap: 18px;
    }
}

/* ============ Reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .gallery-trigger:hover img,
    .gallery-trigger:focus-visible img {
        transform: none;
    }
}
