* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    color: #222;
    line-height: 1.5;
}

/* Navegación */
nav {
    background: linear-gradient(90deg, #4fc3f7 0%, #0288d1 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.barnav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 18px 0;
}

.barnav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: color 0.2s, border-bottom 0.2s;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.barnav a:hover {
    color: #ffd166;
    border-bottom: 2px solid #ffd166;
}

/* Espacios */
.espacio {
    height: 20px;
}

/* Título */
.titulos {
    text-align: center;
    font-size: 2.5rem;
    color: #0288d1;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 20px;
    margin-bottom: 20px;
    text-shadow: 1px 2px 8px #b2ebf2;
    text-transform: uppercase;
}

/* Contenedor de imágenes */
.image-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto 40px auto;
    padding: 20px;
}

/* Cada imagen */
.image {
    background: #ffffffcc;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(2,136,209,0.09);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 16px 8px 10px 8px;
}

.image img {
    width: 100%;
    max-width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 3px solid #4fc3f7;
    transition: border 0.2s;
}

.image:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px rgba(2,136,209,0.18);
}

.image:hover img {
    border: 3px solid #ffd166;
}

.image p {
    font-size: 1.05rem;
    color: #0288d1;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
}

/* Fondo negro translúcido */
.negro {
    background-color: rgba(0, 0, 0, 0.2);
    height: 50px;
}

/* Footer */
.footer {
    background: #0288d1;
    color: #fff;
    text-align: center;
    padding: 22px 0 10px 0;
    font-size: 1rem;
    margin-top: 40px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 700px) {
    .barnav {
        flex-direction: column;
        gap: 16px;
    }
    .titulos {
        font-size: 1.5rem;
    }
    .image img {
        max-width: 100%;
        height: 110px;
    }
    .image-container {
        gap: 16px;
        padding: 8px;
    }
}