/* css/styles.css - ESTILOS COMPLETOS (LOGIN + DASHBOARD + VOLUNTARIO) */

/* --- RESET Y BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    /* Fondo con patrón */
    background-image: url('../assets/fondo.png');
    background-repeat: repeat;
    background-size: auto;
    background-color: #f0f2f5;
    
    /* Centrado de la App */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px; 
}

/* --- CONTENEDOR PRINCIPAL (Tarjeta Flotante tipo App) --- */
#app-container {
    width: 100%;
    max-width: 450px; /* Ancho móvil */
    background-color: #ffffff;
    min-height: 80vh;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* =========================================
   ESTILOS PANTALLA LOGIN (index.html)
   ========================================= */
#login-screen {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.logo-area { 
    text-align: center; 
    margin-bottom: 25px; /* Reduje un poco el margen inferior para que quepa todo bien */
}
/* Nueva clase para el logo */
.app-logo {
    max-width: 160px; /* Tamaño ideal para móviles */
    height: auto;     /* Mantiene la proporción */
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    
    /* Opcional: Si el blanco del JPG no es exactamente #ffffff puros, 
       esto ayuda a fusionarlo si el fondo fuera grisáceo */
    mix-blend-mode: multiply; 
}

.logo-area h1 { 
    color: #ff6b6b; 
    font-size: 2.0rem; /* Ajuste leve para equilibrar con el logo */
    margin-top: 5px;
}

input {
    width: 100%; padding: 15px; margin-bottom: 15px;
    border: 1px solid #e1e1e1; border-radius: 10px;
    font-size: 16px; background-color: #f9f9f9;
}

.btn-primary {
    width: 100%; padding: 15px;
    background-color: #ff6b6b; color: white;
    border: none; border-radius: 10px;
    font-size: 18px; font-weight: bold;
    cursor: pointer; transition: background-color 0.2s;
}
.btn-primary:hover { background-color: #ff5252; }

.divider {
    text-align: center; margin: 25px 0; color: #999;
    font-size: 14px; display: flex; align-items: center;
}
.divider::before, .divider::after {
    content: ""; flex: 1; border-bottom: 1px solid #e1e1e1;
}
.divider::before { margin-right: 10px; }
.divider::after { margin-left: 10px; }

.btn-google {
    width: 100%; padding: 12px;
    background-color: #ffffff; color: #757575;
    border: 1px solid #ddd; border-radius: 10px;
    font-size: 16px; font-weight: 500;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background-color 0.2s;
}
.btn-google:active { background-color: #f1f1f1; }
.btn-google img { width: 20px; height: 20px; margin-right: 12px; }

a { color: #ff6b6b; text-decoration: none; font-weight: bold; cursor: pointer; }
.footer-text { text-align: center; margin-top: 30px; color: #666; font-size: 14px; }

/* =========================================
   ESTILOS DASHBOARD (home.html)
   ========================================= */

/* Header */
header {
    padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
    background: white; border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.user-info small { color: #888; display: block; font-size: 11px; margin-top: 2px; }
.btn-logout {
    font-size: 12px; padding: 6px 12px;
    border: 1px solid #ccc; background: white;
    border-radius: 20px; cursor: pointer;
    transition: 0.2s; display: flex; align-items: center; gap: 5px;
}
.btn-logout:hover { background: #fee; border-color: #f88; color: #d32f2f; }

/* Estadísticas */
.stats-container {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; margin-bottom: 20px;
}
.stat-card {
    background: white; padding: 15px; border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); text-align: center; border: 1px solid #f0f0f0;
}
.stat-number { font-size: 20px; font-weight: bold; color: #1565C0; display: block; }
.stat-label { font-size: 10px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }

/* Menú de Acciones - ACTUALIZADO */
.actions-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 10px; margin-bottom: 25px;
}

.action-btn {
    background: white; border: 1px solid #f0f0f0;
    padding: 10px 5px; border-radius: 12px;
    cursor: pointer; display: flex; flex-direction: column; align-items: center;
    gap: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    width: 100%;
    
    /* CAMBIO: Transición suave para movimiento, sombra y color */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* CAMBIO: Nuevo Efecto Hover */
.action-btn:hover {
    transform: translateY(-5px); /* El botón "flota" hacia arriba */
    box-shadow: 0 10px 20px rgba(21, 101, 192, 0.15); /* Sombra azulada suave */
    border-color: #bbdefb; /* Borde azul claro */
}

/* Efecto al hacer click (se hunde) */
.action-btn:active { 
    transform: scale(0.95) translateY(0); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.action-icon {
    width: 35px; height: 35px;
    background: #e3f2fd; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #1565C0; font-size: 16px;
    /* Agregamos transición al icono también */
    transition: transform 0.3s ease;
}

/* Opcional: El icono crece un poquito al pasar el mouse */
.action-btn:hover .action-icon {
    transform: scale(1.1);
}

.action-text { font-size: 10px; font-weight: bold; color: #444; text-align: center; }

/* Inventario y Listas */
.inventory-section {
    background: white; border-radius: 15px;
    padding: 15px; box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    flex: 1;
}

.filters-bar { display: flex; gap: 10px; margin-bottom: 15px; }
.search-box { flex: 2; position: relative; }
.search-box input { padding-left: 35px; margin-bottom: 0; }
.search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #999; }
.filter-select { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid #e1e1e1; background: #f9f9f9; }

/* Tarjetas de Mascotas (Admin) */
.pet-list { display: grid; gap: 10px; padding-bottom: 20px; }
.pet-card {
    display: flex; align-items: center;
    background: #fff; border: 1px solid #eee;
    border-radius: 10px; padding: 10px; gap: 15px;
    transition: 0.2s; position: relative;
}
.pet-card:hover { border-color: #1565C0; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.05); }

/* Avatar */
.pet-thumb { 
    width: 60px; height: 60px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid #eee;
    flex-shrink: 0;
}
div.pet-thumb.generic {
    display: flex; align-items: center; justify-content: center;
    background-color: #f0f0f0; color: #bdbdbd; font-size: 24px;
}
.pet-info { flex: 1; }
.pet-name { font-weight: bold; font-size: 16px; margin: 0; color: #333; }
.pet-detail { font-size: 12px; color: #777; margin: 2px 0; }
.pet-badges { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }

.badge { font-size: 9px; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.badge-adoption { background: #e8f5e9; color: #2e7d32; }
.badge-temp { background: #fff3e0; color: #ef6c00; }
.badge-help { background: #ffebee; color: #c62828; }

.pet-actions { display: flex; gap: 5px; }
.btn-icon { background: none; border: none; cursor: pointer; color: #bbb; font-size: 16px; padding: 5px; }
.btn-icon:hover { color: #1565C0; }
.btn-icon.delete:hover { color: #f44336; }

/* =========================================
   ESTILOS MODALES (ADMIN)
   ========================================= */
.modal {
    position: absolute;
    z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none; justify-content: center; align-items: flex-start;
    overflow-y: auto; padding: 20px 0;
    backdrop-filter: blur(2px);
}
.modal-content {
    background: white; padding: 25px;
    border-radius: 20px; width: 90%; max-width: 400px;
    position: relative; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    margin-top: 20px; margin-bottom: 20px;
}
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #aaa; }

.modal-form input[type="text"], .modal-form input[type="email"], .modal-form select {
    width: 100%; padding: 12px; margin-bottom: 12px;
    border: 1px solid #ddd; border-radius: 8px; background: #f9f9f9;
}

/* Galería Upload */
.photo-area {
    border: 2px dashed #ccc; padding: 20px;
    text-align: center; border-radius: 10px;
    cursor: pointer; background: #fafafa; margin-bottom: 10px;
}
.gallery-preview { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 15px; min-height: 90px; }
.preview-card {
    position: relative; flex-shrink: 0;
    width: 80px; height: 80px;
    border-radius: 8px; overflow: hidden;
    border: 1px solid #ddd;
}
.preview-card img { width: 100%; height: 100%; object-fit: cover; }
.btn-remove-photo {
    position: absolute; top: 2px; right: 2px;
    background: rgba(244, 67, 54, 0.9); color: white;
    border-radius: 50%; width: 20px; height: 20px;
    border: none; cursor: pointer; font-size: 12px;
    display: flex; align-items: center; justify-content: center; z-index: 5;
}
.btn-make-cover {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: rgba(0,0,0,0.7); color: white; border: none;
    font-size: 9px; padding: 2px; cursor: pointer; text-align: center; z-index: 5;
}
.badge-cover {
    position: absolute; top: 2px; left: 2px;
    background: #FFC107; color: #333; font-size: 9px;
    padding: 2px 4px; border-radius: 4px; font-weight: bold;
    z-index: 5; pointer-events: none;
}
.is-cover { border: 3px solid #FFC107; }

/* Elementos UI Form */
.check-group { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 14px; color: #555; }
.check-group input[type="checkbox"] { width: auto; margin: 0; transform: scale(1.2); accent-color: #ff6b6b; }
.form-section-title {
    font-size: 11px; font-weight: bold; color: #999;
    margin: 20px 0 8px 0; text-transform: uppercase;
    border-bottom: 1px solid #eee; padding-bottom: 5px;
}
.tag-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: #e3f2fd; color: #1565C0; padding: 4px 10px;
    border-radius: 15px; font-size: 12px; margin-right: 5px; margin-bottom: 5px;
}
.org-item {
    background: white; padding: 15px; margin-bottom: 10px;
    border-radius: 8px; border-left: 5px solid #1976D2;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.hidden-field { display: none; }

/* Z-INDEX Fix */
div.swal2-container { z-index: 10000 !important; }

/* =========================================
   ESTILOS VISTA VOLUNTARIO (CATÁLOGO MEJORADO)
   ========================================= */

/* Barra de Filtros */
.catalog-header {
    background: white; padding: 15px;
    border-radius: 15px; margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Fila Superior de Filtros */
.filters-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.region-selector select {
    width: 100%; padding: 10px;
    border: 1px solid #eee; border-radius: 8px;
    color: #555; font-weight: bold;
    margin-bottom: 0; /* Ajustado */
}

/* Toggle Sexo (Estilo Pastilla) */
.sex-toggle {
    display: flex;
    background: #f0f2f5;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #ddd;
}
.sex-btn {
    padding: 6px 15px;
    font-size: 12px;
    cursor: pointer;
    border-right: 1px solid #ddd;
    color: #666;
}
.sex-btn:last-child { border-right: none; }
.sex-btn.active {
    background: #333;
    color: white;
    font-weight: bold;
}

/* Botones Especie */
.species-toggles {
    display: flex; justify-content: space-around;
    margin-bottom: 15px;
}
.species-btn {
    width: 60px; height: 60px;
    border-radius: 50%; border: 2px solid #eee;
    background: white; display: flex;
    flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; color: #888;
}
.species-btn i { font-size: 20px; margin-bottom: 2px; }
.species-btn span { font-size: 9px; font-weight: bold; }
.species-btn.active {
    border-color: #ff6b6b; background: #fff0f0;
    color: #ff6b6b; transform: scale(1.1);
}

/* Chips de Filtro (Wrap para móviles) */
.filter-chips {
    display: flex; gap: 8px;
    flex-wrap: wrap; /* Corrección para móviles */
    padding-bottom: 5px;
}
.filter-chip {
    padding: 6px 14px; background: #f0f2f5;
    border-radius: 20px; font-size: 12px;
    color: #666; white-space: nowrap;
    cursor: pointer; border: 1px solid transparent;
}
.filter-chip.active { background: #333; color: white; }

/* Grilla Publica */
.public-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 15px; padding-bottom: 80px;
}
.public-card {
    background: white; border-radius: 15px;
    overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: relative; cursor: pointer; transition: transform 0.2s;
}
.public-card:active { transform: scale(0.98); }

.card-image-container {
    height: 160px; width: 100%;
    position: relative; background: #eee;
}
.card-image-container img { width: 100%; height: 100%; object-fit: cover; }

.card-badge-top {
    position: absolute; top: 8px; left: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 3px 8px; border-radius: 10px;
    font-size: 10px; font-weight: bold;
    color: #333; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.card-badge-urgent {
    position: absolute; top: 8px; right: 8px;
    background: #ff5252; color: white;
    padding: 3px 8px; border-radius: 10px;
    font-size: 10px; font-weight: bold;
    animation: pulse 2s infinite;
}

.card-details { padding: 10px; }
.card-name { font-size: 16px; font-weight: 800; color: #333; margin-bottom: 2px; }
.card-meta { font-size: 12px; color: #777; display: flex; align-items: center; gap: 5px; }

/* --- MODAL DETALLE (CARRUSEL) --- */
#modal-pet-detail .modal-content { padding: 0; overflow: hidden; max-width: 450px; }

.detail-cover {
    width: 100%; height: 350px; /* Más alto */
    background: #000; /* Fondo negro */
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.detail-cover img { width: 100%; height: 100%; object-fit: contain; } /* Contain para no cortar */

/* Botones Carrusel */
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); color: white; border: none;
    width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; z-index: 10; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: rgba(0,0,0,0.8); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* Contador Fotos */
.photo-counter {
    position: absolute; bottom: 10px; right: 15px;
    background: rgba(0,0,0,0.6); color: white;
    padding: 4px 10px; border-radius: 12px;
    font-size: 11px; z-index: 10;
}

.detail-body { padding: 20px; }
.detail-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 15px; }
.detail-title h2 { margin: 0; font-size: 28px; color: #333; }
.detail-subtitle { font-size: 14px; color: #666; }

.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.detail-tag { background: #e3f2fd; color: #1565C0; padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: bold; }

.detail-specs {
    background: #f9f9f9; border-radius: 12px;
    padding: 15px; margin-bottom: 20px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.spec-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; }
.spec-check { color: #2e7d32; }

.btn-whatsapp {
    background: #25D366; color: white;
    width: 100%; padding: 15px; border: none; border-radius: 12px;
    font-size: 16px; font-weight: bold;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    cursor: pointer; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover { background: #128C7E; }

@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* BADGES DE ESTADO EN TARJETA PÚBLICA */
.badge-status-container {
    position: absolute; 
    bottom: 8px;  /* Antes top: 8px */
    right: 8px;   /* Antes left: 8px */
    display: flex; 
    gap: 5px; 
    flex-direction: row; /* Antes column */
    flex-wrap: wrap;     /* Para que bajen si no caben */
    justify-content: flex-end; /* Alineados a la derecha */
    max-width: 90%; /* Evita que se salgan del contenedor en pantallas muy chicas */
}

.card-badge {
    padding: 3px 8px; 
    border-radius: 10px;
    font-size: 9px; 
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    width: fit-content;
}

.bg-adoption { background: #2e7d32; } /* Verde */
.bg-temp { background: #ef6c00; }     /* Naranja */
.bg-donation { background: #7b1fa2; } /* Morado */
.bg-info { background: rgba(255,255,255,0.9); color:#333; } /* Blanco (Info extra) */

/* --- ESTILOS PARA ESTADÍSTICAS --- */
.stat-section { margin-bottom: 25px; }
.stat-title { font-size: 14px; font-weight: bold; color: #555; margin-bottom: 10px; display: flex; justify-content: space-between; }

/* Barras de Progreso Simples */
.bar-container {
    background: #f0f0f0; height: 20px; width: 100%;
    border-radius: 10px; overflow: hidden; display: flex;
    margin-bottom: 5px;
}
.bar-segment {
    height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: white; font-weight: bold; transition: width 0.5s;
}

/* Colores de Gráfico */
.bg-dog { background: #FF9800; }
.bg-cat { background: #2196F3; }
.bg-other { background: #9C27B0; }
.bg-male { background: #1976D2; }
.bg-female { background: #E91E63; }

/* --- ESTILOS VISTA VOLUNTARIO 2.0 (DASHBOARD) --- */

.vol-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 20px 10px 20px;
    background: white;
}
.header-icons { display: flex; gap: 15px; font-size: 20px; color: #555; }
.section-label {
    font-size: 16px; font-weight: bold; color: #333;
    margin: 20px 20px 10px 20px;
}

/* Slider Destacado (Estilo Tarjeta Morada) */
.featured-slider { padding: 0 20px; margin-bottom: 20px; }
.slider-card-purple {
    background: linear-gradient(135deg, #A855F7, #7C3AED); /* Gradiente Morado */
    border-radius: 20px; padding: 20px;
    display: flex; justify-content: space-between;
    color: white; position: relative;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}
.slider-content { flex: 1; padding-right: 10px; }
.chip-campaign {
    background: rgba(255,255,255,0.2); font-size: 10px;
    padding: 3px 8px; border-radius: 10px; font-weight: bold;
    display: inline-block; margin-bottom: 5px;
}
.slider-card-purple h3 { margin: 5px 0; font-size: 18px; line-height: 1.2; }
.slider-card-purple p { font-size: 12px; margin-bottom: 15px; opacity: 0.9; }
.btn-slider {
    background: rgba(255,255,255,0.25); border: none;
    color: white; padding: 8px 16px; border-radius: 8px;
    cursor: pointer; font-size: 12px; font-weight: bold;
}
.slider-image { width: 90px; height: 90px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255,255,255,0.3); flex-shrink: 0; align-self: center;}
.slider-image img { width: 100%; height: 100%; object-fit: cover; }
.days-left {
    position: absolute; bottom: 20px; right: 20px;
    background: rgba(0,0,0,0.2); font-size: 10px; padding: 2px 6px;
    border-radius: 4px; font-weight: bold;
}
.slider-dots { text-align: center; margin-top: 10px; }
.dot { height: 6px; width: 6px; background-color: #ddd; border-radius: 50%; display: inline-block; margin: 0 3px; }
.dot.active { background-color: #7C3AED; width: 15px; border-radius: 4px; }


/* Grilla de Herramientas */
.tools-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 15px; padding: 0 20px 100px 20px; /* Padding bottom para que no tape el menu */
}
.tool-card {
    background: white; border-radius: 16px; padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03); border: 1px solid #f0f0f0;
    cursor: pointer; transition: transform 0.2s;
}
.tool-card:active { transform: scale(0.97); }
.tool-icon-bg {
    width: 45px; height: 45px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 10px;
}
.tool-card h4 { margin: 0; font-size: 15px; color: #333; }
.tool-card p { margin: 3px 0 0 0; font-size: 11px; color: #999; }


/* BARRA DE NAVEGACIÓN INFERIOR (Footer) */
.bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 450px; /* Igual que el container */
    background: white; border-top: 1px solid #eee;
    display: flex; justify-content: space-around; align-items: flex-end;
    padding: 10px 0; border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05); z-index: 1000;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center;
    color: #bbb; cursor: pointer; font-size: 10px; gap: 4px;
    width: 20%;
}
.nav-item i { font-size: 20px; margin-bottom: 2px; transition: 0.2s; }
.nav-item.active { color: #7C3AED; font-weight: bold; }
.nav-item.active i { transform: translateY(-3px); }

/* Botón central grande (Adoptar) */
.nav-item.big-center { position: relative; bottom: 5px; }
.nav-item.big-center .nav-circle {
    width: 50px; height: 50px; background: #7C3AED;
    border-radius: 50%; color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
    transition: 0.2s;
}
.nav-item.big-center.active .nav-circle { background: #5b21b6; transform: scale(1.1); }

/* Header Back Button (para sub-vistas) */
.section-header-back {
    padding: 15px 20px; font-size: 14px; font-weight: bold;
    color: #555; cursor: pointer; display: flex; align-items: center; gap: 10px;
}

/* --- ESTILOS CAMPAÑAS Y EVENTOS --- */

/* Badge de Calendario (Fecha Visual) */
.event-date-badge {
    background: #fff; border: 1px solid #ddd;
    border-radius: 8px; text-align: center;
    width: 50px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.event-month {
    background: #c62828; color: white;
    font-size: 9px; text-transform: uppercase;
    padding: 2px 0; font-weight: bold;
}
.event-day {
    font-size: 18px; font-weight: 800; color: #333;
    padding: 2px 0;
}

/* Barra de Progreso Avanzada */
.fund-progress-wrapper { margin: 10px 0; }
.fund-progress-bar {
    height: 12px; background: #e0e0e0;
    border-radius: 6px; overflow: hidden; position: relative;
}
.fund-progress-fill {
    height: 100%; background: linear-gradient(90deg, #7b1fa2, #ab47bc);
    border-radius: 6px; width: 0%; transition: width 1s ease-in-out;
}
.fund-stats {
    display: flex; justify-content: space-between;
    font-size: 11px; color: #666; margin-top: 4px;
}

/* Tarjeta Campaña */
.campaign-card {
    background: white; border-radius: 12px; padding: 15px;
    margin-bottom: 15px; border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: relative; overflow: hidden;
}

/* Estrella de Destacado */
.featured-star {
    position: absolute; top: 0; right: 0;
    background: #FFD700; color: #856404;
    padding: 4px 8px; border-radius: 0 0 0 10px;
    font-size: 10px; font-weight: bold;
    box-shadow: -1px 1px 3px rgba(0,0,0,0.1);
    z-index: 2;
}

/* Switch UI para Formularios */
.switch-container {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; padding: 10px; border: 1px solid #ddd;
    border-radius: 8px; margin-bottom: 10px;
}
.switch-label { font-size: 13px; color: #333; font-weight: 600; }
/* Toggle simple con checkbox */
.toggle-switch {
    position: relative; display: inline-block; width: 40px; height: 20px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: .4s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: "";
    height: 16px; width: 16px; left: 2px; bottom: 2px;
    background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: #1565C0; }
input:checked + .slider:before { transform: translateX(20px); }

/* QR Modal Image */
.qr-display {
    width: 200px; height: 200px;
    margin: 20px auto; display: block;
    border: 1px solid #eee; padding: 10px; background: white;
}