/* ---- Estilos Generales ---- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff5e6;
    color: #333;
    line-height: 1.6;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 10px; /* Espaciado para evitar que los elementos se peguen a los bordes */
}

h1, h2, h3 {
    color: #333;
    text-align: center;
}

/* ---- Estilos de la Tabla ---- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* ---- Ajustes para Listas ---- */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 5px 0;
}

/* ---- Estilos del Footer ---- */
footer {
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

/* ---- ESTILOS RESPONSIVOS ---- */

/* Para pantallas menores a 768px (tablets y móviles) */
@media (max-width: 768px) {
    h1, h2, h3 {
        font-size: 1.2em;
    }
    
    table {
        font-size: 0.9em; /* Reduce el tamaño del texto en tablas */
    }

    th, td {
        padding: 8px;
    }

    .gallery-container {
        padding: 0 5px;
    }

    footer {
        font-size: 0.8em;
        text-align: center;
    }
}

/* Para pantallas menores a 480px (móviles) */
@media (max-width: 480px) {
    h1, h2, h3 {
        font-size: 1em;
        text-align: center;
    }

    th, td {
        padding: 5px;
    }

    /* Se ajusta la tabla para hacerla desplazable horizontalmente */
    .table-container {
        width: 100%;
        overflow-x: auto;
    }

    footer {
        font-size: 0.7em;
    }
}
