/* === Estilos generales === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.8;
}
header {
    background-image: url('ia autos2.png'); /* o .png si es PNG */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    position: relative;
}

/* Capa oscura encima de la imagen para contraste */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Oscurece la imagen */
    z-index: 0;
}

/* Texto del header encima del fondo oscuro */
header h1,
header p {
    position: relative;
    z-index: 1;
}


/* === Secciones generales === */
section {
    padding: 2rem 1rem;
    max-width: 1100px;
    margin: 0 auto 2rem auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

section h2 {
    color: #005580;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

section h3 {
    color: #444;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
}

section p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* === Galería === */
.galeria .imagenes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.galeria img {
    width: 280px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.galeria img:hover {
    transform: scale(1.05);
}

/* === Participa === */
.participa a {
    color: #0077cc;
    text-decoration: none;
    font-weight: bold;
}

.participa a:hover {
    text-decoration: underline;
}

/* === Footer === */
footer {
    background-color: #222;
    color: #bbb;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    section {
        padding: 1.5rem 1rem;
    }

    .galeria img {
        width: 100%;
        max-width: 320px;
    }
}
