:root {
--primary-blue: #0a2540;
--navy-blue: #1a365d;
--accent-red: #e63946;
--vibrant-red: #d90429;
--light-bg: #ffffff;
--card-shadow: 0 10px 30px rgba(10, 37, 64, 0.06);
--pill-shadow: 0 4px 15px rgba(217, 4, 41, 0.25);
}

body {
font-family: 'Outfit', sans-serif;
background-color: #ffffff;
color: #2d3748;
overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-heading {
font-family: 'Montserrat', sans-serif;
}

.btn-pill-red {
background-color: var(--vibrant-red);
color: #ffffff !important;
border-radius: 50rem;
padding: 0.6rem 1.6rem;
font-weight: 600;
border: none;
box-shadow: var(--pill-shadow);
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
display: inline-flex;
align-items: center;
gap: 8px;
text-decoration: none;
}

.btn-pill-red:hover {
background-color: #b80220;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(217, 4, 41, 0.45);
color: #ffffff;
}

.btn-pill-red:active {
transform: translateY(0);
}

.btn-pill-outline {
border: 2px solid var(--vibrant-red);
color: var(--vibrant-red) !important;
background: transparent;
border-radius: 50rem;
padding: 0.5rem 1.4rem;
font-weight: 600;
transition: all 0.3s ease;
}

.btn-pill-outline:hover {
background-color: var(--vibrant-red);
color: #ffffff !important;
}

.header-nav {
background: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(10px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
position: sticky;
top: 0;
z-index: 1040;
border-bottom: 1px solid #f1f5f9;
}

.brand-logo-container {
display: flex;
align-items: center;
gap: 12px;
}

.brand-logo-svg {
height: 52px;
width: auto;
}

/* Menú Offcanvas a Pantalla Completa */
.offcanvas-menu-modal {
background-color: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(15px);
}

.menu-pill-list {
display: flex;
flex-direction: column;
gap: 14px;
max-width: 320px;
margin: 0 auto;
}

.menu-pill-list .btn-pill-red {
justify-content: center;
font-size: 1.1rem;
padding: 0.85rem 1.5rem;
width: 100%;
text-align: center;
}

.hero-section {
background: #ffffff;
color: var(--primary-blue);
padding: 3.5rem 1rem 4rem 1rem;
position: relative;
border-bottom-right-radius: 40px;
border-bottom-left-radius: 40px;
overflow: hidden;
border-bottom: 1px solid #f1f5f9;
}

.hero-section::before {
content: '';
position: absolute;
top: -20%;
right: -10%;
width: 350px;
height: 350px;
background: rgba(10, 37, 64, 0.02);
border-radius: 50%;
pointer-events: none;
}

.hero-badge {
background: rgba(217, 4, 41, 0.08);
border: 1px solid rgba(217, 4, 41, 0.2);
color: var(--vibrant-red);
padding: 6px 16px;
border-radius: 50px;
font-size: 0.85rem;
letter-spacing: 1px;
text-transform: uppercase;
font-weight: 700;
}

.hero-title {
color: var(--primary-blue);
font-size: 2.2rem;
font-weight: 800;
line-height: 1.25;
letter-spacing: -0.5px;
}

@media (min-width: 768px) {
.hero-title {
font-size: 3.2rem;
}
}

.hero-subtitle {
color: #4a5568;
font-size: 1.15rem;
font-weight: 400;
}

/* Tarjetas de Acceso Rápido en Hero */
.quick-card {
background: #ffffff;
border-radius: 20px;
padding: 1.5rem;
color: var(--primary-blue);
box-shadow: var(--card-shadow);
transition: all 0.3s ease;
height: 100%;
border: 1px solid #e2e8f0;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.quick-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(10, 37, 64, 0.1);
border-color: var(--vibrant-red);
}

.quick-card-icon {
width: 50px;
height: 50px;
border-radius: 14px;
background: rgba(10, 37, 64, 0.06);
color: var(--primary-blue);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.4rem;
margin-bottom: 1rem;
}

.section-padding {
padding: 4rem 0;
}

.section-title {
color: var(--primary-blue);
font-weight: 800;
font-size: 2rem;
margin-bottom: 0.5rem;
position: relative;
}

.section-subtitle {
color: var(--vibrant-red);
font-weight: 600;
font-size: 1.1rem;
margin-bottom: 2rem;
}

.director-img-wrapper {
position: relative;
border-radius: 24px;
overflow: hidden;
box-shadow: var(--card-shadow);
}

.director-img {
width: 100%;
height: auto;
object-fit: cover;
border-radius: 24px;
display: block;
}

.director-caption-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 1.5rem;
background: linear-gradient(to top, rgba(10, 37, 64, 0.95), transparent);
color: #ffffff;
border-bottom-left-radius: 24px;
border-bottom-right-radius: 24px;
}

.quote-box {
background: #ffffff;
border-left: 5px solid var(--vibrant-red);
padding: 2rem;
border-radius: 0 20px 20px 0;
box-shadow: var(--card-shadow);
}

/* Tarjetas de Historia Institucional */
.history-card {
background: #ffffff;
border-radius: 20px;
padding: 2rem;
box-shadow: var(--card-shadow);
position: relative;
}

.timeline-badge {
background: var(--primary-blue);
color: white;
padding: 4px 14px;
border-radius: 50px;
font-weight: 700;
font-size: 0.9rem;
display: inline-block;
margin-bottom: 1rem;
}

.timeline-wrapper {
position: relative;
padding-left: 1.5rem;
}

@media (min-width: 768px) {
.timeline-wrapper {
padding-left: 2.5rem;
}
}

.timeline-wrapper::before {
content: '';
position: absolute;
top: 0;
bottom: 0;
left: 0.45rem;
width: 4px;
background: linear-gradient(to bottom, var(--vibrant-red), var(--primary-blue));
border-radius: 4px;
}

@media (min-width: 768px) {
.timeline-wrapper::before {
left: 0.95rem;
}
}

.decade-block {
position: relative;
margin-bottom: 4rem;
}

.decade-block:last-child {
margin-bottom: 1rem;
}

.decade-marker {
position: absolute;
left: -1.5rem;
top: 0.35rem;
width: 22px;
height: 22px;
border-radius: 50%;
background-color: var(--vibrant-red);
border: 4px solid #ffffff;
box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.25);
z-index: 2;
}

@media (min-width: 768px) {
.decade-marker {
left: -2.05rem;
width: 26px;
height: 26px;
}
}

.decade-header {
margin-bottom: 1.75rem;
}

.decade-pill {
background-color: var(--primary-blue);
color: #ffffff;
font-family: 'Montserrat', sans-serif;
font-weight: 800;
font-size: 0.95rem;
padding: 6px 18px;
border-radius: 50rem;
display: inline-flex;
align-items: center;
gap: 8px;
margin-bottom: 0.6rem;
box-shadow: 0 4px 12px rgba(10, 37, 64, 0.15);
}

.decade-title {
color: var(--primary-blue);
font-weight: 800;
font-size: 1.65rem;
margin-bottom: 0.35rem;
}

.decade-subtitle {
color: #64748b;
font-size: 1.05rem;
margin-bottom: 0;
}

.gallery-card {
border-radius: 20px;
overflow: hidden;
background: #ffffff;
box-shadow: var(--card-shadow);
cursor: pointer;
transition: all 0.35s ease;
height: 100%;
border: 1px solid rgba(226, 232, 240, 0.9);
position: relative;
}

.gallery-card:hover {
transform: translateY(-8px);
box-shadow: 0 18px 40px rgba(10, 37, 64, 0.18);
border-color: var(--vibrant-red);
}

.gallery-img-container {
position: relative;
height: 230px;
overflow: hidden;
background-color: #cbd5e1;
}

.gallery-img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
transform: scale(1.08);
}

.gallery-badge {
position: absolute;
top: 12px;
right: 12px;
background: rgba(10, 37, 64, 0.88);
color: #ffffff;
font-size: 0.75rem;
font-weight: 600;
padding: 5px 12px;
border-radius: 20px;
backdrop-filter: blur(4px);
display: inline-flex;
align-items: center;
gap: 6px;
}

.folder-indicator-badge {
position: absolute;
bottom: 12px;
left: 12px;
background: rgba(217, 4, 41, 0.92);
color: #ffffff;
font-size: 0.75rem;
font-weight: 700;
padding: 4px 12px;
border-radius: 50rem;
display: inline-flex;
align-items: center;
gap: 6px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.gallery-body {
padding: 1.25rem;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.gallery-title {
font-weight: 700;
color: var(--primary-blue);
font-size: 1.1rem;
margin-bottom: 0.4rem;
}

.gallery-date {
color: #718096;
font-size: 0.85rem;
}

.lightbox-modal .modal-content {
background-color: #0f172a;
border-radius: 28px;
border: none;
color: white;
overflow: hidden;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
}

.lightbox-close-btn {
position: absolute;
top: 16px;
right: 16px;
z-index: 1060;
background: var(--vibrant-red);
color: white;
border: 2px solid rgba(255, 255, 255, 0.85);
width: 44px;
height: 44px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.3rem;
box-shadow: 0 4px 15px rgba(217, 4, 41, 0.6);
cursor: pointer;
transition: transform 0.2s ease, background-color 0.2s ease;
}

.lightbox-close-btn:hover {
transform: scale(1.1);
background-color: #b80220;
}

.folder-modal-header-badge {
position: absolute;
top: 18px;
left: 18px;
z-index: 1055;
background: rgba(10, 37, 64, 0.85);
backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #ffffff;
padding: 6px 14px;
border-radius: 50rem;
font-size: 0.8rem;
font-weight: 700;
display: inline-flex;
align-items: center;
gap: 8px;
}

.slider-slide-container {
position: relative;
width: 100%;
height: 75vh;
min-height: 440px;
max-height: 680px;
background-color: #000000;
overflow: hidden;
}

.slider-slide-img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
display: block;
}

.slider-text-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 4.5rem 1.5rem 2.75rem 1.5rem;
background: linear-gradient(to top, rgba(10, 37, 64, 0.98) 0%, rgba(10, 37, 64, 0.82) 55%, rgba(10, 37, 64, 0) 100%);
color: #ffffff;
z-index: 10;
text-align: left;
}

@media (min-width: 768px) {
.slider-text-overlay {
padding: 5rem 2.5rem 3rem 2.5rem;
}
}

.carousel-control-prev,
.carousel-control-next {
width: 12%;
z-index: 20;
}

.carousel-control-icon-custom {
width: 42px;
height: 42px;
border-radius: 50%;
background: rgba(10, 37, 64, 0.75);
border: 1px solid rgba(255, 255, 255, 0.35);
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
transition: all 0.25s ease;
}

.carousel-control-prev:hover .carousel-control-icon-custom,
.carousel-control-next:hover .carousel-control-icon-custom {
background: var(--vibrant-red);
border-color: var(--vibrant-red);
transform: scale(1.08);
}

.anecdotario-reserved-box {
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
border: 2px dashed #cbd5e1;
border-radius: 28px;
padding: 3.5rem 1.5rem;
text-align: center;
box-shadow: var(--card-shadow);
position: relative;
overflow: hidden;
}

.reserved-icon-circle {
width: 76px;
height: 76px;
border-radius: 50%;
background: rgba(217, 4, 41, 0.08);
color: var(--vibrant-red);
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 2rem;
margin-bottom: 1.25rem;
}

.stat-card {
background: #ffffff;
border-radius: 20px;
padding: 1.8rem 1rem;
text-align: center;
box-shadow: var(--card-shadow);
border-bottom: 4px solid var(--primary-blue);
}

.stat-number {
font-size: 2.8rem;
font-weight: 800;
color: var(--vibrant-red);
line-height: 1;
margin-bottom: 0.5rem;
}

.stat-label {
font-size: 0.95rem;
color: #4a5568;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}

footer {
background: var(--primary-blue);
color: #e2e8f0;
padding: 3rem 0 1.5rem 0;
}

.footer-logo {
font-weight: 800;
color: white;
font-size: 1.4rem;
}

.reveal-on-scroll {
opacity: 0;
transform: translateY(30px);
transition: all 0.7s cubic-bezier(0.1, 0.5, 0.1, 1);
}

.reveal-on-scroll.active {
opacity: 1;
transform: translateY(0);
}

/* ==========================================================================
DISTINTIVO FLOTANTE: SITIO EN CONSTRUCCIÓN (MOBILE-FIRST)
========================================================================== */
.construction-floating-badge {
position: fixed;
bottom: 16px;
right: 16px;
z-index: 1035;
background: rgba(10, 37, 64, 0.95);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
color: #ffffff;
border: 1px solid rgba(255, 255, 255, 0.16);
border-left: 4px solid #f59e0b;
border-radius: 50rem;
padding: 0.5rem 0.85rem;
box-shadow: 0 10px 25px rgba(10, 37, 64, 0.28);
display: inline-flex;
align-items: center;
gap: 10px;
max-width: calc(100vw - 32px);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.construction-floating-badge:hover {
transform: translateY(-3px);
box-shadow: 0 14px 30px rgba(10, 37, 64, 0.38);
}

.construction-icon-pulse {
width: 30px;
height: 30px;
min-width: 30px;
border-radius: 50%;
background: rgba(245, 158, 11, 0.18);
color: #fbbf24;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.85rem;
animation: pulseConstruction 2.2s infinite;
}

.construction-text {
display: flex;
flex-direction: column;
line-height: 1.2;
}

.construction-title {
font-family: 'Montserrat', sans-serif;
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.3px;
color: #ffffff;
white-space: nowrap;
}

.construction-subtitle {
font-size: 0.68rem;
color: #cbd5e1;
white-space: nowrap;
}

.construction-close-btn {
width: 22px;
height: 22px;
min-width: 22px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.12);
color: #e2e8f0;
border: none;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 0.72rem;
cursor: pointer;
transition: background-color 0.2s ease, color 0.2s ease;
padding: 0;
}

.construction-close-btn:hover {
background-color: var(--vibrant-red);
color: #ffffff;
}

@keyframes pulseConstruction {
0% {
box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
}
70% {
box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
}
}