/* ==========================================================================
   Hepatitis Virales Colombia - tema basado en el sitio WordPress original
   ========================================================================== */

/* Poppins, Heebo, Open Sans */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700&family=Open+Sans:wght@400;500;600;700&family=Poppins:wght@400;500;600&display=swap');

:root {
    --orange: #FD9800;
    --orange-dark: #E98C00;
    --red: #f01215;
    --red-dark: #A20E0E;
    --red-deep: #ff0000;
    --navy: #0F172A;
    --gray: #454F5E;
    --cream: #F9F0C8;
    --lime: #D6FF00;
    --border-light: #EFFAFA;
    --dark: #141006;
    --white: #ffffff;
    --font-heading: 'Heebo', sans-serif;
    --font-elementor: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray);
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--navy);
    margin: 0 0 0.6em;
}

h2 { font-size: 2.6rem; }
h3 { font-size: 1.9rem; }

p { margin: 0 0 1em; }

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }

.btn {
    display: inline-block;
    font-family: var(--font-elementor);
    font-weight: 500;
    font-size: 1rem;
    text-transform: capitalize;
    color: var(--orange);
    background: rgba(29, 192, 195, 0);
    border: 2px solid var(--orange);
    border-radius: 24px;
    padding: 14px 30px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1;
}
.btn:hover { background: var(--orange); color: #fff; text-decoration: none; }
.btn.btn-light {
    color: var(--white);
    border-color: var(--white);
    background: transparent;
}
.btn.btn-light:hover { background: var(--white); color: var(--orange); }

/* Alerts */
.alert { padding: 0.85rem 1.1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.95rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background: var(--orange);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header-top { background: var(--orange); }
.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 70px;
    gap: 20px;
    padding-left: 190px;
}

.site-branding {
    position: absolute;
    top: 0;
    bottom: 0;
    left: max(24px, calc(50% - 596px));
    z-index: 10;
    display: flex;
    align-items: center;
}
.site-branding img { width: 150px; display: block; }

.header-nav {
    background: var(--orange);
}
.header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    gap: 12px;
    padding-left: 190px;
}

.main-navigation { display: flex; align-items: center; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: nowrap; gap: 2px; }
.main-navigation .menu-link {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0 0.9em;
    display: inline-block;
    position: relative;
    line-height: 46px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 200ms ease-out;
}
.main-navigation .menu-link:hover,
.main-navigation .menu-link.active { color: var(--red); text-decoration: none; }

.main-navigation .menu-link::after {
    content: '';
    position: absolute;
    inset-inline: 0.9em;
    bottom: 4px;
    height: 2px;
    border-radius: 9999px;
    background-color: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 250ms ease-out;
}
.main-navigation .menu-link:hover::after,
.main-navigation .menu-link:focus-visible::after,
.main-navigation .menu-link.active::after { transform: scaleX(1); }

.main-navigation .menu-link .caret {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.7rem;
    vertical-align: middle;
    transition: transform 200ms ease-out;
}
.main-navigation .has-submenu:hover .caret,
.main-navigation .has-submenu:focus-within .caret { transform: rotate(180deg); }

.main-navigation .has-submenu { position: relative; }
.main-navigation .submenu {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px) scale(0.96);
    transition: opacity 150ms ease-out, transform 150ms ease-out, visibility 150ms;
}
.main-navigation .has-submenu:hover .submenu,
.main-navigation .has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}
.main-navigation .submenu .submenu-link {
    display: block;
    color: #374151;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 14px;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 8px;
    position: relative;
    line-height: 1.5;
    transition: background-color 150ms ease-out, color 150ms ease-out;
}
.main-navigation .submenu .submenu-link::after {
    content: '';
    position: absolute;
    inset-inline: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 9999px;
    background-color: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 250ms ease-out;
}
.main-navigation .submenu .submenu-link:hover::after,
.main-navigation .submenu .submenu-link:focus-visible::after,
.main-navigation .submenu .submenu-link.active::after { transform: scaleX(1); }
.main-navigation .submenu .submenu-link:hover,
.main-navigation .submenu .submenu-link.active {
    background: rgba(240, 18, 21, 0.08);
    color: var(--red);
    text-decoration: none;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.header-social { display: flex; align-items: center; gap: 6px; }
.header-social a {
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    transition: color 0.2s, opacity 0.2s;
}
.header-social a:hover { color: var(--red); text-decoration: none; }
.header-social svg { width: 23px; height: 23px; fill: #fff; }
.header-social a:hover svg { fill: var(--red); }

.header-auth { display: flex; align-items: center; gap: 10px; }
.header-auth .btn-auth {
    font-family: var(--font-elementor);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 7px 16px;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1;
}
.header-auth .btn-auth:hover { background: var(--white); color: var(--orange); text-decoration: none; }
.header-auth .btn-auth-solid { background: var(--white); color: var(--orange); }
.header-auth .btn-auth-solid:hover { background: rgba(255, 255, 255, 0.85); }
.header-auth .user-label { color: #fff; font-size: 0.9rem; font-weight: 600; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 6px 10px;
}

/* Mobile nav */
.mobile-nav {
    display: none;
    background: var(--orange);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
    display: block;
    color: #fff;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.mobile-nav a:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.mobile-nav .mobile-nav-parent {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 24px 4px;
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.mobile-nav .mobile-nav-child { padding-left: 40px; font-weight: 500; border-top-color: rgba(255, 255, 255, 0.1); }

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000;
}
.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.9s ease;
}
.hero-slider .slide.active { opacity: 1; }

.hero-slider .slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-slider .slide-content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 24px;
}
.hero-slider .slide-eyebrow {
    display: inline-block;
    font-family: var(--font-elementor);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background: rgba(253, 152, 0, 0.9);
    border-radius: 20px;
    padding: 5px 16px;
    margin-bottom: 16px;
}
.hero-slider .slide-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    max-width: 900px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    margin-bottom: 14px;
}
.hero-slider .slide-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 640px;
    margin-bottom: 26px;
}
.hero-slider .slide-btn {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    opacity: 0.8;
    z-index: 5;
    transition: opacity 0.2s;
}
.hero-arrow:hover { opacity: 1; }
.hero-arrow.prev { left: 15px; }
.hero-arrow.next { right: 15px; }
.hero-arrow svg { width: 32px; height: 32px; fill: rgba(255, 255, 255, 0.8); }

.hero-dots {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 5;
}
.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
}
.hero-dots button.active { background: var(--orange); }

/* ==========================================================================
   COUNTER STRIP
   ========================================================================== */
.counter-strip { background: #fff; padding: 56px 0; }
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.counter-card {
    text-align: center;
    padding: 8px 24px;
    border-right: 1px solid var(--border-light);
}
.counter-card:last-child { border-right: none; }
.counter-card .counter-title {
    font-family: var(--font-elementor);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--orange);
    margin-bottom: 10px;
}
.counter-card .counter-number {
    font-family: var(--font-elementor);
    font-size: 2.9rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
}

/* ==========================================================================
   NUESTRO IMPACTO
   ========================================================================== */
.impact-section .impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.impact-section .impact-label {
    font-family: var(--font-elementor);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--orange);
    margin-bottom: 12px;
}
.impact-section h2 { font-size: 2.6rem; color: var(--navy); }
.impact-section .impact-text strong { color: var(--navy); }

/* ==========================================================================
   SECTIONS ROJAS (¿La salud..., Mortalidad)
   ========================================================================== */
.red-section {
    background: linear-gradient(180deg, #f01215 0%, #A20E0E 100%);
    color: #fff;
    padding: 72px 0;
}
.red-section h2 { color: #fff; }
.red-section p { color: #fff; }
.red-section a { color: var(--lime); }
.red-section strong { color: #fff; }

.red-section .section-heading {
    background: var(--red);
    padding: 56px 0 24px;
    text-align: center;
}
.red-section .section-heading h2 {
    font-family: var(--font-elementor);
    -webkit-text-stroke-color: #000;
    stroke: #000;
    color: #fff;
    font-size: 2.6rem;
}

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 28px 26px;
    text-align: center;
    font-family: var(--font-elementor);
    color: #fff;
    transition: transform 0.2s, background 0.2s;
}
.stat-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.06); }
.stat-card .stat-number {
    display: block;
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}
.stat-card .stat-text { font-size: 0.95rem; line-height: 1.5; }
.stat-card .stat-text strong { color: var(--lime); }

/* Mortality section with image + text */
.mortality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mortality-grid .mortality-img { border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); }

/* Partner logos strip */
.partner-logos { display: flex; align-items: center; justify-content: center; gap: 56px; padding-top: 40px; flex-wrap: wrap; }
.partner-logos img { height: 70px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.partner-logos img.no-invert { filter: none; }

/* ==========================================================================
   PARTNERSHIP CTA
   ========================================================================== */
.cta-section {
    background: var(--orange);
    background-image: linear-gradient(339deg, var(--orange) 100%, var(--orange-dark) 100%);
    color: #fff;
    padding: 72px 0;
    text-align: center;
}
.cta-section .cta-label {
    font-family: var(--font-elementor);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 12px;
}
.cta-section h2 { color: #fff; font-size: 2.2rem; }
.cta-section p { color: #fff; max-width: 560px; margin: 0 auto 24px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--red-deep); color: #fff; padding: 56px 0 28px; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 40px; align-items: start; }
.site-footer .footer-logo img { max-width: 180px; }
.site-footer p { color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; }
.site-footer h4 { color: #fff; font-family: var(--font-elementor); font-size: 1.05rem; margin-bottom: 14px; }
.site-footer .footer-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.site-footer .footer-links li { margin-bottom: 8px; }
.site-footer .footer-links a { color: rgba(255, 255, 255, 0.9); font-size: 0.92rem; }
.site-footer .footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 13px; }
.footer-social a {
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
.footer-social a:hover { opacity: 0.8; text-decoration: none; }
.footer-social svg { width: 28px; height: 28px; fill: #fff; }
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   AUTH PAGES
   ========================================================================== */
.auth-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 24px;
    background: linear-gradient(180deg, #f01215 0%, #A20E0E 100%);
}
.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 460px;
}
.auth-card h1 {
    font-family: var(--font-elementor);
    font-size: 1.7rem;
    color: var(--navy);
    margin-bottom: 6px;
}
.auth-card .auth-subtitle { color: var(--gray); font-size: 0.95rem; margin-bottom: 22px; }
.auth-card .auth-subtitle strong { color: var(--navy); }
.auth-logo { display: block; margin: 0 auto 20px; width: 110px; }

.form-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--navy); font-size: 0.95rem; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd2d9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--navy);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(253, 152, 0, 0.18);
}

.checkbox-group { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); }
.checkbox-group label { margin: 0; font-weight: 400; color: var(--gray); font-size: 0.92rem; }

.auth-card .btn {
    width: 100%;
    text-align: center;
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}
.auth-card .btn:hover { background: var(--orange-dark); }

.form-error, .error-message { color: #dc2626; font-size: 0.85rem; margin-top: 5px; }
ul.error-message, ul.form-error-message { list-style: none; padding: 0; margin: 4px 0 0; }

.auth-card .form-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.auth-card .form-checkbox input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); flex-shrink: 0; }
.auth-card .form-checkbox label { margin: 0; font-weight: 400; color: var(--gray); font-size: 0.92rem; }

.auth-alt { margin-top: 20px; text-align: center; font-size: 0.95rem; color: var(--gray); }
.auth-alt a { color: var(--orange-dark); font-weight: 600; }

/* ==========================================================================
   DASHBOARD (contenido tras iniciar sesión)
   ========================================================================== */
.dashboard-hero { background: linear-gradient(180deg, #f01215 0%, #A20E0E 100%); color: #fff; padding: 80px 0; }
.dashboard-hero h1 { color: #fff; }
.dashboard-hero p { color: rgba(255, 255, 255, 0.95); }
.dashboard-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: -48px; position: relative; z-index: 5; }
.dashboard-card { background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); padding: 28px; }
.dashboard-card h3 { font-size: 1.25rem; }
.dashboard-card .card-icon { font-size: 1.8rem; margin-bottom: 10px; }

/* ==========================================================================
   ADMIN (gestión de imágenes)
   ========================================================================== */
.admin-hero { background: linear-gradient(180deg, #f01215 0%, #A20E0E 100%); color: #fff; padding: 48px 0; }
.admin-hero h1 { color: #fff; margin-bottom: 4px; }
.admin-hero p { color: rgba(255, 255, 255, 0.9); margin: 0; }
.admin-hero .back-link { color: var(--lime); font-weight: 600; }
.admin-hero .back-link:hover { text-decoration: underline; }

.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-count { color: var(--gray); margin: 0; font-weight: 600; }
.btn-primary {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-small { padding: 8px 16px; font-size: 0.85rem; }

.admin-empty { text-align: center; padding: 60px 24px; border: 2px dashed var(--border-light); border-radius: 12px; color: var(--gray); }
.admin-empty p { margin-bottom: 18px; }

/* ADMIN SIDEBAR */
.admin-layout { display: flex; align-items: stretch; min-height: 70vh; }
.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--navy);
    color: #cbd5e1;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.admin-sidebar-brand {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    padding: 0 8px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.admin-sidebar-nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.admin-sidebar-nav a {
    color: #cbd5e1;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 500;
    border-left: 3px solid transparent;
}
.admin-sidebar-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
.admin-sidebar-nav a.active {
    background: rgba(214, 255, 0, 0.12);
    color: var(--lime);
    border-left-color: var(--lime);
}
.admin-sidebar-foot {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 14px;
}
.admin-sidebar-foot a { color: #94a3b8; padding: 8px 12px; border-radius: 8px; font-size: 0.9rem; }
.admin-sidebar-foot a:hover { color: #fff; text-decoration: none; }
.admin-main { flex: 1; min-width: 0; }

.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.image-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}
.image-card:hover { box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12); transform: translateY(-2px); }
.image-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #f3f4f6; }
.image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-body { padding: 16px 18px 10px; flex: 1; }
.image-badge {
    display: inline-block;
    font-family: var(--font-elementor);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--orange-dark);
    background: rgba(253, 152, 0, 0.12);
    border-radius: 20px;
    padding: 3px 12px;
    margin-bottom: 10px;
}
.image-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.image-alt { font-size: 0.82rem; color: var(--gray); font-style: italic; margin-bottom: 8px; }
.image-meta { font-size: 0.8rem; color: #94a3b8; margin: 0; }
.image-actions { display: flex; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--border-light); }
.image-actions form { margin: 0; }
.image-actions .btn { line-height: 1; }

.admin-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 32px;
    max-width: 640px;
}
.admin-card .btn-primary { width: auto; }
.admin-card input[type="file"] {
    padding: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}
.admin-card .help-text, .admin-card small { color: #94a3b8; font-size: 0.85rem; }

.admin-preview { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.admin-preview img { width: 140px; height: 100px; object-fit: cover; border-radius: 8px; }
.admin-preview-info { display: flex; flex-direction: column; gap: 4px; }
.admin-preview-info strong { color: var(--navy); }
.admin-preview-info span { color: var(--gray); font-size: 0.9rem; }

/* ==========================================================================
   ABOUT / QUIÉNES SOMOS
   ========================================================================== */
.about-hero {
    background: var(--dark);
    color: #fff;
    padding: 72px 0;
}
.about-hero h1 { color: #fff; font-size: 3rem; font-weight: 700; margin: 8px 0 0; }
.about-hero-lead { color: #d1d5db; font-size: 1.1rem; max-width: 720px; margin-top: 20px; }
.about-eyebrow {
    display: inline-block;
    font-family: var(--font-elementor);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--orange);
}
.about-eyebrow-dark { color: var(--orange-dark); }
.about-h2 { color: var(--navy); font-weight: 700; }
.about-dark-section .about-h2 { color: #fff; }
.about-grid { display: grid; gap: 40px; }
.about-grid-2 { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
.about-image-center { display: flex; justify-content: center; }
.about-image-center img { max-height: 26rem; border-radius: 16px; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18); }

.about-dark-section { background: var(--dark); color: #fff; padding: 72px 0; }
.about-dark-section p { color: #d1d5db; }
.about-light-section { background: #FEF8EF; }

.about-section-head { max-width: 760px; margin-bottom: 36px; }
.about-dark-section .about-section-head p { color: #d1d5db; }

.about-milestones { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.about-milestone-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}
.about-milestone-card h3 { color: #fff; }
.about-milestone-card p { color: #d1d5db; font-size: 0.92rem; }
.about-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.about-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.about-cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 28px;
}
.about-dark-section .about-dark-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}
.about-dark-card h3 { color: #fff; }
.about-dark-card p { color: #d1d5db; font-size: 0.92rem; }
.about-values { list-style: none; margin: 12px 0 0; padding: 0; }
.about-values li { padding: 6px 0; }
.about-list { list-style: none; margin: 16px 0 0; padding: 0; }
.about-list li { padding: 5px 0 5px 22px; position: relative; }
.about-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--orange);
}

.about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    margin-bottom: 16px;
}
.about-icon svg { width: 24px; height: 24px; }

.about-ally-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.about-ally-logo { height: 56px; width: auto; object-fit: contain; margin-bottom: 16px; }

.about-cta {
    background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff;
    padding: 72px 0;
}
.about-cta .about-h2 { color: #fff; }
.about-cta-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.about-cta-center { text-align: center; }
.about-cta-center p { max-width: 680px; margin-left: auto; margin-right: auto; }
.about-cta-center .about-cta-actions { justify-content: center; }
.about-social-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* ==========================================================================
   NOTICIAS (público)
   ========================================================================== */
.news-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.news-search { display: flex; gap: 10px; flex: 1; max-width: 460px; }
.news-search input { flex: 1; }

.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.news-chip {
    display: inline-block;
    font-family: var(--font-elementor);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray);
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 6px 16px;
    text-decoration: none;
    transition: all 0.2s;
}
.news-chip:hover { border-color: var(--orange-dark); color: var(--orange-dark); text-decoration: none; }
.news-chip-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.news-chip-active:hover { color: #fff; }
.news-chip-small { font-size: 0.72rem; padding: 3px 12px; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover { box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12); transform: translateY(-3px); }
.news-card-thumb { display: block; height: 180px; overflow: hidden; background: #f3f4f6; }
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-family: var(--font-elementor);
    font-size: 0.9rem;
    text-align: center;
    padding: 12px;
}
.news-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px; }
.news-card-meta { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--gray); }
.news-card-body h2 { font-size: 1.2rem; margin: 0; }
.news-card-body h2 a { color: var(--navy); }
.news-card-body h2 a:hover { color: var(--orange-dark); }
.news-card-body p { font-size: 0.92rem; color: var(--gray); margin: 0; }
.news-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 0.82rem; color: #6b7280; }
.news-tags { color: #9ca3af; font-size: 0.78rem; }

.news-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.news-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    color: var(--gray);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.news-page:hover { border-color: var(--orange-dark); color: var(--orange-dark); text-decoration: none; }
.news-page-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.news-page-active:hover { color: #fff; }

.news-detail { max-width: 820px; margin: 0 auto; }
.news-detail-header h1 { font-size: 2.4rem; font-weight: 700; margin-top: 16px; }
.news-detail-excerpt { font-size: 1.15rem; color: var(--gray); margin-top: 16px; }
.news-detail-image { width: 100%; border-radius: 14px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15); margin-top: 24px; }
.news-detail-body { margin-top: 32px; font-size: 1.05rem; line-height: 1.85; color: #1f2937; }
.news-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.news-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 5px 14px;
}

.news-comments { max-width: 820px; margin: 56px auto 0; }
.news-comments h2 { font-size: 1.6rem; }
.comment-form { background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 20px; margin-top: 16px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06); }
.comment-login-hint { background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 18px 20px; margin-top: 16px; font-size: 0.95rem; color: var(--gray); }
.comment-list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.comment-card { background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 18px 20px; }
.comment-card p { margin: 8px 0 0; font-size: 0.95rem; }
.comment-meta { display: flex; gap: 8px; font-size: 0.85rem; color: var(--gray); align-items: baseline; }
.comment-meta strong { color: var(--navy); }
.comment-reply { margin-top: 12px; }
.comment-reply summary { cursor: pointer; color: var(--orange-dark); font-weight: 600; font-size: 0.85rem; }
.comment-replies { margin: 16px 0 0 20px; padding-left: 16px; border-left: 2px solid #f3f4f6; display: flex; flex-direction: column; gap: 12px; }
.comment-empty { color: var(--gray); font-size: 0.95rem; }

/* ==========================================================================
   ADMIN (tablas y formularios)
   ========================================================================== */
.admin-filter { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-filter input[type="text"] { max-width: 320px; }
.admin-filter select { max-width: 220px; }
.admin-filter .btn { padding: 12px 20px; font-size: 0.9rem; }

.admin-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border-light); border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table thead { background: #f8fafc; }
.admin-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.6px; color: #64748b; padding: 14px 18px; border-bottom: 1px solid var(--border-light); }
.admin-table td { padding: 14px 18px; border-bottom: 1px solid #f1f5f9; color: var(--gray); vertical-align: middle; }
.admin-table tbody tr:hover { background: #fafafa; }
.table-link { color: var(--navy); font-weight: 600; }
.table-link:hover { color: var(--orange-dark); }
.text-right { text-align: right; }
.admin-row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.admin-row-actions form { margin: 0; }
.badge { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: 0.72rem; font-weight: 600; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-gray { background: #f3f4f6; color: #4b5563; }

.admin-card-wide { max-width: 1080px; }
.news-form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.news-form-main { display: flex; flex-direction: column; }
.news-form-side input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--orange); vertical-align: middle; margin-right: 6px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.form-checkbox input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); flex-shrink: 0; }
.form-checkbox label { margin: 0; font-weight: 400; color: var(--gray); font-size: 0.92rem; }

/* ==========================================================================
   EVENTOS
   ========================================================================== */
.news-chip-gray { background: #f3f4f6; border-color: #f3f4f6; color: #4b5563; }
.news-chip-gray:hover { background: #e5e7eb; border-color: #e5e7eb; color: #374151; }
.news-chip-danger { background: #fee2e2; border-color: #fee2e2; color: #991b1b; }

.event-filters { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.event-filter-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.event-filter-controls select,
.event-filter-controls input[type="month"] {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: var(--gray);
    font-size: 0.9rem;
}
.event-filter-controls select:focus,
.event-filter-controls input[type="month"]:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15); }
.event-check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--gray); cursor: pointer; }
.event-check input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--orange); }

.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.event-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.event-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12); }
.event-card-body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 22px; }
.event-card-body h2 { font-size: 1.15rem; font-weight: 700; line-height: 1.35; margin: 0; }
.event-card-body h2 a { color: var(--navy); }
.event-card-body h2 a:hover { color: var(--orange-dark); text-decoration: none; }
.event-card-body p { font-size: 0.92rem; color: var(--gray); margin: 0; }
.event-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 0.82rem; color: #6b7280; }
.event-card-footer time { display: inline-flex; align-items: center; gap: 6px; }
.event-card-footer .icon { width: 15px; height: 15px; }
.event-speakers { color: #9ca3af; font-size: 0.78rem; }

.event-detail { max-width: 1080px; margin: 0 auto; }
.event-detail-header h1 { font-size: 2.4rem; font-weight: 700; margin-top: 16px; }
.event-detail-excerpt { font-size: 1.15rem; color: var(--gray); margin-top: 16px; }
.event-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: 36px; align-items: start; }
.event-detail-body { font-size: 1.05rem; line-height: 1.85; color: #1f2937; }
.event-block { background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 26px; margin-top: 28px; }
.event-block h2 { font-size: 1.25rem; margin-bottom: 18px; }
.event-speakers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.event-speaker { display: flex; align-items: flex-start; gap: 14px; }
.event-speaker img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.event-speaker-name { font-weight: 700; color: var(--navy); margin: 0; }
.event-speaker-title { font-size: 0.85rem; color: var(--gray); margin: 2px 0 0; }
.event-speaker-bio { font-size: 0.85rem; color: #6b7280; margin: 8px 0 0; line-height: 1.5; }
.event-attachments { list-style: none; padding: 0; margin: 0; }
.event-attachments li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f1f5f9; }
.event-attachments li:last-child { border-bottom: none; }
.event-attachments li > div { display: flex; align-items: center; gap: 12px; }
.event-attachment-title { color: var(--navy); font-weight: 600; font-size: 0.95rem; }

.event-info-card { background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 24px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05); position: sticky; top: 24px; }
.event-info-card h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.6px; color: #6b7280; margin-bottom: 16px; }
.event-info-card dl { margin: 0; }
.event-info-card dl > div { padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.event-info-card dl > div:last-child { border-bottom: none; }
.event-info-card dt { font-weight: 600; color: #374151; font-size: 0.85rem; }
.event-info-card dd { margin: 2px 0 0; color: var(--navy); font-size: 0.92rem; }
.event-link { color: var(--orange-dark); font-weight: 600; }
.event-link:hover { text-decoration: underline; }

.event-related { margin-top: 56px; }
.event-related > h2 { font-size: 1.6rem; margin-bottom: 20px; }
.event-related time { display: block; margin-top: 10px; color: #6b7280; font-size: 0.85rem; }

.speaker-avatar { display: inline-flex; vertical-align: middle; margin-right: 8px; }
.speaker-avatar img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.speaker-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--lime);
    font-size: 0.78rem;
    font-weight: 700;
}
.admin-attachment-list { list-style: none; padding: 0; margin: 10px 0 0; }
.admin-attachment-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }
.admin-attachment-list li form { margin: 0; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* ==========================================================================
   GALERÍA
   ========================================================================== */
.btn-success { background: #10b981; border-color: #10b981; color: #fff; }
.btn-success:hover { background: #059669; border-color: #059669; color: #fff; }
.btn-warning { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.btn-warning:hover { background: #d97706; border-color: #d97706; color: #fff; }
.text-muted { color: #6b7280; }

.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.album-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
    color: var(--gray);
}
.album-card:hover { box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12); transform: translateY(-3px); text-decoration: none; }
.album-card-cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f3f4f6; }
.album-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.album-card:hover .album-card-cover img { transform: scale(1.05); }
.album-card-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-family: var(--font-elementor);
    font-size: 0.9rem;
}
.album-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.album-card-body h2 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.album-card-body p { margin: 0; font-size: 0.9rem; color: var(--gray); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.album-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; font-size: 0.8rem; color: #6b7280; }

.gallery-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gallery-header { max-width: 900px; }
.gallery-header h1 { font-size: 2.4rem; font-weight: 700; margin-top: 24px; }
.gallery-description { font-size: 1.1rem; color: var(--gray); max-width: 720px; }
.gallery-meta { color: #6b7280; font-size: 0.9rem; }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; }
.photo-tile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    cursor: pointer;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.photo-tile:hover img { transform: scale(1.06); }

.lightbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.92); padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox-close, .lightbox-nav {
    position: absolute;
    z-index: 2;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    width: 44px;
    height: 44px;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-figure { max-width: min(1080px, 92vw); max-height: 88vh; text-align: center; margin: 0; }
.lightbox-figure img { max-height: 78vh; max-width: 100%; margin: 0 auto; border-radius: 10px; object-fit: contain; }
.lightbox-caption { margin-top: 14px; color: #d1d5db; font-size: 0.95rem; }
.lightbox-counter { margin-top: 8px; color: #9ca3af; font-size: 0.8rem; }

.admin-card-title { font-size: 1.3rem; margin: 0 0 18px; }
.admin-photo-manager { margin-top: 20px; }
.admin-photo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-photo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.admin-photo-item {
    position: relative;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
}
.admin-photo-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.admin-photo-item .badge { position: absolute; top: 8px; left: 8px; }
.admin-photo-item form { padding: 10px; text-align: right; }
.admin-photo-forms { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-photo-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; background: #f8fafc; border: 1px solid var(--border-light); border-radius: 10px; padding: 14px; }
.admin-photo-form .form-group { flex: 1; min-width: 180px; margin-bottom: 0; }
.admin-photo-form .btn { margin-bottom: 4px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .main-navigation { display: none; }
    .nav-toggle { display: inline-block; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
    }
    .admin-sidebar-brand { display: none; }
    .admin-sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; flex: none; }
    .admin-sidebar-nav a { border-left: none; border-bottom: 2px solid transparent; padding: 8px 10px; }
    .admin-sidebar-nav a.active { border-bottom-color: var(--lime); }
    .admin-sidebar-foot { flex-direction: row; gap: 8px; border-top: none; padding-top: 0; }
    .impact-section .impact-grid, .mortality-grid { grid-template-columns: 1fr; gap: 32px; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .counter-grid { grid-template-columns: 1fr 1fr; }
    .counter-card { border-bottom: 1px solid var(--border-light); padding: 20px; }
    .counter-card:nth-child(2) { border-right: none; }
    .site-footer .footer-grid { grid-template-columns: 1fr; }
    h2 { font-size: 2rem; }
    .about-cards-4, .about-milestones { grid-template-columns: 1fr 1fr; }
    .about-grid-2 { grid-template-columns: 1fr; }
    .about-social-actions { justify-content: flex-start; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .news-form-grid { grid-template-columns: 1fr; }
    .event-grid { grid-template-columns: 1fr 1fr; }
    .event-detail-grid { grid-template-columns: 1fr; }
    .event-info-card { position: static; }
    .album-grid { grid-template-columns: 1fr 1fr; }
    .photo-grid, .admin-photo-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-photo-forms { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .stat-cards { grid-template-columns: 1fr; }
    .hero-slider { height: 360px; }
    .auth-card { padding: 28px 22px; }
    .header-auth .user-label { display: none; }
    .about-cards-3, .about-cards-4, .about-cards-2, .about-milestones { grid-template-columns: 1fr; }
    .about-hero h1 { font-size: 2.2rem; }
    .news-grid { grid-template-columns: 1fr; }
    .news-search { max-width: 100%; }
    .event-grid { grid-template-columns: 1fr; }
    .event-speakers-grid { grid-template-columns: 1fr; }
    .news-detail-header h1 { font-size: 1.8rem; }
    .site-branding { left: 12px; }
    .site-branding img { width: 110px; }
    .header-top-inner, .header-nav-inner { padding-left: 150px; }
    .album-grid { grid-template-columns: 1fr; }
    .photo-grid, .admin-photo-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-header h1 { font-size: 1.9rem; }
    .admin-photo-form { align-items: stretch; }
}
