/* ===================================================
   ESPACIO DE MEMORIA — Ex Comisaría Cuarta
   Solemn, respectful memorial website styles
   =================================================== */

/* --- CSS CUSTOM PROPERTIES --- */
:root {
    /* Colors */
    --color-blue: #2B5EA7;
    --color-blue-dark: #1E4A85;
    --color-blue-light: #3A72BE;
    --color-black: #1A1A1A;
    --color-dark: #2C2C2C;
    --color-gold: #C5A55A;
    --color-gold-dark: #A88B3D;
    --color-gold-light: #D4B96A;
    --color-beige: #D4C5A0;
    --color-beige-light: #E8DCC4;
    --color-cream: #F0EBE0;
    --color-gray: #8A8A8A;
    --color-gray-light: #B5B5B5;
    --color-white: #FAFAF7;
    --color-text: #2C2C2C;
    --color-text-light: #F0EBE0;

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --header-height: 72px;
    --footer-height: auto;

    /* Transitions */
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s ease;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-cream);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(212, 197, 160, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    height: var(--header-height);
    transition: background var(--transition-smooth);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--color-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    border-radius: 4px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.2;
    color: var(--color-black);
    text-transform: uppercase;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 400;
    color: var(--color-gray);
    letter-spacing: 0.5px;
    font-style: italic;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: 4px;
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-blue);
    transition: width var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link.active {
    color: var(--color-blue);
}

.nav-link:hover {
    color: var(--color-blue);
    background: rgba(43, 94, 167, 0.06);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-black);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- HORIZONTAL SCROLL LAYOUT --- */
.horizontal-scroll {
    display: flex;
    width: fit-content;
    height: 100vh;
    box-sizing: border-box;
    padding-top: var(--header-height);
    transition: transform 0.1s ease-out;
    align-items: flex-start;
}

/* --- PANELS (each section) --- */
.panel {
    width: 100vw;
    height: calc(100vh - var(--header-height));
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* --- INICIO / HERO --- */
.panel-inicio {
    background: var(--color-black);
}

.hero-overlay {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    filter: grayscale(30%);
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
}

.hero-badge {
    margin-bottom: 32px;
}

.hero-mvj {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 12px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

.hero-text-block {
    max-width: 800px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px 48px;
    border-radius: 4px;
    border-left: 4px solid var(--color-gold);
}

.hero-text-block p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.hero-text-block p:last-child {
    margin-bottom: 0;
}

.hero-text-block strong {
    color: var(--color-gold-light);
    font-weight: 600;
}

/* --- HERO NAVIGATION & FOOTER --- */
.hero-navigation {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 48px;
    pointer-events: none;
    z-index: 10;
}

.hero-arrow-down,
.hero-arrow-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    cursor: pointer;
    color: var(--color-white);
    opacity: 0.8;
    transition: all var(--transition-fast);
}

.hero-arrow-right {
    flex-direction: row;
}

.hero-arrow-down:hover,
.hero-arrow-right:hover {
    opacity: 1;
    transform: scale(1.05);
}

.hero-arrow-text {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-chevron {
    width: 20px;
    height: 20px;
    border-right: 3px solid var(--color-white);
    border-bottom: 3px solid var(--color-white);
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}

.hero-chevron.down {
    transform: rotate(45deg);
    animation: bounceDown 2s infinite;
}

.hero-chevron.right {
    transform: rotate(-45deg);
    animation: bounceRight 2s infinite;
}

@keyframes bounceDown {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(-10px) rotate(45deg);
    }

    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

@keyframes bounceRight {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(0) rotate(-45deg);
    }

    40% {
        transform: translateX(10px) rotate(-45deg);
    }

    60% {
        transform: translateX(5px) rotate(-45deg);
    }
}

/* Mini Footer */
.hero-mini-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(43, 94, 167, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(100%);
    transition: transform var(--transition-smooth);
    z-index: 15;
    border-top: 2px solid var(--color-gold);
}

.hero-mini-footer.active {
    transform: translateY(0);
}

.hero-mini-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-mini-footer p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-white);
}

.hero-mini-footer strong {
    color: var(--color-gold-light);
}

.hero-footer-close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.hero-footer-close:hover {
    opacity: 1;
}

/* --- TIMELINE OVERVIEW --- */
.panel-timeline {
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-container {
    text-align: center;
    padding: 40px;
    width: 100%;
    max-width: 1100px;
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: 8px;
}

.section-title-alt {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 60px;
}

.timeline-arrows {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.timeline-arrow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    /* Fixed width to make them all exactly identical */
    height: 120px;
    /* Fixed height to match reference closely */
    padding: 10px 30px 10px 40px;
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%, 28px 50%);
    text-decoration: none;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.timeline-arrow:first-child {
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%);
    padding-left: 32px;
}

.timeline-arrow:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.arrow-blue {
    background: #004DA0;
    color: white;
}

.arrow-black {
    background: #000000;
    color: white;
}

.arrow-gray {
    background: #9EA1A2;
    color: var(--color-black);
}

.arrow-white {
    background: #FFFFFF;
    color: var(--color-black);
    border: 1px solid #D4C5A0;
    /* Subtle border to distinguish perfectly white arrow if needed */
}

.arrow-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.arrow-dates {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.arrow-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    max-width: 160px;
    line-height: 1.4;
}

/* --- SECTION HEADERS --- */
.section-header {
    padding: 32px 48px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.section-header h2,
.section-header h3 {
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
}

.section-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
}

/* Header color themes */
.header-blue,
.header-dark,
.header-gold,
.header-white {
    background: var(--color-blue);
    color: white;
    /* Arrow shape pointing right */
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 50%, calc(100% - 40px) 100%, 0 100%);
    padding-right: 80px;
    width: 60%;
    /* Default width */
    margin: 0 auto;
}

.header-dark {
    background: var(--color-black);
    color: var(--color-beige-light);
}

.header-gold {
    background: var(--color-gold);
    color: var(--color-black);
}

/* COMPACT HEADER OVERLAP (Global Utility for specific sections) */
.panel-comisaria .section-header,
.panel-detencion .section-header,
.panel-reconocimiento .section-header,
.panel-espacio .section-header {
    position: absolute;
    top: 32px;
    left: 0;
    width: auto;
    margin: 0;
    padding: 16px 60px 16px 32px;
    z-index: 20;
    text-align: left;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.panel-comisaria .section-header.header-blue h2,
.panel-detencion .section-header.header-dark h2,
.panel-reconocimiento .section-header.header-gold h2,
.panel-espacio .section-header.header-white h2 {
    font-size: 22px;
    /* Increased from 18px */
}

.panel-comisaria .section-header.header-blue h3,
.panel-detencion .section-header.header-dark h3,
.panel-reconocimiento .section-header.header-gold h3,
.panel-espacio .section-header.header-white h3 {
    font-size: 18px;
    /* Increased from 14px */
}

/* COMPACT DETENCION HEADER OVERLAP */
.panel-detencion .section-header.header-dark {
    position: absolute;
    top: 32px;
    left: 0;
    width: auto;
    margin: 0;
    padding: 16px 60px 16px 32px;
    z-index: 20;
    text-align: left;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    /* Stronger shadow on dark background */
}

.panel-detencion .section-header.header-dark h2 {
    font-size: 20px;
}

.panel-detencion .section-header.header-dark h3 {
    font-size: 16px;
    color: var(--color-gray-light);
}

.header-dark::before {
    background: var(--color-black);
}

.header-gold::before {
    background: var(--color-gold);
}

.header-white::before {
    background: var(--color-white);
}

.header-white {
    background: var(--color-white);
    color: var(--color-text);
}

/* --- SECTION BODY --- */
.section-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: var(--color-cream);
}

/* Gallery Strips */
.gallery-strip {
    display: flex;
    gap: 4px;
    padding: 32px 48px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-item {
    width: 320px;
    height: 240px;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
    filter: grayscale(20%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.gallery-wide {
    width: 600px;
}

/* Section Text Blocks */
.section-text {
    padding: 32px 48px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.section-text p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.85;
    color: var(--color-text);
    margin-bottom: 16px;
    text-align: justify;
}

.section-text p:last-child {
    margin-bottom: 0;
}

.text-blue {
    border-left: 4px solid var(--color-blue);
    background: rgba(43, 94, 167, 0.04);
    padding-left: 32px;
    margin: 24px 48px 40px;
    padding-top: 24px;
    padding-bottom: 24px;
    border-radius: 0 4px 4px 0;
}

.text-dark {
    border-left: 4px solid var(--color-black);
    background: rgba(0, 0, 0, 0.04);
    padding-left: 32px;
    margin: 24px 48px 40px;
    padding-top: 24px;
    padding-bottom: 24px;
    border-radius: 0 4px 4px 0;
}

.text-dark strong {
    color: var(--color-black);
}

.text-gold {
    border-left: 4px solid var(--color-gold);
    background: rgba(197, 165, 90, 0.06);
    padding-left: 32px;
    margin: 24px 48px 40px;
    padding-top: 24px;
    padding-bottom: 24px;
    border-radius: 0 4px 4px 0;
}

.text-neutral {
    border-left: 4px solid var(--color-beige);
    background: rgba(212, 197, 160, 0.1);
    padding-left: 32px;
    margin: 24px 48px 40px;
    padding-top: 24px;
    padding-bottom: 24px;
    border-radius: 0 4px 4px 0;
}

/* --- SECTION SPLIT LAYOUT --- */
.content-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0px 0 32px;
}

.text-comisaria {
    position: relative;
    margin: 0 auto;
    max-width: 900px;
    width: 90%;
    z-index: 10;
    bottom: auto;
    left: auto;
    text-align: center;
    background-color: var(--color-blue);
    color: white;
    padding: 24px 32px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.text-comisaria p {
    color: white;
}

.text-detencion {
    position: relative;
    margin: 0 auto;
    max-width: 900px;
    width: 90%;
    z-index: 10;
    bottom: auto;
    left: auto;
    text-align: center;
    background-color: var(--color-black);
    /* Matching dark header theme */
    color: white;
    padding: 24px 32px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.text-detencion p {
    color: white;
}

.text-reconocimiento {
    position: relative;
    margin: 0 auto;
    max-width: 900px;
    width: 90%;
    z-index: 10;
    bottom: auto;
    left: auto;
    text-align: center;
    background-color: var(--color-gold);
    color: var(--color-black);
    padding: 20px 32px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

/* --- NESTED TIMELINE BAR --- */
.nested-timeline-bar {
    position: relative;
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
}

.nested-timeline-track {
    position: absolute;
    top: 50%;
    left: 60px;
    right: 60px;
    height: 3px;
    transform: translateY(8px);
    z-index: 0;
}

.nested-timeline-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--color-beige);
    border-radius: 2px;
}

.nested-timeline-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- RECOGNITION TIMELINE --- */
.recognition-timeline-hint {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    opacity: 0.8;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recognition-timeline-hint::before,
.recognition-timeline-hint::after {
    content: '•';
    color: var(--color-gold);
}

.recognition-timeline-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.recognition-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 80px 20px 20px;
}

.recognition-timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 1300px;
    overflow-x: auto;
    padding-bottom: 10px;
    position: relative;
    z-index: 1;
}

.recognition-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 120px;
    transition: all 0.3s ease;
    filter: opacity(0.5);
    cursor: pointer;
    position: relative;
}

.recognition-item.active {
    filter: none;
    opacity: 1;
    transform: translateY(-8px);
}

/* Dot indicator */
.recognition-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gray);
    border: 2px solid var(--color-cream);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.recognition-item:hover .recognition-dot {
    background: var(--color-gold);
    transform: scale(1.2);
}

.recognition-item.active .recognition-dot {
    background: var(--color-gold);
    border-color: var(--color-gold-dark);
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(197, 165, 90, 0.6), 0 0 24px rgba(197, 165, 90, 0.3);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(197, 165, 90, 0.6), 0 0 24px rgba(197, 165, 90, 0.3); }
    50% { box-shadow: 0 0 18px rgba(197, 165, 90, 0.8), 0 0 36px rgba(197, 165, 90, 0.4); }
}

.recognition-chevron {
    position: relative;
    width: 100%;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.recognition-item.active .recognition-chevron {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: scale(1.05);
}

.recognition-chevron.gold {
    background: var(--color-gold);
    color: #000;
}

.recognition-chevron.black {
    background: var(--color-black);
    color: #fff;
}

.recognition-chevron.gray {
    background: #D1D1D1;
    color: #000;
}

.recognition-chevron .year {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.1;
}

.recognition-chevron .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dynamic content fade transition */
.recognition-dynamic-container {
    width: 100%;
    max-width: 900px;
    transition: opacity 0.35s ease;
}

.recognition-dynamic-container.fading {
    opacity: 0;
}

.recognition-image-box {
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid #fff;
    transition: all 0.3s ease;
}

.recognition-item.active .recognition-image-box {
    border-color: var(--color-gold);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.recognition-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.recognition-item:hover .recognition-image-box img {
    transform: rotate(1deg) scale(1.05);
}

.recognition-detail {
    font-family: var(--font-body);
    font-size: 11px;
    text-align: center;
    color: var(--color-black);
    font-weight: 500;
    max-width: 120px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.recognition-item.active .recognition-detail {
    opacity: 1;
    color: var(--color-black);
    font-weight: 700;
    transform: scale(1.1);
}

.recognition-image-box:hover img {
    transform: scale(1.08);
}

/* --- 3D POLAROID CAROUSEL --- */
.comisaria-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    /* Perspective for the 3D depth */
    margin-bottom: 20px;
    margin-top: 20px;
    /* Add some space at top since header is absolute */
}

.polaroid-carousel {
    position: relative;
    width: 500px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.polaroid-card {
    position: absolute;
    width: 320px;
    height: 380px;
    background: #fff;
    padding: 16px 16px 48px 16px;
    /* Thick bottom border for polaroid text */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    will-change: transform, opacity;
}

.polaroid-card::after {
    /* Subtle paper texture/gradient overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.polaroid-inner {
    width: 100%;
    height: 100%;
    background: #111;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.polaroid-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(10%) contrast(105%);
    /* slight vintage feel */
    transition: transform 0.4s ease;
}

.polaroid-card.active .polaroid-inner img:hover {
    transform: scale(1.03);
}

/* Active center card */
.polaroid-card.active {
    transform: translateX(0) translateZ(50px) rotateY(0deg);
    opacity: 1;
    z-index: 10;
    cursor: zoom-in;
}

/* Left card (previous) */
.polaroid-card.prev {
    transform: translateX(-55%) translateZ(-100px) rotateY(15deg) rotateZ(-4deg);
    opacity: 0.8;
    z-index: 5;
}

/* Right card (next) */
.polaroid-card.next {
    transform: translateX(55%) translateZ(-100px) rotateY(-15deg) rotateZ(3deg);
    opacity: 0.8;
    z-index: 5;
}

/* Hidden cards (if more than 3) */
.polaroid-card.hidden {
    transform: translateX(0) translateZ(-250px) translateY(40px);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-fast);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--color-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 40px;
}

.next-btn {
    right: 40px;
}

.zoom-hint {
    position: absolute;
    bottom: -10px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-gray);
    font-style: italic;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.zoom-hint.hint-light {
    color: #444;
    background: rgba(255, 255, 255, 0.9);
}

/* --- SMALLER CAROUSEL FOR RECONOCIMIENTO --- */
.recognition-carousel-wrapper .polaroid-carousel {
    width: 380px;
    height: 280px;
    margin-bottom: 0;
}

.recognition-carousel-wrapper .polaroid-card {
    width: 200px;
    height: 250px;
    padding: 10px 10px 32px 10px;
}

.recognition-carousel-wrapper .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.recognition-carousel-wrapper .prev-btn {
    left: 20px;
}

.recognition-carousel-wrapper .next-btn {
    right: 20px;
}

.recognition-carousel-wrapper .zoom-hint {
    bottom: -5px;
    font-size: 11px;
}


/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border: 4px solid white;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2010;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- SUB-TIMELINE (Reconocimiento) --- */
.sub-timeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 24px 48px;
    overflow-x: auto;
    position: relative;
    justify-content: center;
    flex-wrap: wrap;
}

.sub-timeline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 80px;
    right: 80px;
    height: 2px;
    background: var(--color-beige);
    z-index: 0;
}

.sub-timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid var(--color-beige);
    position: relative;
    z-index: 1;
    min-width: 120px;
    transition: all var(--transition-smooth);
    margin: 4px;
}

.sub-timeline-item:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.sub-year {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-gold-dark);
}

.sub-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    color: var(--color-text);
    line-height: 1.4;
    max-width: 120px;
}

/* --- PLACEHOLDER SECTIONS --- */
.panel-placeholder {
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    padding: 60px;
    max-width: 600px;
}

.placeholder-content h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
}

.placeholder-content p {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-gray);
    line-height: 1.7;
}

.placeholder-icon {
    font-size: 64px;
    margin-top: 32px;
    opacity: 0.3;
}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.08);
    z-index: 999;
}

.scroll-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-blue), var(--color-gold));
    transition: width 0.1s ease-out;
}

/* --- FOOTER PANEL --- */
.panel-footer {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

/* --- FOOTER --- */
.site-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-beige);
    color: var(--color-text);
    padding: 48px 24px 24px;
    border-top: 3px solid var(--color-gold);
    position: relative;
    z-index: 10;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-black);
}

.footer-col p {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.footer-col a {
    color: var(--color-blue-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-blue);
}

.subscribe-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 500;
    color: var(--color-blue-dark) !important;
}

.footer-bottom {
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-gray);
    letter-spacing: 1px;
}

/* --- ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- RESPONSIVE: TABLET --- */
@media (max-width: 1024px) {
    .timeline-arrows {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .timeline-arrow {
        clip-path: none;
        border-radius: 8px;
        padding: 20px 28px;
        min-width: 180px;
    }

    .timeline-arrow:first-child {
        clip-path: none;
        padding-left: 28px;
    }

    .gallery-item {
        width: 260px;
        height: 200px;
    }

    .gallery-wide {
        width: 400px;
    }

    .header-blue,
    .header-dark {
        clip-path: none;
        padding-right: 48px;
    }
}

/* --- RESPONSIVE: MOBILE --- */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    /* Switch to vertical scroll on mobile */
    .horizontal-scroll {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: auto;
    }

    .panel {
        width: 100%;
        min-height: auto;
    }

    .panel-inicio {
        min-height: 100vh;
    }

    .hero-overlay {
        height: 100vh;
        min-height: 600px;
    }

    /* Hamburger visible */
    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-beige);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 4px;
        transition: right var(--transition-smooth);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-link {
        font-size: 14px;
        padding: 14px 16px;
        width: 100%;
        text-align: left;
        border-radius: 8px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(43, 94, 167, 0.1);
    }

    /* Timeline arrows */
    .timeline-arrows {
        flex-direction: column;
        gap: 12px;
    }

    .timeline-arrow {
        width: 100%;
        max-width: 320px;
    }

    .section-title-alt {
        font-size: 28px;
        margin-bottom: 32px;
    }

    /* Section headers */
    .section-header {
        padding: 24px 20px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .section-header h3 {
        font-size: 18px;
    }

    .header-blue,
    .header-dark {
        clip-path: none;
        padding-right: 20px;
    }

    /* Gallery */
    .gallery-strip {
        padding: 20px;
        gap: 12px;
    }

    .gallery-item {
        width: 100%;
        max-width: 400px;
        height: 220px;
    }

    .gallery-wide {
        width: 100%;
        max-width: 400px;
    }

    /* Text */
    .section-text,
    .text-blue,
    .text-dark,
    .text-gold,
    .text-neutral {
        margin: 16px 16px 32px;
        padding: 20px 20px 20px 24px;
    }

    .section-text p {
        font-size: 14px;
        text-align: left;
    }

    /* Hero */
    .hero-content {
        padding: 40px 20px;
    }

    .hero-mvj {
        font-size: 28px;
        letter-spacing: 8px;
        padding: 8px 20px;
    }

    .hero-text-block {
        padding: 24px 20px;
    }

    .hero-text-block p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Sub-timeline */
    .sub-timeline {
        padding: 16px 12px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .sub-timeline::after {
        display: none;
    }

    .sub-timeline-item {
        min-width: 100px;
        padding: 12px 14px;
    }

    .sub-year {
        font-size: 18px;
    }

    .sub-label {
        font-size: 10px;
        max-width: 100px;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Scroll indicator */
    .scroll-indicator {
        display: none;
    }

    /* Placeholder */
    .placeholder-content {
        padding: 40px 20px;
    }

    .placeholder-content h2 {
        font-size: 30px;
    }
}

/* --- RESPONSIVE: SMALL MOBILE --- */
@media (max-width: 420px) {
    .logo-text {
        display: none;
    }

    .hero-text-block {
        padding: 20px 16px;
    }

    .header-inner {
        padding: 0 16px;
    }
}

/* --- OVERLAY for mobile menu --- */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}

/* --- KEYBOARD NAVIGATION HINT --- */
.scroll-hint {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 998;
    opacity: 0.8;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

.scroll-hint.hidden {
    opacity: 0;
}

.scroll-hint-arrow {
    font-size: 16px;
    animation: bounceHorizontal 1.5s infinite;
}

@keyframes bounceHorizontal {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(6px);
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--color-beige);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* --- FUNCIONAMIENTO --- */
.panel-funcionamiento {
    background-image: url('img/imagen30.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-funcionamiento::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.funcionamiento-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
    max-width: 900px;
}

.large-text-box {
    background: rgba(0, 0, 0, 0.75);
    color: var(--color-beige-light);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

.large-text-box h2 {
    font-size: 28px;
    color: var(--color-gold);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.large-text-box p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--color-white);
}

.large-text-box p:last-child {
    margin-bottom: 0;
}

/* --- ¿QUÉ HACEMOS? --- */
.panel-que-hacemos {
    background-color: var(--color-beige-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 20px 40px; /* Reduced from 100px top */
}

.que-hacemos-header {
    text-align: center;
    margin-bottom: 20px; /* Reduced from 40px */
}

.que-hacemos-header h2 {
    font-size: 42px;
    color: var(--color-text);
    position: relative;
    display: inline-block;
}

.que-hacemos-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 20%;
    right: 20%;
    height: 4px;
    background-color: var(--color-gold);
}

.botones-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
}

.btn-image-link {
    display: block;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.btn-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: 1px;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,1),
        -1px -1px 4px rgba(0,0,0,1),
        1px -1px 4px rgba(0,0,0,1),
        -1px 1px 4px rgba(0,0,0,1),
        0 8px 20px rgba(0,0,0,0.9);
    pointer-events: none;
    z-index: 10;
}

.btn-image-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.img-btn {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.que-hacemos-footer-text {
    margin-top: 20px; /* Reduced from 50px */
    text-align: center;
    max-width: 800px;
    font-family: var(--font-body);
}

.que-hacemos-footer-text h3 {
    font-size: 18px;
    color: var(--color-black);
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.que-hacemos-footer-text p {
    font-size: 14px;
    color: var(--color-gray-dark);
    line-height: 1.6;
}

/* --- SLIDE NAV BUTTONS --- */
.slide-nav-wrapper {
    position: absolute;
    bottom: 80px;
    left: 40px;
    right: 40px;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* Let clicks pass through empty space */
}

.slide-nav-btn {
    pointer-events: auto; /* Re-enable for the buttons themselves */
    background-color: var(--color-gold);
    color: var(--color-black);
    border: 2px solid var(--color-gold);
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.slide-nav-next {
    margin-left: auto; /* Ensure it stays on the right even if prev is missing */
}

.slide-nav-btn:hover {
    background-color: transparent;
    color: var(--color-gold);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.slide-nav-next:hover {
    transform: translateX(5px);
}

.slide-nav-prev {
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--color-gold);
}

.slide-nav-prev:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
    transform: translateX(-5px);
}

.slide-nav-btn span {
    font-size: 20px;
    line-height: 1;
}

.timeline-instruction {
    font-size: 18px;
    color: var(--color-gold);
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 30px;
    text-align: center;
}

@media (max-width: 768px) {
    .slide-nav-wrapper {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 20px auto;
        display: flex;
        justify-content: space-between;
        gap: 15px;
        padding: 0 20px;
    }
}

/* --- PAGINA RECORRIDOS EDUCATIVOS --- */
.panel-recorridos {
    background-color: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recorridos-wrapper {
    padding: 60px 40px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.btn-volver-inicio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-black);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.btn-volver-inicio:hover {
    color: var(--color-gold);
}

.split-layout {
    display: flex;
    gap: 60px;
    align-items: center;
}

.split-left {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.split-left h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--color-blue);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.split-left h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--color-gold);
}

.split-left .text-content p {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 24px;
    text-align: justify;
}

.btn-formulario {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background-color: var(--color-blue);
    color: white;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-formulario:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.split-right {
    flex: 1;
}

.collage-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10px;
}

.collage-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 6px solid white;
    background-color: white;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.collage-item.offset-right {
    transform: rotate(3deg);
    margin-left: 30px;
}

.collage-item:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 10;
    position: relative;
}

.collage-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
    }
    
    .collage-item.offset-right {
        margin-left: 0;
    }
}

/* --- PAGINAS RONDAS DE MEMORIA Y ACTIVIDADES ESPECIALES --- */
.panel-rondas, .panel-actividades {
    background-color: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rondas-wrapper {
    padding: 60px 40px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.top-bottom-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    align-items: center;
}

.split-top {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.split-top h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--color-blue);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.split-top .text-content {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
}

.split-top .text-content p {
    margin-bottom: 15px;
}

.split-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.collage-horizontal {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.collage-item-h {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    height: 250px;
    border: 8px solid white;
    border-bottom: 24px solid white;
    box-sizing: border-box;
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collage-item-h:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 10;
}

.collage-item-h img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 992px) {
    .collage-horizontal {
        flex-wrap: wrap;
    }
    .collage-item-h {
        flex: 1 1 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .collage-item-h {
        flex: 1 1 100%;
        height: auto;
        min-height: 200px;
    }
    .split-top h2 {
        font-size: 32px;
    }
}