
:root {
    --primary-color: #4a90e2;
    --accent-color: #ff6384;
    --success-color: #4caf50;
    --kids-color: #ff9800;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    margin: 0;
    padding: 20px 0;
    color: #333;
}

#container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

#cabecera {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

#cabecera h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 2.2rem;
}

#cabecera p {
    color: #777;
    font-style: italic;
    margin: 5px 0;
}

/* Tabs de navegación */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1rem;
}

.tab:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab.kids.active {
    background: var(--kids-color);
    border-color: var(--kids-color);
}

#info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#basica {
    display: flex;
    justify-content: space-around;
    background: rgba(74, 144, 226, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

#basica p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

#basica span {
    display: block;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

#temperatura::before { content: "🌡️ "; font-size: 1.5rem; }
#viento::before { content: "💨 "; font-size: 1.5rem; }

/* Filtros para sección niños */
.filtros {
    background: #fff3e0;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
}

.filtros.visible {
    display: block;
}

.filtros h3 {
    margin: 0 0 12px 0;
    color: var(--kids-color);
    font-size: 1.1rem;
}

.filtros-grupo {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.filtro-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.filtro-btn:hover {
    border-color: var(--kids-color);
}

.filtro-btn.activo {
    background: var(--kids-color);
    color: white;
    border-color: var(--kids-color);
}

/* Sección de actividades */
#actividades {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

#actividades h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

#actividades.kids h2 {
    color: var(--kids-color);
}

.actividad-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.actividad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.actividad-card.ideal {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.actividad-card.buena {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.actividad-card.regular {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
}

.actividad-card.kids {
    background: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);
}

.actividad-card.kids.ideal {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
}

.actividad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.actividad-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.actividad-icono {
    font-size: 2.5rem;
}

.actividad-nombre {
    font-size: 1.3rem;
    font-weight: bold;
}

.badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.actividad-badge {
    background: rgba(255,255,255,0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-edad {
    background: rgba(255,255,255,0.4);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.badge-precio {
    background: rgba(255,255,255,0.25);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.actividad-descripcion {
    font-size: 0.95rem;
    margin: 10px 0;
    opacity: 0.95;
}

.actividad-condiciones {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 8px;
}

.actividad-enlaces {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-enlace {
    background: rgba(255,255,255,0.25);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-enlace:hover {
    background: rgba(255,255,255,0.4);
}

.btn-votar {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 10px;
    transition: all 0.2s;
}

.btn-votar:hover {
    background: rgba(255,255,255,0.2);
}

.btn-votar.votado {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.8);
}

#grafico {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

#grafico h2 {
    font-size: 1.2rem;
    color: #555;
    margin-top: 0;
    text-align: center;
}

canvas {
    max-width: 100% !important;
    height: auto !important;
}

.no-actividades {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

/* Stats de gamificación */
#stats {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.stat-numero {
    font-size: 2rem;
    font-weight: bold;
    color: #d84315;
}

.stat-texto {
    font-size: 0.85rem;
    color: #666;
}

.oculto {
    display: none;
}

@media (max-width: 600px) {
    #basica {
        flex-direction: column;
        gap: 15px;
    }
    
    .actividad-enlaces {
        flex-direction: column;
    }
    
    #stats {
        flex-direction: column;
        gap: 10px;
    }

    .tabs {
        font-size: 0.9rem;
    }

    .tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}
