/* ---- Portada hero ---- */
#portada {
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--blanco);
	width: 100%;
	position: relative;
	overflow: hidden;
	background: url("/imagenes/portada-nosotros.webp") center / cover no-repeat;
}

#portada::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(39,49,107,0.7) 0%, rgba(16,21,35,0.85) 100%);
	z-index: 1;
}

#portada > h1,
#portada > p {
	position: relative;
	z-index: 2;
}

#portada > h1 {
	font-size: 3em;
	text-align: center;
	font-weight: 700;
	width: 80%;
	margin-bottom: 20px;
	text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

#portada > p {
	font-size: 1.2em;
	text-align: center;
	font-weight: 400;
	line-height: 1.7;
	width: 60%;
	max-width: 700px;
	opacity: 0.92;
}

/* ---- Secciones (Misión, Visión, Valores) ---- */
.sections {
	width: 100%;
	max-width: var(--max-width, 1280px);
	margin: 0 auto;
	padding: 64px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	box-sizing: border-box;
}

.reverse {
	flex-direction: row-reverse;
}

.sections > img {
	width: 45%;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.1);
	object-fit: cover;
}

.sections > div {
	width: 50%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0 16px;
	box-sizing: border-box;
	color: var(--negro);
}

.sections > div > h2 {
	font-size: 2.2em;
	text-align: left;
	font-weight: 700;
	margin-bottom: 16px;
	width: 100%;
	color: var(--azul, #3a4aa1);
}

.sections > div > p {
	font-size: 1.1em;
	text-align: left;
	font-weight: 400;
	line-height: 1.8;
	width: 100%;
	color: #444;
}

/* ---- Lista de valores ---- */
.sections > div > ul {
	width: 100%;
	list-style: none;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.sections > div > ul > li {
	box-sizing: border-box;
	width: 100%;
	padding-left: 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	color: var(--negro);
	position: relative;
}

.sections > div > ul > li::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--naranja);
	position: absolute;
	top: 8px;
	left: 0;
}

.sections > div > ul > li > h3 {
	font-size: 1.15em;
	text-align: left;
	font-weight: 700;
	margin-bottom: 4px;
	width: 100%;
	color: var(--azul, #3a4aa1);
}

.sections > div > ul > li > p {
	font-size: 1.05em;
	text-align: left;
	line-height: 1.7;
	font-weight: 400;
	width: 100%;
	color: #555;
}

/* ---- Formulario de contacto ---- */
#formulario-contacto {
	width: 100%;
	max-width: none;
	padding: 80px 24px;
	background: linear-gradient(135deg, var(--azul, #3a4aa1) 0%, var(--azul-fondo, #27316b) 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

#formulario-contacto > h3 {
	color: var(--blanco);
	font-size: 2em;
	text-align: center;
	font-weight: 700;
	margin-bottom: 8px;
}

#formulario-contacto > p {
	color: rgba(255,255,255,0.8);
	font-size: 1.1em;
	text-align: center;
	max-width: 500px;
	margin-bottom: 24px;
	line-height: 1.6;
}

#formulario-contacto > form {
	width: 100%;
	max-width: 440px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

#formulario-contacto > form > input {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid rgba(58,74,161,0.2);
	border-radius: 6px;
	font-size: 0.95rem;
	font-weight: 400;
	color: var(--negro);
	background: #fff;
	transition: 0.25s ease;
	outline: none;
	font-family: "OpenSans", sans-serif;
	box-sizing: border-box;
}

#formulario-contacto > form > input::placeholder {
	color: #999;
	font-family: "OpenSans", sans-serif;
}

#formulario-contacto > form > input:focus {
	border-color: var(--naranja, #f58d2d);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(245,141,45,0.2);
}

#formulario-contacto > form > .verde {
	border-color: rgba(14,193,47,0.6);
}

#formulario-contacto > form > .rojo {
	border-color: rgba(255,48,48,0.6);
}

#formulario-contacto > form > #form-action {
	width: 100%;
	padding: 14px;
	background: var(--naranja, #f58d2d);
	color: var(--blanco);
	border: none;
	border-radius: 6px;
	font-weight: 700;
	font-size: 1.05em;
	cursor: pointer;
	transition: 0.25s ease;
	font-family: "OpenSans", sans-serif;
}

#formulario-contacto > form > #form-action:hover {
	background: #e07d1e;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(245,141,45,0.3);
}

/* ---- Tablet ---- */
@media screen and (min-width: 750px) and (max-width: 1099px) {
	#portada > h1 {
		font-size: 2.4em;
		width: 85%;
	}
	#portada > p {
		font-size: 1.1em;
		width: 75%;
	}
	.sections {
		padding: 48px 20px;
		gap: 24px;
	}
	.sections > div > h2 {
		font-size: 1.8em;
	}
	.sections > div > p,
	.sections > div > ul > li > p,
	.sections > div > ul > li > h3 {
		font-size: 1em;
	}
}

/* ---- Móvil ---- */
@media screen and (max-width: 750px) {
	#portada {
		height: 70vh;
	}
	#portada > h1 {
		font-size: 2em;
		width: 90%;
	}
	#portada > p {
		font-size: 1em;
		width: 90%;
	}
	.reverse,
	.sections {
		flex-direction: column;
		padding: 40px 16px;
		gap: 24px;
	}
	.sections > div,
	.sections > img {
		width: 100%;
	}
	.sections > img {
		border-radius: 8px;
	}
	.sections > div > h2 {
		font-size: 1.6em;
	}
	.sections > div > p,
	.sections > div > ul > li > p {
		font-size: 1em;
	}
	#formulario-contacto {
		padding: 48px 16px;
	}
	#formulario-contacto > h3 {
		font-size: 1.6em;
	}
}
