/* ================= VARIABLES Y ESTILOS GLOBALES ================= */
:root {
    --primary-color: #2e7d32;
    --primary-light: #e8f5e9;
    --secondary-color: #1976d2;
    --accent-orange: #f57c00;
    --accent-red: #d32f2f;
    --bg-sand: #fbf8ef;
    --card-border: #8d6e63;
    --font-heading: 'Fredoka', cursive, sans-serif;
    --font-body: 'Quicksand', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-sand);
    font-family: var(--font-body);
    color: #333;
    line-height: 1.6;
}

/* ================= CABECERA DE LA ESCUELA ================= */
.school-header {
    background-color: #ffffff;
    border-bottom: 4px solid var(--primary-color);
    padding: 12px 20px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-icon {
    font-size: 2rem;
    color: var(--primary-color);
    background: #e8f5e9;
    padding: 10px 14px;
    border-radius: 12px;
}

.school-info h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.4rem;
}

.school-info p {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar {
    display: flex;
    border: 2px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
}

.search-bar input {
    border: none;
    padding: 6px 12px;
    outline: none;
}

.search-bar button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 14px;
    cursor: pointer;
}

.btn-login {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-heading);
}

/* ================= TÍTULO DEL MURAL ================= */
.main-title-section {
    text-align: center;
    padding: 20px 15px;
    background: #e8f5e9;
    border-bottom: 2px dashed #a5d6a7;
}

.main-title-section h1 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2.2rem;
    text-shadow: 1px 1px 0px #fff;
}

.slogan {
    font-size: 1.2rem;
    font-weight: 700;
    color: #43a047;
}

/* ================= NAV BAR (RESPONSIVE SIN OCULTAR) ================= */
.nav-bar-container {
    background: #2e7d32;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.nav-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.nav-btn {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid #81c784;
    padding: 8px 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn:hover, .nav-btn.active {
    background: #ffeb3b;
    color: #1b5e20;
    border-color: #fbc02d;
    transform: translateY(-2px);
}

/* ================= CONTENIDO Y SECCIONES ================= */
.content-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.section-page {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.section-page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* BANNER HERO DE INICIO */
.hero-banner {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 40px 25px;
    color: white;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hero-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fffde7;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.btn-explore {
    background: #ff9800;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* CAJA ¿SABÍAS QUÉ? */
.sabias-que-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 20px;
    border-radius: 18px;
    border: 3px solid #ffca28;
    position: relative;
}

.sq-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e65100;
    margin-bottom: 8px;
}

.sq-header h3 {
    font-family: var(--font-heading);
}

.bird-illustration {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* TARJETAS GRID MURAL */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.mural-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 18px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mural-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card-conoce { border-color: #81c784; }
.card-conoce .card-icon { color: #2e7d32; }

.card-problematica { border-color: #ffb74d; }
.card-problematica .card-icon { color: #f57c00; }

.card-cuidarla { border-color: #4dd0e1; }
.card-cuidarla .card-icon { color: #00acc1; }

.card-galeria { border-color: #ba68c8; }
.card-galeria .card-icon { color: #8e24aa; }

.card-reporta { border-color: #ef5350; }
.card-reporta .card-icon { color: #d32f2f; }

.card-compromiso { border-color: #f48fb1; }
.card-compromiso .card-icon { color: #d81b60; }

.mural-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.btn-card {
    margin-top: 15px;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #555;
    display: inline-block;
}

/* BOTÓN VOLVER EN MÓVIL */
.btn-back {
    background: #e0e0e0;
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    font-family: var(--font-heading);
    cursor: pointer;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* GALERÍA DE FOTOS Y VIDEO */
.video-container-box {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.responsive-video {
    width: 100%;
    max-height: 480px;
    border-radius: 12px;
    margin-top: 10px;
    background: #000;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

.photo-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.photo-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.photo-card p {
    padding: 10px;
    font-size: 0.9rem;
}

.photo-card.placeholder {
    border: 2px dashed #bbb;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.ph-icon {
    font-size: 2rem;
    color: #aaa;
}

/* FORMULARIO DE REPORTE */
.report-form {
    background: white;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: var(--font-body);
}

.btn-submit {
    width: 100%;
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
}

/* COMPROMISO */
.commitment-card {
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    border: 4px dashed #f48fb1;
}

.btn-pledge {
    background: #e91e63;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    cursor: pointer;
    margin: 20px 0 10px 0;
}

/* FOOTER */
.mural-footer {
    background: #1b5e20;
    color: white;
    text-align: center;
    padding: 20px 15px;
    margin-top: 40px;
}

.footer-banner h3 {
    font-family: var(--font-heading);
    color: #ffeb3b;
}

.social-links {
    margin: 10px 0;
}

.social-links a {
    color: white;
    font-size: 1.4rem;
    margin: 0 8px;
}

/* RESPONSIVE MÓVIL */
@media (max-width: 768px) {
    .hero-banner {
        grid-template-columns: 1fr;
    }

    .school-info h2 {
        font-size: 1.1rem;
    }

    .main-title-section h1 {
        font-size: 1.5rem;
    }

    .nav-buttons {
        gap: 5px;
    }

    .nav-btn {
        font-size: 0.78rem;
        padding: 6px 10px;
    }
}
/* =========================================
   ESTILOS PARA TARJETAS VERTICALES
   ========================================= */

/* Encabezado dividido (Título e indicación) */
.custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.custom-title {
    font-size: 1.8rem;
    color: #2a6f37; /* Verde oscuro por defecto */
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

.custom-subtitle {
    font-size: 0.95rem;
    color: #666;
    text-align: right;
    flex: 1;
    margin: 0;
    padding-left: 15px;
}

.warning-text { color: #d35400; }
.success-text { color: #2a6f37; }

/* Contenedor de las tarjetas */
.vertical-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Diseño individual de la tarjeta */
.info-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Colores de los bordes superiores */
.border-green {
    border-top: 6px solid #2a6f37;
}

.border-orange {
    border-top: 6px solid #e67e22;
}

/* Iconos/Emojis dentro de la tarjeta */
.card-emoji {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

/* Textos de la tarjeta */
.info-card h4 {
    font-size: 1.2rem;
    color: #222;
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
}

.info-card p {
    font-size: 1rem;
    color: #444;
    margin: 0;
    line-height: 1.5;
}