/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body y texto */
body {
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
    color: #333;
    line-height: 1.5;
    font-size: 16px;
}

/* Cabecera */
.arriba {
    background: #4a90e2; /* azul suave, profesional */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-weight: 600;
    font-size: 1.75rem;
    letter-spacing: 0.03em;
}

/* Contenedor principal */
.container {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* Menú lateral */
.lateral {
    background: #f5f7fa; /* gris muy claro */
    width: 220px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 8px rgba(0,0,0,0.07);
    color: #444;
    font-weight: 500;
}

.lateral nav {
    margin-top: 1rem;
    flex: 1;
}

.lateral nav ul {
    list-style: none;
}

.lateral nav ul li {
    border-bottom: 1px solid #e1e4e8;
}

.lateral nav ul li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #444;
    text-decoration: none;
    transition: background-color 0.25s ease, padding-left 0.25s ease;
    border-radius: 4px;
}

.lateral nav ul li a:hover,
.lateral nav ul li a:focus {
    background-color: #d9e6fc; /* azul muy suave */
    padding-left: 1.6rem;
    outline: none;
}

/* Contenido principal */
.contenido {
    flex: 1;
    background: #fff;
    padding: 2rem 2.5rem;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.03);
    border-radius: 6px;
    overflow-y: auto;
}

.contenido h2 {
    color: #4a90e2;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

/* Enlaces en contenido sin subrayado y con hover */
.contenido a {
    color: #444;
    text-decoration: none !important;
    transition: color 0.25s ease, padding-left 0.25s ease;
    display: inline-block;
}

.contenido a:hover,
.contenido a:focus {
    color: #4a90e2;
    padding-left: 0.3rem;
    outline: none;
}

/* Listas dentro de contenido */
.contenido ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.contenido ul li {
    border-bottom: 1px solid #e1e4e8;
    padding: 0.5rem 0;
}

/* Pie de página */
.abajo {
    background: #4a90e2;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .lateral {
        width: 100%;
        flex-direction: row;
        box-shadow: none;
        overflow-x: auto;
    }
    
    .lateral nav ul {
        display: flex;
    }
    
    .lateral nav ul li {
        flex: 1;
        text-align: center;
        border-bottom: none;
    }
    
    .lateral nav ul li a {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .contenido {
        padding: 1rem 1.5rem;
        border-radius: 0;
        box-shadow: none;
    }
}



.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.gallery div {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Aquí se recorta para que la imagen no deforme */
  display: block;
}





footer.abajo {
    background-color: #f8f8f8;
    padding: 20px;
    font-size: 0.9em;
    border-top: 1px solid #ccc;
}

footer .footer-links {
    text-align: center;
    margin-bottom: 10px;
}

footer .footer-links h4 {
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #333;
}

footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

footer .footer-links ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

footer .footer-links ul li a:hover {
    color: #000;
    text-decoration: underline;
}

footer p {
    text-align: center;
    margin-top: 15px;
    color: #777;
    font-size: 0.85em;
}