:root {
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --primary: #0f172a;         
    --primary-dark: #020617;
    --accent: #fbc02d;      
    --accent-hover: #f9a825;
    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-700: #334155;
    --slate-800: #1e293b;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}

/* ==========================================
   BASE Y TIPOGRAFÍA
   ========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .panel-title, .brand-title-block h1 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.container { max-width: 1440px; margin: 0 auto; padding: 0 2rem; }

/* ==========================================
   NAVEGACIÓN Y HEADERS
   ========================================== */
.brand-bar {
    background-color: #ffffff;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    z-index: 100;
}

.brand-container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand-left { display: flex; align-items: center; gap: 1.5rem; cursor: pointer; transition: transform 0.3s ease; }
.brand-left:hover { transform: translateX(5px); }
.logo-usb { height: 60px; width: auto; object-fit: contain; }
.logo-aeusb { height: 90px; width: auto; object-fit: contain; }

.brand-title-block h1 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.main-nav { 
    background: rgba(15, 23, 42, 0.95); 
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 9990; 
    box-shadow: var(--shadow-md); 
    border-bottom: 3px solid var(--accent);
}
.nav-container { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav-container::-webkit-scrollbar { display: none; }
.nav-item { color: var(--gray-300); text-decoration: none; padding: 1.2rem 1.25rem; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; white-space: nowrap; display: inline-flex; align-items: center; cursor: pointer; transition: all 0.3s ease; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.nav-item:hover { color: #ffffff; }
.nav-item.active-nav { border-bottom-color: var(--accent); color: #ffffff; font-weight: 700; background: rgba(255,255,255,0.05); }

/* ==========================================
   LAYOUT PRINCIPAL Y PANELES
   ========================================== */
.main-layout { padding: 3rem 0; }
.grid-system { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.grid-system.admin-columns-layout { grid-template-columns: 400px 1fr; }
.left-column, .right-column { min-width: 0; }

.panel-card { 
    background: #ffffff; 
    border-radius: 16px; 
    box-shadow: var(--shadow-lg); 
    border: 1px solid var(--gray-200); 
    overflow: hidden; 
    margin-bottom: 1.5rem; 
    transition: box-shadow 0.3s ease;
}
.panel-card:hover { box-shadow: var(--shadow-xl); }
.panel-header { padding: 1.5rem; border-bottom: 1px solid var(--gray-100); background-color: #ffffff; }
.panel-title { font-size: 1.1rem; font-weight: 800; color: var(--primary); text-transform: uppercase; }
.panel-body { padding: 1.5rem; }

/* ==========================================
   FORMULARIOS Y BOTONES
   ========================================== */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--gray-700); margin-bottom: 0.4rem; text-transform: uppercase; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--gray-300); border-radius: 0.5rem; font-size: 0.875rem; font-family: inherit; background-color: #ffffff; color: var(--text-main); transition: all 0.2s ease; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(251, 192, 45, 0.2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.75rem; margin-top: 0.5rem; }
.checkbox-grid label.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--gray-700); cursor: pointer; }
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.65rem 1.25rem; border: none; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 700; cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); text-transform: uppercase; letter-spacing: 0.02em; }
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(251, 192, 45, 0.25); transform: translateY(-1px); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25); transform: translateY(-1px); }
.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25); }
.btn-block { width: 100%; }

.badge { display: inline-flex; align-items: center; padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.badge-danger { background: #fef2f2; color: var(--danger); }
.badge-success { background: #f0fdf4; color: var(--success); }
.badge-warning { background: #fffbeb; color: var(--warning); }
.badge-gray { background: var(--gray-200); color: var(--gray-700); }

/* ==========================================
   TABLAS Y HERRAMIENTAS
   ========================================== */
.toolbar { display: flex; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; align-items: center; }
.search-box { position: relative; flex: 1; min-width: 240px; }
.search-box input { width: 100%; padding: 0.65rem 1rem; border: 1px solid var(--gray-300); border-radius: 0.375rem; font-size: 0.875rem; }

.import-zone { border: 2px dashed var(--gray-300); background-color: #ffffff; border-radius: 0.5rem; padding: 2rem; text-align: center; margin-bottom: 1.75rem; cursor: pointer; transition: all 0.2s; }
.import-zone:hover { border-color: var(--primary); background-color: #fffbeb; }

.table-container { overflow: auto; max-height: 580px; border-radius: 12px; border: 1px solid var(--gray-200); background: #ffffff; margin-bottom: 2rem; position: relative; -webkit-overflow-scrolling: touch; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.875rem; text-align: left; }
thead th { position: sticky; top: 0; z-index: 10; background: var(--primary); color: #ffffff; padding: 0.875rem 1.25rem; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; border-bottom: 2px solid var(--gray-300); white-space: nowrap; }
td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-100); color: var(--text-main); vertical-align: middle; white-space: normal; }
tbody tr:hover { background-color: var(--gray-100); }

.text-truncate-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow-y: auto; white-space: normal; max-height: 90px; line-height: 1.4; padding-right: 0.25rem; }
.text-truncate-clamp::-webkit-scrollbar { width: 4px; }
.text-truncate-clamp::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }

.actions-cell { display: flex; gap: 0.5rem; }
.btn-edit-table { background: var(--gray-100); color: var(--primary); border: 1px solid var(--gray-300); padding: 0.3rem 0.6rem; border-radius: 0.25rem; cursor: pointer; font-size: 0.75rem; font-weight: 600; }
.btn-delete { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; padding: 0.3rem 0.6rem; border-radius: 0.25rem; cursor: pointer; font-size: 0.75rem; font-weight: 600; }
.link-actualizar { display: inline-flex; align-items: center; gap: 4px; font-size: 0.65rem; color: #0284c7; cursor: pointer; font-weight: 700; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none; background: none; border: none; padding: 0; transition: color 0.2s; }
.link-actualizar:hover { color: #0369a1; text-decoration: underline; }

/* ==========================================
   VISTAS, HÉROES Y TARJETAS HOME
   ========================================== */
.app-view { display: none; padding: 1rem 0; }
.app-view.active { display: block; animation: entrarVista 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes entrarVista { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.home-hero { 
    text-align: center; padding: 4.5rem 2rem; 
    background-color: var(--accent);
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 2px, transparent 2px), linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    background-size: 20px 20px, 100% 100%; background-position: center;
    border-radius: 16px; margin-bottom: 3rem; 
    box-shadow: 0 15px 35px -5px rgba(251, 192, 45, 0.4), inset 0 2px 0 rgba(255,255,255,0.4);
    position: relative; overflow: hidden;
}
.home-hero::before { content: ""; position: absolute; top: -10%; left: -5%; width: 200px; height: 200px; background: rgba(255,255,255,0.4); border-radius: 50%; filter: blur(40px); }
.home-hero::after { content: ""; position: absolute; bottom: -15%; right: -5%; width: 250px; height: 250px; background: rgba(0,0,0,0.08); border-radius: 50%; filter: blur(40px); }
.home-hero h2 { position: relative; z-index: 2; font-size: 2.6rem; font-weight: 900; color: var(--primary-dark); text-transform: uppercase; margin-bottom: 1.25rem; letter-spacing: 0.02em; }
.home-hero p { position: relative; z-index: 2; max-width: 750px; margin: 0 auto; color: #111111; font-size: 1.1rem; font-weight: 500; line-height: 1.7; }

.seccion-destacada { background-color: var(--gray-100); border-radius: 24px; padding: 3rem 2rem; margin: 4rem 0; box-shadow: inset 0 2px 10px rgba(0,0,0,0.015); border: 1px solid var(--gray-200); }

.home-grid-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }

.action-card { 
    background: #ffffff; 
    border: 1px solid var(--gray-200); 
    border-radius: 16px; 
    padding: 2.5rem 2rem; 
    text-align: center; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); 
    flex: 1 1 300px; 
    max-width: 360px; 
    min-height: 280px; 
    position: relative; 
    margin: 0 auto; 
}
.action-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1); border-color: var(--accent); }
.action-card::before { display: none; }

.dashboard-hero { background-color: var(--accent); color: var(--primary); padding: 2rem 0; border-radius: 0.5rem; margin-bottom: 2rem; box-shadow: 0 6px 16px rgba(251, 192, 45, 0.15); }
.hero-context p { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-dark); font-weight: 600; }
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.stat-card { background: #1e1e1e; border-radius: 0.5rem; padding: 1.25rem; border-left: 4px solid var(--accent); }
.stat-value { font-size: 2.25rem; font-weight: 700; display: block; line-height: 1; color: #ffffff; }
.stat-label { font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-top: 0.5rem; display: block; }

/* ==========================================
   NOTICIAS Y CARRUSEL
   ========================================== */
.news-section-header { margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; }
.news-section-header h3 { font-size: 1.25rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 0.02em; }
.news-header-wrapper { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1rem; }
.btn-ver-todas { font-size: 0.85rem; font-weight: 800; color: #0284c7; cursor: pointer; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.2s; }
.btn-ver-todas:hover { color: #0369a1; text-decoration: underline; }

.carousel-wrapper { position: relative; display: flex; align-items: center; }
.carousel-arrow { position: absolute; z-index: 10; background: var(--slate-800); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: transform 0.2s, background 0.2s; }
.carousel-arrow:hover { transform: scale(1.1); background: var(--accent); color: var(--primary); }
.carousel-arrow.left { left: -20px; }
.carousel-arrow.right { right: -20px; }

.news-carousel-container { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.5rem; padding-bottom: 1.5rem; margin-bottom: 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.news-carousel-container::-webkit-scrollbar { display: none; }

.news-card { flex: 0 0 320px; scroll-snap-align: start; background: #ffffff; border: 1px solid var(--gray-200); border-left: 4px solid var(--accent); border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 10px 15px -3px rgba(0,0,0,0.05); display: flex; flex-direction: column; height: auto !important; min-height: 280px; transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer; overflow: hidden !important; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 20px -5px rgba(0,0,0,0.08); }
.boletines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.boletines-grid .news-card { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; }

.news-thumbnail { height: 180px; background-color: var(--gray-100); background-size: cover; background-position: center; margin: -1.5rem -1.5rem 1rem -1.5rem; border-radius: 11px 11px 0 0; border-bottom: 3px solid var(--gray-200); }
.news-date { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.news-title { font-size: 1.05rem; font-weight: 800; color: var(--primary); margin: 0.75rem 0; line-height: 1.3; }
.news-body { font-size: 0.85rem; color: var(--gray-700); line-height: 1.5; display: -webkit-box !important; -webkit-line-clamp: 8 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; text-overflow: ellipsis !important; max-height: 12em !important; margin-bottom: auto !important; }

.news-badge { display: inline-block; padding: 0.25rem 0.6rem; color: #ffffff !important; border-radius: 4px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; margin: 0; min-width: 50px; text-align: center; }
.leer-mas-link { font-size: 0.75rem; color: #0284c7; font-weight: 700; margin-top: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }

#pagina-noticia-contenido p { margin-bottom: 1.2rem; }
#pagina-noticia-contenido h3, #pagina-noticia-contenido h4 { margin-top: 2rem; margin-bottom: 1rem; color: var(--primary); font-size: 1.15rem; font-weight: 800; }
#pagina-noticia-contenido ul, #pagina-noticia-contenido ol { margin-left: 0; padding-left: 2.5rem; margin-bottom: 1.5rem; }
#pagina-noticia-contenido ul { list-style-type: disc; }
#pagina-noticia-contenido ol { list-style-type: decimal; }
#pagina-noticia-contenido li { margin-bottom: 0.5rem; padding-left: 0.2rem; line-height: 1.6; }
#pagina-noticia-contenido a { color: #0284c7; font-weight: 700; text-decoration: underline; }
#pagina-noticia-contenido a:hover { color: #0369a1; }

/* ==========================================
   PUNTOS DE ACOPIO, DONACIONES Y ENLACES
   ========================================== */
.acopio-banner-card { background: #ffffff; border: 1px solid var(--gray-200); border-top: 4px solid var(--accent); border-radius: 12px; padding: 2rem; margin-bottom: 2.5rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.02), 0 4px 6px -2px rgba(0,0,0,0.01); display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .acopio-banner-card { grid-template-columns: 350px 1fr; } }
.acopio-info-side { border-right: 1px solid var(--gray-200); padding-right: 1.5rem; }
.acopio-banner-card h4 { font-size: 1.15rem; font-weight: 800; color: var(--primary); margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.02em; }
.acopio-list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; list-style: none; }
.acopio-list-grid li { background: var(--bg-light); padding: 1rem; border-radius: 8px; font-size: 0.85rem; color: var(--primary); border: 1px solid var(--gray-200); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); line-height: 1.4; }
.acopio-list-grid li:hover { transform: translateY(-3px); border-color: var(--success); background: #ffffff; box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.06); }

.donation-hero-banner { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: #ffffff; padding: 3rem 2rem; border-radius: 12px; text-align: center; margin-bottom: 2.5rem; border-bottom: 4px solid var(--success); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.03); }
.donation-hero-banner h2 { font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 0.75rem; text-transform: uppercase; }
.donation-hero-banner p { max-width: 680px; margin: 0 auto; color: #cbd5e1; font-size: 1.1rem; font-style: italic; }
.donation-data-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }
.donation-data-card { background: #ffffff; border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.02); }
.donation-data-header { padding: 1.25rem 1.5rem; background: var(--gray-100); border-bottom: 1px solid var(--gray-200); font-size: 0.95rem; font-weight: 700; text-transform: uppercase; display: flex; align-items: center; gap: 0.5rem; }
.donation-data-body { padding: 1.5rem; font-size: 0.9rem; color: var(--gray-700); }
.donation-table-info { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.donation-table-info td { padding: 0.65rem 0; border-bottom: 1px solid var(--gray-100); font-size: 0.875rem; color: var(--primary); text-align: left; display: table-cell !important; }
.donation-table-info td strong { color: var(--gray-700); font-size: 0.8rem; text-transform: uppercase; display: block; margin-bottom: 0.15rem; }

.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.link-resource-card { background: white; border: 1px solid var(--gray-200); padding: 1.5rem; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.01); display: flex; flex-direction: column; justify-content: space-between; transition: all 0.2s ease; border-left: 4px solid #0284c7; }
.link-resource-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 18px rgba(0,0,0,0.04); }
.link-resource-card h4 { font-size: 1rem; color: var(--primary); margin-bottom: 0.5rem; text-transform: uppercase; font-weight: 700; }
.link-resource-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.5; }

/* ==========================================
   MODALES Y NOTIFICACIONES
   ========================================== */
.modal-overlay { position: fixed !important; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(15, 23, 42, 0.8) !important; backdrop-filter: blur(4px); z-index: 99999 !important; }
@keyframes aparecerModal { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

#toast-notificacion { visibility: hidden; min-width: 250px; background-color: #10b981; color: #ffffff; text-align: center; border-radius: 8px; padding: 16px; position: fixed; z-index: 9999; left: 50%; bottom: 30px; transform: translateX(-50%); box-shadow: 0px 4px 12px rgba(0,0,0,0.15); font-weight: bold; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 0; transition: opacity 0.5s, bottom 0.5s ease-in-out; }
#toast-notificacion.mostrar { visibility: visible; opacity: 1; bottom: 50px; }

/* ==========================================
   FOOTER Y BOTONES FLOTANTES
   ========================================== */
.site-footer { background-color: #ffffff; border-top: 1px solid var(--gray-200); padding: 2.5rem 0; margin-top: 4rem; text-align: center; font-size: 0.85rem; color: var(--text-muted); box-shadow: 0 -2px 10px rgba(0,0,0,0.01); position: relative; }
.site-footer p { max-width: 850px; margin: 0 auto 0.5rem auto; line-height: 1.6; text-align: center; }
.site-footer a { color: var(--primary); font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.admin-secret-btn { position: absolute; bottom: 15px; right: 20px; background: none; border: none; color: #cbd5e1; font-size: 0.7rem; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 0.1em; transition: color 0.3s ease; }
.admin-secret-btn:hover { color: var(--primary); }

.btn-share { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.75rem; font-weight: 700; color: #fff; border: none; cursor: pointer; transition: transform 0.2s, opacity 0.2s; text-decoration: none; text-transform: uppercase; letter-spacing: 0.02em; }
.btn-share:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-whatsapp { background-color: #25D366; } .btn-twitter { background-color: #0f1419; } .btn-facebook { background-color: #1877F2; } .btn-copy { background-color: var(--gray-700); }

.btn-flotante-wp { position: fixed; bottom: 20px; left: 20px; background-color: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 9000; text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.btn-flotante-wp:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4); }

/* ==========================================
   MEDIA QUERIES PARA CELULARES
   ========================================== */
@media (max-width: 768px) {
    /* Contenedores Generales */
    .container, .app-view { padding-left: 1.25rem !important; padding-right: 1.25rem !important; box-sizing: border-box !important; width: 100% !important; }
    body, html { overflow-x: hidden !important; }
    
    .grid-system.admin-columns-layout { grid-template-columns: 1fr !important; gap: 1.5rem; }
    .brand-container { flex-direction: column; text-align: center; gap: 1.25rem; }
    .brand-left { flex-direction: column; gap: 0.75rem; }
    
    .home-hero { padding: 3rem 1.5rem; } 
    .home-hero h2 { font-size: 1.85rem; } 
    .home-hero p { font-size: 0.95rem; }
    .seccion-destacada { padding: 2rem 1.25rem; margin: 2.5rem -0.5rem; border-radius: 16px; }
    .home-grid-buttons { gap: 1.5rem !important; }
    .carousel-arrow { display: none; }
    .news-card { flex: 0 0 85%; height: auto !important; min-height: 260px; }
    .btn-flotante-wp { bottom: 15px; left: 15px; width: 50px; height: 50px; } 
    .btn-flotante-wp svg { width: 25px; height: 25px; }

    .acopio-info-side { border-right: none; padding-right: 0; border-bottom: 1px solid var(--gray-200); padding-bottom: 1.5rem; }
    .acopio-banner-card, .action-card, .link-resource-card, .panel-card, .dashboard-hero, .news-card { box-sizing: border-box !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }

    /* Herramientas (Toolbars) */
    .toolbar { flex-direction: column !important; align-items: stretch !important; width: 100% !important; gap: 0.75rem !important; }
    .toolbar select, .toolbar button, .search-box { width: 100% !important; min-width: 0 !important; }
    .import-zone { padding: 1.25rem !important; font-size: 0.85rem; }

    /* Transformación Total de Tablas */
    .table-container { border: none; background: transparent; max-height: none; overflow: visible; box-shadow: none; }
    table, thead, tbody, th, td, tr { display: block; width: 100%; }
    thead { display: none !important; } 
    
    tr { background: #ffffff; border: 1px solid var(--gray-200); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03); transition: all 0.25s ease; height: auto !important; min-height: min-content !important; }
    tr:hover, tr:active { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08); }
    
    td, .right-column td { 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: flex-start !important; 
        padding: 1rem 0 !important; 
        border-bottom: 1px solid var(--gray-200) !important; 
        white-space: normal !important; 
        text-align: left !important; 
        font-size: 0.95rem; 
        gap: 0.5rem; 
        word-break: break-word;
    }
    td:last-child, .right-column td:last-child { border-bottom: none !important; }
    
    td[data-label="Sel."] { flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; }
    td[data-label="Sel."] input { transform: scale(1.3); margin-left: 10px; }

    td:not([data-label="Sel."])::before, .right-column td:not([data-label="Sel."])::before { 
        content: attr(data-label); 
        font-weight: 800; 
        color: var(--accent); 
        text-transform: uppercase; 
        font-size: 0.75rem; 
        margin-right: 0 !important; 
        letter-spacing: 0.05em; 
    }
    
    td[data-label="Nombre"] strong, td[data-label="Voluntario"] strong, td[data-label="Afectado"] strong { font-size: 1.15rem; color: var(--primary); }
    
    .text-truncate-clamp { display: block !important; -webkit-line-clamp: unset !important; max-height: none !important; height: auto !important; overflow: visible !important; padding-right: 0 !important; width: 100% !important; white-space: normal !important; }

    /* Botones de Acción en Tablas Móviles */
    td.actions-cell { 
        display: flex !important;
        flex-direction: row !important; 
        justify-content: flex-start !important; 
        flex-wrap: wrap !important;
        padding-top: 1rem !important; 
        margin-top: 0.5rem !important; 
        border-top: 1px dashed var(--gray-300) !important; 
        gap: 10px !important; 
        width: 100% !important;
    }
    td.actions-cell::before { 
        display: none !important; 
    }
    td.actions-cell button, td.actions-cell .badge { 
        flex: 1 1 auto; 
        min-width: 120px;
        padding: 0.75rem; 
        font-size: 0.85rem; 
        margin: 0 !important;
    }
}

/* Animaciones Especiales */
header img:last-of-type, .main-header img:last-child { animation: entrarDesdeDerecha 0.8s ease-out forwards; opacity: 0; }
@keyframes entrarDesdeDerecha { 0% { opacity: 0; transform: translateX(30px); } 100% { opacity: 1; transform: translateX(0); } }

/* ==========================================
   SECCIÓN DONACIONES (PROGRESO, IMPACTO Y POP-UP)
   ========================================== */
/* Barra de Progreso */
.progress-container { width: 100%; background-color: rgba(255,255,255,0.2); border-radius: 999px; height: 1.5rem; margin: 1rem 0 0.5rem 0; overflow: hidden; position: relative; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #ca8a04 0%, #fbc02d 100%); border-radius: 999px; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; color: white; font-weight: 800; font-size: 0.8rem; box-shadow: 0 0 10px rgba(251, 192, 45, 0.5); }

/* Tarjetas de ¿Qué logramos? */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.impact-card { background: white; border: 1px solid var(--gray-200); padding: 1.5rem; border-radius: 12px; text-align: center; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.impact-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 10px 15px -3px rgba(251, 192, 45, 0.15); }
.impact-amount { font-size: 2.5rem; font-weight: 900; color: var(--success); margin-bottom: 0.5rem; line-height: 1; }
.impact-desc { font-size: 0.9rem; color: var(--gray-700); line-height: 1.5; }

/* Pop-up Flotante Global */
.floating-donation { position: fixed; bottom: 20px; right: 20px; background: white; padding: 1.5rem 1.5rem 1rem 1.5rem; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); z-index: 99999; width: 300px; border-left: 4px solid var(--accent); display: flex; flex-direction: column; gap: 8px; animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.floating-donation .close-btn { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-400); }
.floating-donation h4 { margin:0; font-size: 1rem; color: var(--primary); text-transform: uppercase; font-weight: 800; }
.floating-donation p { margin:0; font-size: 0.85rem; color: var(--gray-700); line-height: 1.4; }

@keyframes popIn { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }

/* Latido para la tarjeta en el Home */
.action-card.donate-pulse { border: 2px solid var(--accent); animation: pulse-border 2s infinite; }
@keyframes pulse-border { 0% { box-shadow: 0 0 0 0 rgba(251, 192, 45, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(251, 192, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(251, 192, 45, 0); } }

@media (max-width: 768px) {
    .floating-donation { bottom: 85px; right: 20px; left: auto; width: 280px; }
}

.insumo-row.form-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  background-color: var(--gray-100);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px !important;
}
.insumo-row .form-group {
  flex: 1 1 auto !important;
  width: 100% !important;
  margin-bottom: 10px !important;
}
.insumo-row .btn-delete {
  width: 100% !important;
  padding: 12px !important;
}

/* ==========================================
   WIZARD DE DONACIONES
   ========================================== */
.wizard-container { background: #ffffff; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); padding: 2rem; max-width: 1000px; margin: 0 auto; }

.wizard-progress-bar { display: flex; justify-content: space-between; border-bottom: 2px solid var(--gray-200); margin-bottom: 2rem; padding-bottom: 1rem; }
.wizard-progress-bar .step { flex: 1; text-align: center; color: var(--gray-400); font-weight: 600; font-size: 0.9rem; position: relative; }
.wizard-progress-bar .step.active { color: #0284c7; }
.wizard-progress-bar .step.active::after { content: ''; position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); width: 50%; height: 4px; background-color: #0284c7; border-radius: 4px 4px 0 0; }

.wizard-step { display: none; animation: fadeIn 0.3s ease; }
.wizard-step.active { display: block; }

.wizard-title { font-size: 1.5rem; color: var(--primary); margin-bottom: 0.2rem; font-family: 'Outfit', sans-serif; font-weight: 800; }
.wizard-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; }

.selection-grid { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.selection-card { border: 2px solid var(--gray-200); border-radius: 12px; padding: 2rem 1.5rem; width: 220px; text-align: center; cursor: pointer; transition: all 0.2s ease; position: relative; }
.selection-card:hover { border-color: var(--gray-300); background-color: var(--gray-50); box-shadow: var(--shadow-md); }
.selection-card.selected { border-color: #0284c7; background-color: #f0f9ff; }
.selection-card.selected::before { content: '✓'; position: absolute; top: 10px; right: 10px; background: #0284c7; color: white; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: bold; }

.card-icon { font-size: 2rem; font-weight: 900; color: var(--primary); margin-bottom: 1rem; }
.card-label { font-size: 1rem; font-weight: 600; color: var(--gray-700); }

.wizard-actions { display: flex; justify-content: space-between; margin-top: 3rem; border-top: 1px solid var(--gray-200); padding-top: 1.5rem; }
.wizard-actions.right { justify-content: flex-end; }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--gray-100); }
.wizard-btn-next { background-color: var(--primary); color: white; min-width: 150px; }

.wizard-layout-split { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.summary-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 12px; padding: 2rem; text-align: center; height: 100%; }
.summary-icon { font-size: 2.5rem; font-weight: 900; margin-bottom: 1rem; color: var(--primary); }
.summary-row { display: flex; justify-content: space-between; margin-top: 1.5rem; font-size: 0.9rem; color: var(--gray-700); }
.summary-row strong { font-size: 1.2rem; color: var(--primary); }

@media (max-width: 768px) {
    .wizard-progress-bar { overflow-x: auto; white-space: nowrap; padding-bottom: 1.5rem; }
    .wizard-layout-split { grid-template-columns: 1fr; }
}