body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
}

.seccion {
    position: relative;
    height: 100vh; /* Cambia de 100vh a auto para permitir que se ajuste al contenido */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    margin: 0; /* Elimina márgenes si los hay */

}

.titulo-inicio {
    position: relative;
    z-index: 2; /* Mantiene el título por encima del fondo */
    font-size: 80px;
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.7); /* Sombra más sutil para mejorar el contraste */
    color: #fff;
    letter-spacing: 2px; /* Espaciado entre letras */
    text-align: center;
}




/* Efecto linea en el H1 */

h1::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: #ffffff;
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.7);
    bottom: -10px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

h1:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}




.contenido-seccion {
    z-index: 2; /* Coloca el contenido encima de la galería */
    text-align: center;
}

.contenido-seccion p {
    font-size: 1.7rem;
    margin-top: -25px;
    color: #f0f0f0;
    max-width: 750px;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5); /* Sombra en el párrafo */
}

/* Fondo con overlay semitransparente */
.Fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
    z-index: 1; /* El fondo debe estar detrás del contenido */
}

.Fondo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%); /* Efecto blanco y negro */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Capa oscura semitransparente */
    z-index: 1;
}

.FondoMovil{
    display: none;
}



.contenido-seccion2{
  overflow: hidden;
  display: flex;
  justify-content: center; /* Centra las imágenes horizontalmente */
  align-items: center; /* Centra las imágenes verticalmente */
  margin-top: -100px;
  margin-bottom: -100px;
}

.contenido-seccion2 img{
  max-width: 50%; /* Evita que las imágenes sean más grandes que su contenedor */
  margin: 50px; 
  position: static;
  border-radius: 10px;
}

.contenido-seccion2 {
    display: flex;
    align-items: center; /* Centra verticalmente el texto con la imagen */
    justify-content: space-between; /* Deja espacio entre el texto y la imagen */
    padding: 40px;
    gap: 20px; /* Añade espacio entre el texto y la imagen */
}

.texto {
    flex: 1; /* Permite que el texto ocupe el 50% del espacio */
    max-width: 600px; /* Controla el ancho máximo para que no sea demasiado ancho */
}

.texto h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.texto p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.imagen {
    flex: 1; /* Permite que la imagen ocupe el otro 50% */
    text-align: center;
}

.imagen img {
    width: 100%;
    max-width: 500px; /* Limita el ancho máximo de la imagen */
    border-radius: 10px;
}


footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

footer p {
    margin: 5px 0;
}