/* Fondo general */
body {
    margin: 0;
    padding: 0;
    background-image: url('fondo.jpg'); /* Asegúrate que fondo.png esté en la carpeta raíz */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Encabezado con efecto translúcido */
header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #2c3e50;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 2px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.animacion-titulo {
    font-size: 2.5em;
    margin: 0;
    animation: zoomIn 2s ease-out;
}

.subtitulo {
    font-size: 18px;
    margin-top: 10px;
    animation: fadeIn 2s ease-in;
}

/* Contenedor principal */
.contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px 20px;
    gap: 30px;
}

/* Tarjetas o bloques */
.bloque {
    width: 360px;
    background: rgba(255, 255, 255, 0.85);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bloque:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.bloque img {
    width: 100%;
    border-radius: 12px;
    margin-top: 15px;
    animation: slideIn 1.5s ease;
}

/* Posicionamiento sutil */
.bloque-izquierda {
    position: relative;
    top: 10px;
}

.bloque-derecha {
    position: relative;
    top: -10px;
}

/* Pie de página */
footer {
    background-color: rgba(0, 0, 0, 0.75);
    color: #f0f0f0;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    border-top: 1px solid #ccc;
    margin-top: 40px;
}

/* Animaciones */
@keyframes zoomIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(80px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

