/* =============================================
   VARIABLES
   ============================================= */
:root {
    --primary:       #2d5a27;
    --primary-light: #4a8c3f;
    --primary-dark:  #245228;
    --secondary:     #8b4513;
    --accent:        #d4a574;
    --accent-light:  #f0dfc4;
    --background:    #f4f4ef;
    --surface:       #ffffff;
    --text:          #1a1a1a;
    --text-light:    #6b7280;
    --border:        #e5e7eb;
    --success:       #16a34a;
    --warning:       #d97706;
    --danger:        #dc2626;
    --info:          #0891b2;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow:    0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
    --radius:    10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
    --gradient-primary: linear-gradient(135deg, #2d5a27, #4a8c3f);
    --gradient-accent: linear-gradient(135deg, #d4a574, #e8c99a);
    --shadow-colored: 0 8px 32px rgba(45,90,39,0.15), 0 2px 8px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 0 1px rgba(45,90,39,0.08), 0 12px 40px rgba(45,90,39,0.14);
}

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* evita scroll horizontal sin romper fixed/sticky en iOS */
    background: #f4f4ef; /* fallback cuando body::before (fixed) no cubre el área scrolleable */
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    background: transparent;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.38), rgba(255,255,255,0.38)),
        url('images/casona.jpg') center/cover no-repeat;
    z-index: -1;
    pointer-events: none;
}

/* =============================================
   HEADER
   ============================================= */
.header {
    color: white;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #2c6433;
    box-shadow: 0 1px 0 rgba(201,152,10,0.25), 0 2px 16px rgba(0,0,0,0.20);
    border-bottom: 1px solid rgba(201,152,10,0.22);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(212, 165, 116, 0.18);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
}

.logo-image {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: none;
    transition: transform var(--transition);
    flex-shrink: 0;
}

.logo:hover .logo-image {
    transform: scale(1.07);
}

.logo-text {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: white;
    white-space: nowrap;
}
.logo-text::after {
    display: none;
}

.nav {
    display: flex;
    gap: 0.15rem;
    align-items: center;
    flex-shrink: 0;
}

.nav-link {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
}

.nav-link:hover {
    color: #f0c040;
    background: transparent;
}

.nav-link.active {
    color: #f0c040;
    font-weight: 800;
    background: transparent;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2.5px;
    background: #f0c040;
    border-radius: 2px;
}

/* ── Dropdown nav ── */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.22s ease;
    vertical-align: middle;
    margin-left: 3px;
    opacity: 0.85;
}
.nav-dropdown:hover .nav-chevron {
    transform: rotate(-135deg) translateY(2px);
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e4a24;
    border: 1px solid rgba(201,152,10,0.22);
    border-radius: 0 0 10px 10px;
    min-width: 190px;
    padding: 0.5rem 0 0.4rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 200;
    flex-direction: column;
    /* Puente invisible para que el hover no se corte al bajar el mouse */
    margin-top: 0;
}
.nav-dropdown:hover .nav-dropdown-menu {
    display: flex;
}
.nav-dropdown-item {
    display: block;
    padding: 0.55rem 1.1rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.nav-dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: #f0c040;
}
.nav-dropdown-item--all {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0.3rem;
    padding-top: 0.65rem;
    color: #f0c040;
    font-weight: 600;
}

.nav-admin {
    background: var(--secondary);
    color: white !important;
    margin-left: 0.5rem;
}

.nav-admin:hover { background: #a0522d; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

/* =============================================
   MAIN
   ============================================= */
.main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    width: 100%;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: #245228;
    color: rgba(255,255,255,0.75);
    padding: 2.5rem 2rem 2rem;
    font-size: 0.82rem;
    border-top: 1px solid rgba(201,152,10,0.18);
    letter-spacing: 0.01em;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-brand strong {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 0.25rem 1.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--transition);
    font-size: 0.8rem;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #f0c040;
    text-decoration: none;
}

.footer-divider {
    color: rgba(255,255,255,0.15);
    font-size: 0.7rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 1.25rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.footer-social-link {
    color: rgba(255,255,255,0.75);
    transition: color var(--transition), transform var(--transition);
    display: flex;
    align-items: center;
}

.footer-social-link:hover {
    color: #f0c040;
    transform: translateY(-2px);
}

/* =============================================
   CARDS
   ============================================= */
.card {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius-lg);
    box-shadow:
        0 2px 12px rgba(0,0,0,0.08),
        0 0 0 1px rgba(201,152,10,0.10),
        0 4px 24px rgba(201,152,10,0.06);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    border: 1px solid rgba(201,152,10,0.15);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    background: rgba(255,255,255,0.72);
    box-shadow:
        0 16px 48px rgba(0,0,0,0.12),
        0 0 0 1px rgba(201,152,10,0.30),
        0 0 32px rgba(201,152,10,0.14),
        0 4px 12px rgba(201,152,10,0.08);
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(201,152,10,0.35);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(212,165,116,0.0), rgba(45,90,39,0.0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.3s ease;
    z-index: 0;
}
.card:hover::before {
    background: linear-gradient(135deg, rgba(212,165,116,0.5), rgba(45,90,39,0.3));
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent-light), var(--border));
}

.card-content {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--primary-dark);
    line-height: 1.35;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.1px;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #2d5a27 0%, #3d7534 100%);
    color: white;
    box-shadow: 0 2px 12px rgba(45,90,39,0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3d7534 0%, #4a8c3f 100%);
    box-shadow: 0 6px 20px rgba(45,90,39,0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 2px 8px rgba(139,69,19,0.3);
}

.btn-secondary:hover {
    background: #a0522d;
    transform: translateY(-1px);
}

.btn-outline {
    background: rgba(255,255,255,0.85);
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45,90,39,0.25);
}

.btn-small {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-block { width: 100%; }

/* =============================================
   BADGES
   ============================================= */
.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new     { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #e0f2fe; color: #075985; }
.badge-category {
    background: var(--accent-light);
    color: var(--secondary);
    font-weight: 700;
}

/* =============================================
   GRID
   ============================================= */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* =============================================
   BANNER SLIDER
   ============================================= */
.banner-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg), 0 8px 32px rgba(0,0,0,0.15);
}

.banner-slide { display: none; position: relative; background: #0a1a0b; }
.banner-slide.active { display: block; }

.banner-image {
    width: 100%;
    height: 420px;
    object-fit: contain;   /* muestra la imagen completa sin cortar */
    object-position: center center;
    display: block;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2.5rem 2.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.22) 55%, transparent 100%);
    color: white;
}

/* "somos" en script amarillo — estilo La Martona */
.banner-pretext {
    display: block;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #f0c040;
    line-height: 1;
    margin-bottom: 0.1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.banner-title {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 0.4rem;
    line-height: 1.05;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.banner-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.25rem;
}

/* Flechas prev/next */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    z-index: 5;
}

.banner-arrow:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-50%) scale(1.08);
}

.banner-arrow-prev { left: 1rem; }
.banner-arrow-next { right: 1rem; }

.banner-nav {
    position: absolute;
    bottom: 1rem;
    right: 1.25rem;
    display: flex;
    gap: 0.4rem;
    z-index: 5;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.banner-dot.active {
    background: white;
    width: 22px;
    border-radius: 4px;
}

/* =============================================
   CALENDAR
   ============================================= */
.calendar-container {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(201,152,10,0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.calendar-nav { display: flex; gap: 0.5rem; }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    overflow: hidden;
}

.calendar-day-header {
    text-align: center;
    padding: 0.65rem;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--primary);
    background: #f0f7ee;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    min-height: 90px;
    padding: 0.4rem;
    background: rgba(255,255,255,0.45);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    min-width: 0;
    overflow: hidden;
}

.calendar-day:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

.calendar-day.other-month { opacity: 0.35; }

.calendar-day.today {
    border: 2px solid var(--primary);
    background: #f0f7ee;
}

.calendar-day-number {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    color: var(--text);
}

.calendar-event {
    font-size: 0.68rem;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    max-width: 100%;
    display: block;
    cursor: pointer;
}

.calendar-event.teatro   { background: #dbeafe; color: #1e40af; }
.calendar-event.coro     { background: #f3e8ff; color: #6b21a8; }
.calendar-event.cine     { background: #ffedd5; color: #c2410c; }
.calendar-event.tango    { background: #fce7f3; color: #9d174d; }
.calendar-event.arte     { background: #dcfce7; color: #166534; }
.calendar-event.yoga     { background: #cffafe; color: #155e75; }
.calendar-event.musica   { background: #ede9fe; color: #4c1d95; }
.calendar-event.megaevento { background: #fef3c7; color: #92400e; font-weight: 700; }
.calendar-event.juegos   { background: #fef9c3; color: #854d0e; }
.calendar-event.biblioteca { background: #f0fdf4; color: #14532d; }
.calendar-event.literatura { background: #fff7ed; color: #7c2d12; }

/* =============================================
   FILTERS
   ============================================= */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.filter-btn {
    padding: 0.45rem 1.1rem;
    border: 1.5px solid rgba(201,152,10,0.25);
    border-radius: 20px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-light);
}

.filter-btn:hover {
    border-color: rgba(201,152,10,0.5);
    background: rgba(255,255,255,0.75);
    color: var(--primary-dark);
    box-shadow: 0 2px 12px rgba(201,152,10,0.15);
}
.filter-btn.active {
    border-color: #c9980a;
    background: rgba(201,152,10,0.12);
    color: #2c6433;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(201,152,10,0.25), 0 4px 16px rgba(201,152,10,0.18);
}

/* =============================================
   WORKSHOP CARDS
   ============================================= */
.workshop-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border);
    margin-top: 0.875rem;
}

.workshop-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

/* =============================================
   NEWS
   ============================================= */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}
.news-featured { grid-column: 1; }
.news-sidebar  { grid-column: 2; }

.news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.news-item-image {
    width: 76px;
    height: 76px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
}

.news-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.news-item-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* =============================================
   ADMIN
   ============================================= */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.admin-sidebar {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.admin-menu-item {
    display: block;
    padding: 0.7rem 1rem;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    margin-bottom: 0.25rem;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background: var(--primary);
    color: white;
}

.admin-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* =============================================
   FORMS
   ============================================= */
.form-group { margin-bottom: 1.5rem; }

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45,90,39,0.1);
}

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

/* =============================================
   TABLE
   ============================================= */
.table-container { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th,
.table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: #f8f9f5;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.table tr:hover td { background: #f8f9f5; }

/* =============================================
   FAB WhatsApp
   ============================================= */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
}

.fab {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}

/* =============================================
   TOAST
   ============================================= */
.toast-container {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 240px;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error   { border-left: 4px solid var(--danger); }
.toast-info    { border-left: 4px solid var(--info); }
.toast-warning { border-left: 4px solid var(--warning); }

@keyframes slideIn {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--surface);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--border);
    color: var(--text);
}

.modal-body   { padding: 1.5rem; }
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

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

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.section-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.025em;
    line-height: 1.2;
    position: relative;
    padding-left: 0.9rem;
    /* Glow blanco difuso para legibilidad sobre cualquier fondo */
    text-shadow:
        0 0 28px rgba(255,255,255,0.85),
        0 0 12px rgba(255,255,255,0.65),
        0 1px 2px rgba(0,0,0,0.08);
}

/* Barra izquierda dorada */
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8%;
    height: 84%;
    width: 3px;
    background: linear-gradient(to bottom, #c9980a, #f0c040);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(201,152,10,0.5);
}

/* Subrayado dorado animado */
.section-title::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -10px;
    left: 0.9rem;
    width: 2.5rem;
    height: 2px;
    background: linear-gradient(90deg, #c9980a, transparent);
    border-radius: 2px;
    transition: width 0.45s cubic-bezier(0.22,1,0.36,1);
}
.section-header:hover .section-title::after {
    width: 6rem;
}

/* =============================================
   ACTIVIDADES DE HOY
   ============================================= */
.quick-actions {
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,255,255,0.75);
    border-left: 4px solid var(--primary);
}

.quick-actions-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    position: relative;
    padding-left: 0.9rem;
    letter-spacing: -0.02em;
    text-shadow:
        0 0 28px rgba(255,255,255,0.85),
        0 0 12px rgba(255,255,255,0.65),
        0 1px 2px rgba(0,0,0,0.08);
}
.quick-actions-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8%;
    height: 84%;
    width: 3px;
    background: linear-gradient(to bottom, #c9980a, #f0c040);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(201,152,10,0.5);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0.875rem;
    background: var(--background);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.activity-item:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    transform: translateX(3px);
}

.activity-time {
    font-weight: 700;
    color: var(--primary);
    min-width: 60px;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.activity-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: capitalize;
}

/* =============================================
   GALLERY
   ============================================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

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

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

/* =============================================
   LOADING & EMPTY
   ============================================= */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    /* Nav mobile */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c6433;
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.2rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
        z-index: 200;
    }
    .nav.open {
        display: flex;
        max-height: calc(100dvh - 56px); /* nunca supera la pantalla en landscape */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-link { padding: 0.6rem 0.75rem; font-size: 0.88rem; }
    .nav-link.active::after { display: none; }
    .menu-toggle { display: flex; }
    /* Dropdown inline en mobile: no absolute, así overflow-y del nav no lo clipea */
    .nav-dropdown-menu {
        position: static;
        transform: none;
        min-width: unset;
        width: 100%;
        box-shadow: none;
        border-radius: 8px;
        border-left: 2px solid rgba(201,152,10,0.35);
        padding: 0.2rem 0 0.3rem;
        margin: 0.1rem 0 0.4rem 0.75rem;
        background: rgba(255,255,255,0.04);
    }
    .nav-dropdown:hover .nav-dropdown-menu { display: flex; }

    /* Main padding */
    .main { padding: 1.5rem 1rem; }

    /* Banner tablet */
    .banner-image { height: 340px; object-fit: cover; object-position: center top; }
    .banner-title  { font-size: 1.6rem; }
    .banner-subtitle { font-size: 0.85rem; }
    .banner-arrow  { width: 34px; height: 34px; font-size: 0.85rem; }
    .banner-content { padding: 1.5rem 1.25rem 1.25rem; }

    /* Calendar */
    .calendar-day     { min-height: 52px; }
    .calendar-event   { display: none; }
    .calendar-day.has-events::after {
        content: '';
        width: 6px; height: 6px;
        background: var(--primary);
        border-radius: 50%;
        display: block;
        margin-top: 0.2rem;
    }
    .calendar-nav { gap: 0.5rem; }
    .calendar-month-label { font-size: 1rem; }
    /* Calendar header: botones más compactos para que el título no salte de línea */
    .calendar-header { gap: 0.5rem; }
    .calendar-header .btn { padding: 0.35rem 0.6rem; font-size: 0.8rem; }
    .calendar-title { font-size: 1rem; text-align: center; }

    /* Grids */
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .grid-2 { grid-template-columns: 1fr; }

    /* Cards */
    .card-image { height: 160px; }
    .card-content { padding: 1rem; }
    .card-title { font-size: 1rem; }

    /* News */
    .news-layout  { grid-template-columns: 1fr; }
    .news-grid    { grid-template-columns: 1fr; }
    .news-sidebar { grid-column: 1; }

    /* Sections */
    .section-title { font-size: 1.25rem; }
    .section-header { flex-wrap: wrap; gap: 0.75rem; }

    /* Quick actions */
    .quick-actions { padding: 1rem; }

    /* Admin */
    .admin-layout { grid-template-columns: 1fr; }

    /* Footer mobile — una columna centrada */
    .footer { padding: 1.5rem 1.25rem 1.5rem; }
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
    .footer-brand { align-items: center; }
    .footer-links { justify-content: center; gap: 0.4rem 1rem; }
    .footer-bottom { flex-direction: column; gap: 0.2rem; text-align: center; }
}

@media (max-width: 480px) {
    .main { padding: 1rem 0.75rem; }

    /* Header */
    .logo-text { font-size: 0.9rem; }

    /* Banner mobile: imagen ocupa su espacio natural, contenido va abajo */
    .banner-slider { border-radius: var(--radius-lg); overflow: hidden; }
    .banner-slide  { display: none; flex-direction: column; }
    .banner-slide.active { display: flex; }
    .banner-image  {
        height: auto;
        max-height: 80vw;        /* más alto para mostrar más de la imagen */
        width: 100%;
        object-fit: contain;     /* imagen completa, sin corte */
        background: #0a1a0b;
        object-position: center center;
    }
    .banner-content {
        position: relative;
        background: linear-gradient(135deg, #245228, #2c6433);
        padding: 1rem 1.25rem 1.1rem;
    }
    .banner-content .banner-pretext { font-size: 1.3rem; text-shadow: none; margin-bottom: 0.05rem; }
    .banner-content .banner-title { text-shadow: none; font-size: 1.15rem; }
    .banner-content .banner-subtitle { text-shadow: none; font-size: 0.82rem; opacity: 1; }
    /* Flechas encima de la imagen */
    .banner-arrow { top: calc(72vw / 2); }
    .banner-nav   { bottom: auto; top: calc(72vw - 2.2rem); }

    /* Grids — single column on very small */
    .grid-4 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }

    /* Cards */
    .card-image { height: 140px; }

    /* Section */
    .section-title { font-size: 1.1rem; }

    /* Quick actions */
    .quick-actions-grid { grid-template-columns: 1fr; }
}

/* =============================================
   ADMIN BACK OFFICE
   ============================================= */

/* Ocultar header/footer en modo admin */
.hidden-admin { display: none !important; }
main.admin-mode { max-width: 100%; padding: 0; margin: 0; }

/* Layout principal */
.admin-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
    background: #f0f2f5;
}

/* Sidebar */
.admin-sidebar {
    background: var(--primary-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-brand-name {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0.5rem;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-role {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    text-transform: capitalize;
}

.admin-nav {
    flex: 1;
    padding: 0 0.75rem;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    text-align: left;
    transition: background var(--transition), color var(--transition);
    margin-bottom: 0.15rem;
}

.admin-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.admin-nav-item.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 600;
}

.admin-sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0.5rem;
}

.admin-logout-btn {
    color: rgba(255,255,255,0.5) !important;
}

.admin-logout-btn:hover {
    color: #fff !important;
    background: rgba(220,38,38,0.3) !important;
}

/* Main content */
.admin-main {
    padding: 2rem;
    min-width: 0;
}

.admin-loading {
    padding: 3rem;
    text-align: center;
    color: var(--text-light);
}

/* Section header */
.admin-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.admin-section-sub {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}

/* Stats */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.admin-stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.admin-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
}

.admin-stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Card genérico */
.admin-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Table */
.admin-table-wrap {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-light);
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: #f8fafc;
}

.admin-table-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.admin-table-sub {
    font-size: 0.78rem;
    color: var(--text-light);
}

.admin-table-actions {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
}

.admin-empty {
    text-align: center;
    color: var(--text-light);
    padding: 2.5rem !important;
}

/* Banners grid */
.admin-banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.admin-banner-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition);
}

.admin-banner-card.inactive {
    opacity: 0.6;
}

.admin-banner-card:hover {
    box-shadow: var(--shadow);
}

.admin-banner-thumb {
    height: 120px;
    background: var(--accent-light) center/cover no-repeat;
}

.admin-banner-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

.admin-banner-info {
    padding: 0.875rem 1rem;
    flex: 1;
}

.admin-banner-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.admin-banner-sub {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.admin-banner-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-banner-actions {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
}

/* Badges extras */
.badge-primary  { background: #dbeafe; color: #1d4ed8; }
.badge-danger   { background: #fee2e2; color: #dc2626; }
.badge-success  { background: #dcfce7; color: #16a34a; }

/* Forms dentro de modales */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-row { display: flex; flex-direction: column; gap: 0.75rem; }
.form-row-2 { flex-direction: row; }
.form-row-2 .form-group { flex: 1; min-width: 0; }

.form-label { display: block; margin-bottom: 0.35rem; font-size: 0.875rem; font-weight: 500; }
.form-check-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 80px; }

/* Galería en detalle de noticia */
.news-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.news-gallery-item img:hover {
    opacity: 0.9;
}

/* Galería en admin (thumbnails) */
.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.gallery-thumb-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f0f0f0;
}

.gallery-thumb-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.gallery-thumb-remove:hover {
    background: var(--danger);
}

.gallery-thumb-cover {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(255,255,255,0.92);
    border: none;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.15s;
}

.gallery-thumb-cover:hover {
    transform: scale(1.15);
    background: #fff;
}

/* Upload field */
.upload-field {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.upload-url-input {
    flex: 1;
    min-width: 0;
}

.upload-btn {
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.upload-preview img,
.upload-preview video {
    display: block;
    max-height: 120px;
    border-radius: 8px;
    margin-top: 0.5rem;
    border: 1px solid var(--border);
    max-width: 100%;
}

/* Botones extra sizes */
.btn-xs {
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    border-radius: 6px;
}

.btn-danger {
    background: #fee2e2;
    color: var(--danger);
    border: 1px solid #fca5a5;
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

/* Responsive admin */
@media (max-width: 900px) {
    .admin-wrap { grid-template-columns: 1fr; }

    .admin-sidebar {
        position: relative;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.5rem;
    }

    .admin-brand { border-bottom: none; padding: 0.5rem; }
    .admin-user-info { display: none; }
    .admin-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0; }
    .admin-nav-item { padding: 0.4rem 0.6rem; font-size: 0.78rem; }
    .admin-sidebar-footer { display: flex; gap: 0.25rem; padding: 0.5rem; }
    .admin-main { padding: 1rem; }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .admin-stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row-2 { flex-direction: column; }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
    .header, .footer, .fab-container, .toast-container { display: none; }
    .main { max-width: 100%; padding: 0; }
}

/* =============================================
   WORKSHOP GALLERY STRIP
   ============================================= */
.workshop-gallery-strip {
    display: flex;
    gap: 6px;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.workshop-gallery-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: transform var(--transition), border-color var(--transition);
}

.workshop-gallery-thumb:hover {
    transform: scale(1.08);
    border-color: var(--primary);
}

.workshop-gallery-video,
.workshop-gallery-more {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: #f3f4f6;
    color: var(--text-light);
    font-weight: 700;
    transition: transform var(--transition), border-color var(--transition);
}

.workshop-gallery-video:hover,
.workshop-gallery-more:hover {
    transform: scale(1.08);
    border-color: var(--primary);
    color: var(--primary);
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.lightbox-box {
    background: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.lightbox-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    line-height: 1;
    transition: background var(--transition), color var(--transition);
}

.lightbox-close:hover {
    background: #fee2e2;
    color: var(--danger);
}

.lightbox-gallery {
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.lightbox-item {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* =============================================
   HERO SECTION (landing)
   ============================================= */
.site-hero {
    position: relative;
    /* Breakout: rompe el max-width y el padding del .main para ir de punta a punta */
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -2rem;      /* cancela el padding top del .main */
    margin-bottom: 2.5rem;
}

.site-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/casona.jpg');
    background-size: cover;
    background-position: center 58%;
    transform: scale(1.04);
    transition: transform 8s ease;
}
.site-hero:hover .site-hero-bg { transform: scale(1.0); }

.site-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(10,28,8,0.62) 0%,
        rgba(20,46,17,0.38) 55%,
        rgba(30,61,26,0.18) 100%
    );
}

.site-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1.5rem 1.5rem;
    max-width: 760px;
}

.site-hero-badge {
    display: inline-block;
    background: rgba(212,165,116,0.25);
    border: 1px solid rgba(212,165,116,0.5);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 99px;
    margin-bottom: 0.75rem;
}

.site-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.5);
    margin-bottom: 0.6rem;
}

.site-hero-sub {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    line-height: 1.6;
}

.site-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.site-hero-actions .btn-hero-primary {
    background: var(--accent);
    color: #1a1a1a;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(212,165,116,0.4);
}
.site-hero-actions .btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,165,116,0.5);
}

.site-hero-actions .btn-hero-outline {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.45);
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.2s;
}
.site-hero-actions .btn-hero-outline:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-2px);
}

.site-hero-scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    color: rgba(255,255,255,0.6);
    font-size: 1.4rem;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   GALERÍA DE FOTOS
   ============================================= */
.gallery-hero {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}
.gallery-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,46,17,0.4) 0%, rgba(20,46,17,0.75) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.gallery-grid-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: zoom-in;
    position: relative;
    background: #1a1a1a;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.gallery-grid-item:hover img { transform: scale(1.06); }

/* Overlay lupa en fotos normales */
.gallery-grid-item:not(.gallery-video-card)::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,61,26,0.45);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 1.8rem;
}
.gallery-grid-item:not(.gallery-video-card):hover::after { opacity: 1; }

/* Card de video */
.gallery-video-card { cursor: pointer; }
.gallery-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    transition: background 0.3s;
    gap: 0.5rem;
}
.gallery-video-card:hover .gallery-play-overlay { background: rgba(0,0,0,0.55); }
.gallery-play-btn {
    width: 54px;
    height: 54px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #1a1a1a;
    padding-left: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-video-card:hover .gallery-play-btn {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0,0,0,0.6);
}
.gallery-play-label {
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

/* Sección con imagen de fondo + overlay en el sitio público */
.section-with-bg {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}
.section-with-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
}
.section-with-bg > * { position: relative; z-index: 1; }

@media (max-width: 768px) {
    .site-hero { min-height: 200px; margin-bottom: 1.5rem; }
    .site-hero-title { font-size: 1.5rem; }
    .site-hero-sub { font-size: 0.85rem; }
    .site-hero-content { padding: 1.25rem 1rem; }
    .site-hero-actions { flex-direction: column; align-items: center; gap: 0.6rem; }
    .site-hero-actions .btn-hero-primary,
    .site-hero-actions .btn-hero-outline { width: 100%; max-width: 240px; text-align: center; padding: 0.65rem 1.5rem; }
}
@media (max-width: 480px) {
    .site-hero { min-height: 180px; }
    .site-hero-title { font-size: 1.3rem; }
    .site-hero-badge { display: none; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Scroll reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Splash screen loader ── */
#splash-screen {
    position: fixed;
    inset: 0;
    background: #1a3d1a;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    animation: splashFadeIn 0.5s ease forwards;
}
@keyframes splashFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.splash-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(240,192,64,0.6);
    box-shadow: 0 0 40px rgba(240,192,64,0.2);
    animation: splashPulse 1.8s ease-in-out infinite;
}
@keyframes splashPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(240,192,64,0.15); }
    50%       { box-shadow: 0 0 60px rgba(240,192,64,0.4); }
}
.splash-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
}
.splash-bar {
    width: 160px;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
}
.splash-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2d6b2d, #f0c040);
    border-radius: 2px;
    animation: splashLoad 1.4s ease forwards;
}
@keyframes splashLoad {
    0%   { width: 0%; }
    60%  { width: 75%; }
    100% { width: 100%; }
}

/* ── Taller Page (página dedicada) ── */
.taller-page {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.taller-page-hero {
    position: relative;
    height: clamp(280px, 48vh, 520px);
    background: linear-gradient(135deg, #1a3d1a, #2d6b2d);
    background-size: contain;    /* muestra el afiche completo sin cortar */
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #0a1a0b;   /* fondo oscuro detrás del afiche */
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.taller-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem 2rem;
}

.taller-page-back {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0,0,0,0.3);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    width: fit-content;
    transition: background 0.2s;
}
.taller-page-back:hover { background: rgba(0,0,0,0.5); color: white; }

.taller-page-hero-content { color: white; }

.taller-page-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    margin-bottom: 0.25rem;
    text-transform: capitalize;
}

.taller-page-schedule {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.taller-page-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.taller-page-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.taller-page-info-chip {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(45,90,39,0.15);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.taller-page-section {
    background: rgba(255,255,255,0.88);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(229,231,235,0.8);
}

.taller-page-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(45,90,39,0.12);
}
}


/* =============================================
   GALLERY REDESIGN — rama redesign-gallery
   Bloque aislado: todo override, nada se rompe
   si se elimina esta sección.
   ============================================= */

/* ── 1. FONDO: overlay más blanco → sensación de galería aireada ── */
body::before {
    background:
        linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.68)),
        url('images/casona.jpg') center/cover no-repeat;
}

/* ── 2. TIPOGRAFÍA: Archivo Black para títulos de sección ── */
.section-title,
.quick-actions-title,
.taller-page-title {
    font-family: 'Archivo Black', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.55rem, 3.5vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-weight: 900;
}

.quick-actions-title {
    position: relative;
    padding-left: 0.9rem;
    text-shadow:
        0 0 28px rgba(255,255,255,0.85),
        0 0 12px rgba(255,255,255,0.65),
        0 1px 2px rgba(0,0,0,0.08);
}
.quick-actions-title::before {
    content: '';
    position: absolute;
    left: 0; top: 8%; height: 84%; width: 3px;
    background: linear-gradient(to bottom, #c9980a, #f0c040);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(201,152,10,0.5);
}

/* Títulos de card y descripción más elegantes */
.card-title {
    font-family: 'Archivo Black', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

/* ── 3. CARDS: glass más nítido, brillo interno de galería ── */
.card {
    background: rgba(255,255,255,0.80);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow:
        0 2px 16px rgba(0,0,0,0.07),
        0 0 0 1px rgba(201,152,10,0.12),
        inset 0 1px 0 rgba(255,255,255,0.95);
}
.card:hover {
    background: rgba(255,255,255,0.95);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.13),
        0 0 0 1.5px rgba(201,152,10,0.35),
        0 0 40px rgba(201,152,10,0.12),
        inset 0 1px 0 rgba(255,255,255,1);
    border-color: rgba(201,152,10,0.30);
}

/* Deshabilitar transform CSS en cards con tilt JS activo */
.card[data-tilt]:hover {
    transform: none;
}

/* ── 4. IMÁGENES DE CARDS: cuadradas, escala de grises → color al hover ── */
.card .card-image {
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.card .card-image img,
.card > img {
    filter: grayscale(60%) contrast(1.05) brightness(0.98);
    transition: filter 0.65s cubic-bezier(0.22,1,0.36,1),
                transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.card:hover .card-image img,
.card:hover > img {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.04);
}

/* ── 5. SECTION HEADER: más espacio para respirar ── */
.section-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
}

/* ── 6. MAIN CONTENT: máximo ancho más amplio, más aire ── */
main {
    max-width: 1280px;
}

/* ── 7. BADGES y PILLS: más minimalistas ── */
.badge {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
}

/* ── 8. BOTONES primarios: más sólidos y directos ── */
.btn-primary {
    letter-spacing: 0.03em;
    font-weight: 700;
}

/* ── FIN GALLERY REDESIGN ── */

/* ── SUBTÍTULOS INTERNOS: misma familia, jerarquía secundaria ──
   Se aplica a h2/h3 que NO son section-title ni card-title.
   No toca inline styles (margin, color) — solo tipografía. ── */
main h2:not(.section-title):not(.card-title),
main h3:not(.section-title):not(.card-title) {
    font-family: 'Archivo Black', 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.05rem;
    font-weight: 900;
}

/* Subtítulos NO centrados: suma barra dorada fina a la izquierda */
main h2:not(.section-title):not(.card-title):not([style*="center"]),
main h3:not(.section-title):not(.card-title):not([style*="center"]) {
    position: relative;
    padding-left: 0.7rem;
}
main h2:not(.section-title):not(.card-title):not([style*="center"])::before,
main h3:not(.section-title):not(.card-title):not([style*="center"])::before {
    content: '';
    position: absolute;
    left: 0; top: 12%; height: 76%; width: 2px;
    background: linear-gradient(to bottom, #c9980a, #f0c040);
    border-radius: 2px;
    opacity: 0.8;
}

/* Subtítulos centrados (Mesa Directiva, Vocales): línea decorativa debajo */
main h2[style*="center"],
main h3[style*="center"] {
    padding-bottom: 0.4rem;
}
main h2[style*="center"]::after,
main h3[style*="center"]::after {
    content: '';
    display: block;
    margin: 0.35rem auto 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #c9980a, #f0c040, transparent);
    border-radius: 2px;
}
/* ── FIN SUBTÍTULOS ── */

/* =============================================
   TOPBAR — barra gris superior (tipo lamartona.com.ar)
   ============================================= */
.topbar {
    background: #f0ede8;
    border-bottom: 1px solid #ddd;
    font-size: 0.76rem;
    color: #555;
}
.topbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.38rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.topbar-social { display: flex; align-items: center; gap: 0.55rem; }
.topbar-social-link {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.topbar-social-link:hover { color: #2c6433; }
.topbar-contact {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.topbar-contact a { color: #555; text-decoration: none; }
.topbar-contact a:hover { color: #2c6433; }
.topbar-sep { opacity: 0.4; }
@media (max-width: 768px) {
    .topbar-contact { display: none; }
    .topbar-content { justify-content: center; }
}
@media print { .topbar { display: none; } }

/* =============================================
   HERO SECTION — "somos CULTURA" con imágenes rotativas
   ============================================= */
.site-hero {
    position: relative;
    width: 100%;
    height: 62vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fallback oscuro: evita que la casona del body se vea entre transiciones */
    background: #111e12;
}
.hero-bg-wrap { position: absolute; inset: 0; }
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%; /* muestra la parte superior (caras/cuerpos) */
    opacity: 0;
    animation: heroCycle 18s infinite;
    animation-fill-mode: backwards; /* invisible antes de que empiece su turno */
}
/* Img 1 empieza 1.5s antes del inicio para que cargue visible inmediatamente */
.hero-bg-img:nth-child(1) { animation-delay: -1.5s; }
.hero-bg-img:nth-child(2) { animation-delay: 4.5s; }
.hero-bg-img:nth-child(3) { animation-delay: 10.5s; }
@keyframes heroCycle {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    32%  { opacity: 1; }
    40%  { opacity: 0; } /* fade-out más lento → crossfade suave con la siguiente */
    100% { opacity: 0; }
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.62) 0%,
        rgba(0,0,0,0.20) 55%,
        rgba(0,0,0,0.10) 100%);
    z-index: 1;
}
.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 1rem;
}
.hero-pretext {
    display: block;
    font-family: 'Cookie', cursive;  /* script fluido tipo La Martona */
    font-weight: 400;
    font-size: clamp(2rem, 5.5vw, 4rem);
    color: #f0c040;
    line-height: 1;
    margin-bottom: -0.1rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.55);
}
.hero-title {
    font-family: 'Bitter', Georgia, serif;  /* Slab Serif elegante tipo La Martona */
    font-weight: 700;
    font-size: clamp(2.4rem, 7.5vw, 5.25rem); /* 25% menor que antes */
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.01em;
    text-shadow: 0 3px 24px rgba(0,0,0,0.45);
}
#site-hero.hidden-admin { display: none !important; }
@media (max-width: 480px) {
    .site-hero { height: 52vh; min-height: 280px; }
}
@media print { #site-hero { display: none !important; } }
/* ── FIN HERO ── */
