/* Contenedor de los divs */
.container-box {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
/*max-width: 1200px;*/
padding: 20px;
margin: 0 auto;
}

/* Estilos para los divs individuales */
.box {
position: relative;
background-color: #000;
border-radius: 12px 12px 0px 0px;
padding: 20px;
text-align: center;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
overflow: hidden;
opacity: 0;
transition: opacity 0.8s ease-out, transform 0.8s ease-out;
min-height:400px;
}
.box::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(41,40,40,0.6) 50%, rgba(0,0,0,1) 100%);
z-index: 1;
}

.box:nth-child(1) {
opacity: 0;
transition-delay: 0.1s;
background-image: url(../img/home/3.avif);
background-size: cover;
background-position: center;
}

.box:nth-child(2) {
opacity: 0;
transition-delay: 0.3s;
background-image: url(../img/home/4.webp);
background-size: cover;
background-position: center;
}

.box:nth-child(3) {
opacity: 0;
transition-delay: 0.5s;
background-image: url(../img/home/2.jpeg);
background-size: cover;
background-position: center;
}

.box:nth-child(4) {
opacity: 0;
transition-delay: 0.7s;
background-image: url(../img/home/5.jpg);
background-size: cover;
background-position: center;
}

.box:nth-child(5) {
opacity: 0;
transition-delay: 0.9s;
background-image: url(../img/home/6.webp);
background-size: cover;
background-position: center;
}

.box.visible {
opacity: 1;
transform: translateX(0);
}

/* Contenido sobre el fondo */
.box-content {
position: relative;
z-index: 2;
color: white;
}

/* Íconos SVG */
.box svg {
width: 50px;
height: 50px;
margin-bottom: 10px;
fill: white;
stroke: white;
}

/* Títulos y texto */
.box h3 {
margin: 10px 0;
font-size: 1.4em;
color: white;
border: 0px;
font-family: 'Barlow', sans-serif;
}

.box p {
font-size: 1.2em;
line-height: 1.5;
color: white;
font-family: 'Barlow', sans-serif;
padding: 50px 100px 0 100px;
}
.span-col {
  grid-column: span 2; 
}
.box:hover {
  background-size: 150%;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
.box:hover::before {
  background-size: 150%;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(156,22,22,0.6250875350140056) 0%, rgba(0,0,0,1) 100%);
}
.box:hover h3,
.box:hover p,
.box:hover svg{
  transform: scale(1.2);
}
.box:active {
  background-size: 100%; 
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); 
}
.box:active h3,
.box:active p,
.box:active svg{
  transform: scale(1);
}

.video-background {
	position: relative;
	width: 100%;
	height: 100vh; /* Ajusta la altura según lo que necesites */
	overflow: hidden;
	background: #00000069;
}
.video-background video {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	z-index: -1;
	object-fit: cover;
}
.video-background .content {
	position: relative;
	z-index: 1;
	color: white;
	text-align: center;
	top: 50%;
	transform: translateY(-50%);
	font-family: Arial, sans-serif;
	padding: 30px;
}
.video-background .content h1{
    font-size: 36px;
	color: white;
}
.video-background .content form label{
    font-size: 2rem;
	color: white;
}
.form-group {
	color: white;
    text-align: left;
}

@media (max-width: 800px) {
	.container-box {
	  grid-template-columns: 1fr;
	}
	.span-col {
	  grid-column: span 1; 
	}
	.box p {
		padding: 50px 10px 0 10px;
	}	
}
  
