/* Variables de Color y Diseño */
:root {
    --primary-color: #88C057; /* Verde logo BH2O */
    --primary-hover: #75a84a;
    --dark-text: #2C3E50;
    --light-bg: #F9F7F1; /* Tono arena muy sutil */
    --white: #FFFFFF;
    --gray-light: #E0E0E0;
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Botones Universales */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-primary.large {
    padding: 15px 32px;
    font-size: 1.1rem;
}

/* Navegación */
.navbar {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

nav a {
    text-decoration: none;
    color: var(--dark-text);
    margin-right: 20px;
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(44,62,80,0.9) 0%, rgba(44,62,80,0.7) 100%), url('https://source.unsplash.com/random/1920x1080/?people,smiling') center/cover;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.hero-metrics {
    margin-bottom: 40px;
}

.metric-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

/* Iniciativas y Filtros */
.initiatives-section {
    padding: 80px 0;
    text-align: center;
}

.filters {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Grid de Tarjetas */
.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-tag {
    align-self: flex-start;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.tag-express { background: #FFE4E1; color: #D2691E; }
.tag-digital { background: #E0FFFF; color: #008B8B; }
.tag-presencial { background: #F0FFF0; color: #2E8B57; }

.card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-metrics {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
    border-top: 1px solid var(--gray-light);
    padding-top: 15px;
}

/* Manifiesto */
.manifesto-section {
    background-color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.manifesto-section p {
    max-width: 800px;
    margin: 20px auto 50px auto;
    font-size: 1.1rem;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.role-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: var(--radius);
}

/* Responsivo */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .nav-content { flex-direction: column; gap: 15px; }
    nav { display: flex; flex-wrap: wrap; justify-content: center; }
}

/* Estilos del Formulario y Muro */
.form-completar { background: #fff; padding: 20px; border-radius: 8px; margin-top: 15px; border: 1px solid var(--primary-color); display: none; text-align: left; }
.form-completar label { font-size: 0.9rem; font-weight: bold; display: block; margin-bottom: 5px;}
.form-completar textarea, .form-completar input[type="file"] { width: 100%; margin-bottom: 15px; padding: 10px; border-radius: 5px; border: 1px solid #ccc; font-family: inherit;}
.muro-img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 8px; margin-top: 10px; cursor: pointer; transition: 0.3s; }
.muro-img:hover { opacity: 0.8; }

/* Lightbox Nativo (Ultra ligero) */
#lightbox { display: none; position: fixed; z-index: 999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); align-items: center; justify-content: center; }
#lightbox img { max-width: 90%; max-height: 90%; border-radius: 8px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
#lightbox .close { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; }