/* Reseteo básico */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- SECCIÓN 1: HERO --- */
#hero {
	height: 100dvh;
	background-color: #000000; /* Negro */
	color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 2rem;
}

.hero-title {
	width: 500px;
	max-width: 85%;
	margin-bottom: 1rem;
}

.hero-slogan {
	font-size: 1.8rem;
	font-weight: 300;
	color: #ffffff;
}

/* Animaciones de carga */
.animate-load {
	opacity: 0;
	transform: translateY(30px);
	animation: fadeInUp 1s ease-out forwards;
}

.delay-1 {
	animation-delay: 0.4s;
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* --- SECCIÓN 2: BENTO GRID --- */
#bento {
	min-height: 100dvh;
	background-color: #ffffff;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 2rem 2rem;
}

/* Usamos una cuadrícula de 10 columnas para dar anchos distintos en un formato 2x2 */
.bento-grid {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	gap: 1.5rem;
	width: 100%;
	height: 100dvh;
	min-height: 500px;
}

.bento-item {
	position: relative;
	border-radius: 1.5rem;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Distribución de anchos distintos para el Bento */
.item-1 { grid-column: span 6; } /* Programación: Más ancho */
.item-2 { grid-column: span 4; } /* IA: Más estrecho */
.item-3 { grid-column: span 4; } /* Open Source: Más estrecho */
.item-4 { grid-column: span 6; } /* Ciberseguridad: Más ancho */

.bento-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efecto Zoom al pasar el ratón */
.bento-item:hover img {
	transform: scale(1.1);
}

.bento-label {
	position: absolute;
	bottom: 1.5rem;
	left: 1.5rem;
	background-color: white;
	color: black;
	padding: 0.5rem 1.2rem;
	border-radius: 2rem;
	font-size: 1.1rem;
	font-weight: 600;
	backdrop-filter: blur(5px);
}

/* --- SECCIÓN 3: CONTACTO (FOOTER) --- */
#footer {
	height: 50dvh;
	min-height: 330px;
	background-color: #000000; /* Negro */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: #ffffff;
}

.zoom:hover {
	transform: scale(1.1);
}

.phone {
	width: 50px;
	max-width: 85%;
	margin-bottom: 3rem;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.number {
	width: 300px;
	max-width: 85%;
	margin-bottom: 1rem;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.copyright {
	margin-top: 50px;
	color: #ddd;
	font-size: 0.75rem;
	letter-spacing: 2px;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);	
}

/* --- RESPONSIVE DESIGN (Móviles / Portrait) --- */
@media (max-width: 700px) or (orientation: portrait) {
	.hero-title { font-size: 4rem; }
	.hero-slogan { font-size: 1.2rem; }

	.bento-grid {
		grid-template-columns: 1fr; /* Pasa a formato 1x1 */
		height: auto;
	}

	/* Todas las cajas ocupan el 100% del ancho en móvil */
	.item-1, .item-2, .item-3, .item-4 {
		grid-column: span 1;
		height: 300px; /* Alto fijo para que se vean bien en móvil */
	}
}