/* Reset de márgenes y padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo general del body */
body {
    font-family: sans-serif;
    overflow-x: hidden;
}

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    color: white;
    overflow: hidden;
}

#hero-background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

#background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.5); /* Semi-transparente */
}

.content {
    position: relative;
    z-index: 1;
    padding: 0;
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 170px;
    margin-bottom: 100px;
}

.pinterest-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 80px; /* Espacio vertical y horizontal */
    padding: 20px; /* Espacio alrededor del grid */
    width: 100%;
}

.grid-item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.video-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 30px; /* Bordes redondeados para el video */
}

.grid-item video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item:hover video {
    transform: scale(1.1);
}

.text-container {
    position: relative;
    bottom: 0;
    left: 0;
    width: 70%;
    max-width: 70%;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: #0538a5; /* Color de fondo del contenedor de texto */
    color: white;
    text-align: center;
    box-sizing: border-box;
    word-wrap: break-word;
    height: 110px;
    transform: translateY(-33%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.text-container p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.9em;
}

/* Media query para hacerlo responsivo (opcional) */
@media (max-width: 768px) {
    .pinterest-layout {
        grid-template-columns: 1fr;
    }
}