/* ============================= */
/* Estilos generales del cuerpo */
/* ============================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
}

/* Estilos únicos para el header */


/* ============================= */
/* Banner principal */
/* ============================= */
#banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================= */
/* Secciones generales */
/* ============================= */
section {
    padding: 40px;
    text-align: center;
    background: white;
    margin: 20px auto;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* ============================= */
/* Sección de Bienvenida */
/* ============================= */
#bienvenida {
    background: #e8f5e9;
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#bienvenida h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 15px;
}

#bienvenida p {
    font-size: 18px;
    color: #555;
    margin-bottom: 10px;
}

#bienvenida ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

#bienvenida li {
    background: #d4edda;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    font-size: 16px;
    color: #155724;
    text-align: left;
}


#importancia-gestion .importancia-item img {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* ============================= */
/* Video informativo */
/* ============================= */
#video-info video {
    width: 100%;
    max-width: 700px;
    border-radius: 8px;
    margin-top: 20px;
}

/* ============================= */
/* Campañas activas */
/* ============================= */
#campañas .campaña {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    background: #ecf0f1;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

#campañas img {
    width: 150px;
    border-radius: 8px;
}

/* ============================= */
/* Testimonios */
/* ============================= */
#testimonios {
    text-align: center;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#testimonios blockquote {
    font-style: italic;
    background: #ecf0f1;
    padding: 15px;
    border-left: 5px solid #3498db;
    margin: 20px auto;
    max-width: 600px;
}

.testimonio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px auto;
    max-width: 600px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonio img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

blockquote {
    font-style: italic;
    font-size: 1rem;
    color: #555;
}

/* ============================= */
/* Infografía */
/* ============================= */
#infografia img {
    width: 100%;
    max-width: 700px;
    border-radius: 8px;
    margin-top: 20px;
}

/* ============================= */
/* Botón de llamada a la acción */
/* ============================= */
#cta .btn {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    margin-top: 15px;
    transition: background 0.3s;
}

#cta .btn:hover {
    background: #219150;
}

/* ============================= */
/* Pie de página */
/* ============================= */
footer {
    background: linear-gradient(135deg, #01579b, #012d4a);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    font-size: 14px;
    position: relative;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.3);
}

footer p {
    margin: 0;
    letter-spacing: 0.5px;
}

/* ============================= */
/* Responsividad */
/* ============================= */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    iframe {
        width: 100%;
        height: auto;
    }
}

/* ============================= */
/* Mapa de Reportes */
/* ============================= */
#mapa-reportes {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px auto;
    max-width: 90%;
}

#mapa-reportes iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}



/* Sección de ranking */
.ranking-section {
    padding: 20px;
    background: white;
    margin: 20px auto;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.ranking-section h2 {
    text-align: center;
}

.ranking-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.category {
    background: #E8F5E9;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    width: 220px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category img {
    width: 80px;
    height: auto;
}

/* Tabla de ranking */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    max-width: 800px;
}

.ranking-table th, .ranking-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.ranking-table th {
    background: #4CAF50;
    color: white;
}

.ranking-table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Acciones que impactan el ranking */
.imagenes-ranking {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.imagen {
    text-align: center;
    width: 220px;
}

.imagen img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}




/* Sección de reportes */
#reportes {
    max-width: 800px;
    margin: 30px auto;
    padding: 60px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}


h2 {
    text-align: center;
    color: #0277bd;
}

.form-group {
    margin-bottom: 30px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    resize: none;
}

/* Botón de envío */
.submit-btn {
    width: 100%;
    background: #0288d1;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #0277bd;
}

/* Sección de reportes enviados */
.reportes-enviados {
    margin-top: 30px;
    padding: 15px;
    background: #e1f5fe;
    border-radius: 8px;
}

.reportes-enviados h3 {
    color: #01579b;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    background: white;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}


/* Header mejorado */
header {
    background: linear-gradient(135deg, #0288d1, #01579b);
    color: white;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    border-bottom: 5px solid #014a80;
}

/* Mejorar el título */
header h1 {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Estilos del menú de navegación */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Botones del menú */
nav ul li {
    display: inline;
}

header {
    background-color: #2c3e50;
    color: rgb(255, 255, 255);
    padding: 1.5rem;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

nav a {
    color: rgb(11, 85, 50);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

nav a:hover {
    background-color: #1abc9c;
}


/* ============================= */
/* Formulario de Solicitud de Recolección */
/* ============================= */
#solicitud-recoleccion {
    background: white;
    padding: 40px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

#solicitud-recoleccion h2 {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    color: #444;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    background: #0277bd;
    color: white;
    border: none;
    padding: 14px;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
}

.submit-btn:hover {
    background: #01579b;
}

/* ============================= */
/* Responsividad */
/* ============================= */
@media (max-width: 768px) {
    #solicitud-recoleccion {
        padding: 30px;
        margin: 10px;
    }
}
#solicitud-recoleccion {
    background-image: url('imagenes/recoleccion.jpg') no-repeat center center;
    background-size: cover;
    height: 400px;

}

/* Ajustar estilos de los campos para mejor visibilidad */
input, select, textarea {
    background: rgba(255, 255, 255, 0.8);
    color: black;
}
h3 {
    text-align: center; /* Centra los títulos */
}
.titulo-ranking, .titulo-acciones {
    text-align: center;
    display: block;
    font-weight: bold;
}

/* ============================= */
/* Estilos de la guía de reciclaje */
/* ============================= */
main {
    max-width: 900px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

h2, h3 {
    color: #0277bd;
    text-align: center;
}

p {
    line-height: 1.6;
}

ul {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 5px;
}

ul li {
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ============================= */
/* Estilos para videos */
/* ============================= */
.video-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

iframe {
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}


main {
    flex: 1;
}

/* ============================= */
/* Estilos para sección Educación */
/* ============================= */

.categorias-residuos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-items: center;
}

.tarjeta {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 300px;
    height: 300px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.tarjeta:hover {
    transform: scale(1.05);
}

.tarjeta img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.tarjeta p {
    font-size: 14px;
    color: #333;
}

/* ============================= */
/* Estilos para modal educativo */
/* ============================= */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    background: #fff;
    opacity: 1;
    filter: none;
    padding: 30px;
    width: 90%;
    max-width: 700px;
    border-radius: 10px;
    position: relative;
    text-align: center;
}

.cerrar {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-responsive iframe {
    background-color: #000;
    opacity: 1;
    border: none;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

/* Estilos para tablas de reportes, recolecciones, etc. */
.tabla-reportes {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

.tabla-reportes th,
.tabla-reportes td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tabla-reportes th {
    background-color: #2c3e50;
    color: white;
}

.tabla-reportes tr:hover {
    background-color: #f5f5f5;
}

.tabla-reportes img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
}

.btn-reporte {
    display: inline-block;
    margin-top: 20px;
}


