/* ==========================================================================
   Arribas · Página de equipo (template-parts/content/content-equipo.php)
   Misma estética que la home: Rajdhani + Nunito, azul #0a2c3d, salvia #88a082
   ========================================================================== */

.aae-page .work-with-us .container {
	padding: 0 24px;
}

@media (min-width: 1280px) {
	.aae-page .work-with-us .container {
		padding: 0 12px;
	}
}

.aae-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px;
	font-family: Nunito, sans-serif;
	font-size: .8rem;
	letter-spacing: .08em;
	color: var(--aa-secondary);
}

.aae-page h1,
.aae-page .aae-dep h2,
.aae-page .aae-join h2 {
	font-family: Rajdhani, sans-serif;
	font-weight: 700;
	letter-spacing: -1px;
	line-height: 1.02;
	color: var(--aa-primary-2);
	opacity: 1;
}

/* --------------------------------------------------------------------------
   Introducción
   -------------------------------------------------------------------------- */

.aae-intro {
	display: grid;
	gap: 40px;
	padding: 56px 0 72px;
}

@media (min-width: 1024px) {
	.aae-intro {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		align-items: end;
		gap: 72px;
		padding: 150px 0 80px;
	}
}

.aae-page .aae-intro h1 {
	font-size: 2.8rem;
	margin-bottom: 24px;
	text-align: left;
}

@media (min-width: 1024px) {
	.aae-page .aae-intro h1 {
		font-size: 4.2rem;
	}
}

.aae-intro-text p {
	max-width: 640px;
	font-family: Nunito, sans-serif;
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--aa-text);
}

.aae-intro-text p + p {
	margin-top: 12px;
}

.aae-intro-text strong {
	color: var(--aa-primary);
}

.aae-facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 2px;
}

.aae-facts li {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 22px 26px;
	background: #fff;
	border-left: 4px solid var(--aa-secondary);
}

.aae-facts strong {
	min-width: 110px;
	font-family: Rajdhani, sans-serif;
	font-weight: 700;
	font-size: 2.6rem;
	line-height: 1;
	color: var(--aa-primary);
}

.aae-facts span {
	font-family: Nunito, sans-serif;
	color: var(--aa-text);
}

/* --------------------------------------------------------------------------
   Departamentos
   -------------------------------------------------------------------------- */

.aae-dep {
	padding: 56px 0 24px;
	border-top: 1px solid var(--aa-line);
}

.aae-dep-head {
	margin-bottom: 32px;
	text-align: center;
}

.aae-page .aae-dep h2 {
	font-size: 2.2rem;
	margin: 0;
}

@media (min-width: 1024px) {
	.aae-page .aae-dep h2 {
		font-size: 2.8rem;
	}
}

/* Rejilla centrada: si un departamento tiene pocas personas, quedan en el centro. */
.aae-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
}

.aae-card {
	position: relative;
	width: 100%;
	max-width: 300px;
}

@media (min-width: 640px) {
	.aae-card {
		width: calc((100% - 28px) / 2);
	}
}

@media (min-width: 1024px) {
	.aae-card {
		width: calc((100% - 3 * 28px) / 4);
	}
}

.aae-photo {
	overflow: hidden;
	aspect-ratio: 630 / 678;
	background: #e9ecea;
}

.aae-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.aae-card:hover .aae-photo img {
	transform: scale(1.04);
}

/* Placa con el nombre, como en el slider de la home. */
.aae-plate {
	position: relative;
	margin: -44px 22px 0 0;
	padding: 16px 20px;
	background: var(--aa-secondary);
	transition: background-color .25s ease;
}

.aae-card:hover .aae-plate {
	background: var(--aa-primary);
}

.aae-page .aae-plate h3 {
	margin: 0 0 2px;
	font-family: Rajdhani, sans-serif;
	font-weight: 700;
	font-size: 1.3rem;
	line-height: 1.15;
	color: #fff;
}

.aae-plate span {
	display: block;
	font-family: Nunito, sans-serif;
	font-size: .85rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, .9);
}

/* --------------------------------------------------------------------------
   Trabaja con nosotros
   -------------------------------------------------------------------------- */

.aae-join {
	display: grid;
	gap: 32px;
	margin-top: 72px;
	padding: 56px 0 96px;
	border-top: 1px solid var(--aa-line);
}

@media (min-width: 1024px) {
	.aae-join {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		gap: 72px;
		align-items: start;
	}
}

.aae-page .aae-join h2 {
	font-size: 2.4rem;
	margin: 0 0 16px;
	text-align: left;
}

.aae-join-text p {
	font-family: Nunito, sans-serif;
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--aa-text);
}

.aae-join-form {
	padding: 32px;
	background: #fff;
	border-top: 4px solid var(--aa-secondary);
}

@media (max-width: 639px) {
	.aae-grid {
		gap: 14px;
	}

	.aae-card {
		width: calc((100% - 14px) / 2);
	}

	.aae-plate {
		margin: -30px 10px 0 0;
		padding: 10px 12px;
	}

	.aae-page .aae-plate h3 {
		font-size: 1rem;
	}

	.aae-plate span {
		font-size: .72rem;
	}
}

.aae-initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-color: var(--aa-primary);
	background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.2px);
	background-size: 18px 18px;
	color: var(--aa-secondary);
	font-family: Rajdhani, sans-serif;
	font-size: 5rem;
	font-weight: 700;
	letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   Formulario «Trabaja con nosotros»
   -------------------------------------------------------------------------- */

.aae-join-form .grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.aae-join-form .flex.flex-col.gap-2 {
	gap: 14px;
}

.aae-join-form .wpcf7-form-control-wrap {
	display: block;
}

.aae-join-form input[type="text"],
.aae-join-form input[type="email"],
.aae-join-form input[type="tel"],
.aae-join-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid var(--aa-line);
	border-radius: 0;
	background: var(--aa-grey) none;
	color: var(--aa-primary);
	font-family: Nunito, sans-serif;
	font-size: 1rem;
	box-shadow: none;
	transition: border-color .2s, background .2s;
}

.aae-join-form textarea {
	height: 150px;
	resize: vertical;
}

.aae-join-form input:focus,
.aae-join-form textarea:focus {
	border-color: var(--aa-primary);
	background-color: #fff;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(136, 160, 130, .3);
}

.aae-join-form ::placeholder {
	color: var(--aa-text);
	opacity: 1;
}

/* Currículum: caja de subida en lugar del botón verde */
.aae-join-form .btn.flex.flex-col {
	width: 100%;
	box-sizing: border-box;
	gap: 8px;
	padding: 16px;
	border: 2px dashed #c4cfc1;
	background: #fafbfa;
	color: var(--aa-primary);
	font-family: Nunito, sans-serif;
	font-size: .95rem;
	cursor: default;
}

.aae-join-form .btn.flex.flex-col:hover {
	background: #f3f6f2;
	color: var(--aa-primary);
}

.aae-join-form .btn label {
	font-weight: 800;
}

.aae-join-form input[type="file"] {
	width: 100%;
	color: var(--aa-text);
	font-family: Nunito, sans-serif;
	font-size: .9rem;
}

.aae-join-form input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 9px 16px;
	border: 0;
	background: var(--aa-primary);
	color: #fff;
	font-family: Rajdhani, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}

.aae-join-form input[type="file"]::file-selector-button:hover {
	background: var(--aa-sage-dark, #6f8a69);
}

.aae-join-form .mt-8 {
	margin-top: 18px;
}

.aae-join-form .mt-8:not(.flex) {
	color: var(--aa-text);
	font-size: .8rem;
	line-height: 1.5;
}

.aae-join-form .mt-8:not(.flex) a {
	color: var(--aa-text);
}

.aae-join-form .flex.justify-between {
	align-items: center;
	gap: 16px;
}

.aae-join-form .wpcf7-list-item {
	margin: 0;
}

.aae-join-form .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--aa-primary);
	font-family: Nunito, sans-serif;
	font-size: .92rem;
	cursor: pointer;
}

.aae-join-form .wpcf7-list-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--aa-primary);
}

.aae-join-form .submit-wrapper {
	flex: none;
}

.aae-join-form input[type="submit"] {
	min-width: 180px;
	padding: 14px 28px;
	border: 0;
	background: var(--aa-sage-dark, #6f8a69);
	color: #fff;
	font-family: Rajdhani, sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s;
}

.aae-join-form input[type="submit"]:hover {
	background: var(--aa-primary);
}

.aae-join-form input[type="submit"]:disabled {
	background: #b9c6b6;
	cursor: not-allowed;
}

@media (max-width: 640px) {
	.aae-join-form {
		padding: 22px 18px;
	}

	.aae-join-form .flex.justify-between {
		flex-direction: column;
		align-items: stretch;
	}
}

/* --------------------------------------------------------------------------
   Cabecera: banda azul a todo el ancho con el equipo apoyado abajo
   -------------------------------------------------------------------------- */

.aae-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: 56px 24px 0;
	overflow: hidden;
	background-color: var(--aa-primary);
	background-image:
		radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px),
		linear-gradient(180deg, var(--aa-primary-2) 0%, var(--aa-primary) 100%);
	background-size: 22px 22px, 100% 100%;
	text-align: center;
}

@media (min-width: 1024px) {
	.aae-hero {
		padding-top: 80px;
	}
}

.aae-hero-text {
	max-width: 900px;
	margin: 0 auto;
}

.aae-hero .aae-eyebrow {
	color: #c9d8c5;
}

.aae-page .aae-hero h1 {
	margin: 0 0 18px;
	color: #fff;
	font-size: 2.6rem;
	text-align: center;
}

@media (min-width: 1024px) {
	.aae-page .aae-hero h1 {
		font-size: 4.2rem;
	}
}

.aae-hero-lead {
	max-width: 680px;
	margin: 0 auto;
	color: rgba(255, 255, 255, .82);
	font-family: Nunito, sans-serif;
	font-size: 1.1rem;
	line-height: 1.65;
}

.aae-hero .aae-facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	margin: 34px auto 0;
	padding: 0;
	list-style: none;
}

.aae-hero .aae-facts li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-width: 180px;
	padding: 6px 28px;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, .18);
	background: none;
}

.aae-hero .aae-facts li:first-child {
	border-left: 0;
}

.aae-hero .aae-facts strong {
	min-width: 0;
	color: #fff;
	font-size: 2.4rem;
}

.aae-hero .aae-facts span {
	color: rgba(255, 255, 255, .7);
	font-size: .9rem;
}

.aae-hero-team {
	max-width: 1500px;
	margin: 40px auto 0;
	line-height: 0;
}

.aae-hero-team img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 640px) {
	.aae-hero .aae-facts li {
		min-width: 0;
		padding: 6px 14px;
	}

	.aae-hero .aae-facts strong {
		font-size: 1.7rem;
	}

	.aae-hero .aae-facts span {
		font-size: .75rem;
	}
}

/* Historia, centrada bajo la cabecera */
.aae-story {
	max-width: 820px;
	margin: 0 auto;
	padding: 64px 0 24px;
	text-align: center;
}

.aae-story p {
	margin: 0 0 14px;
	color: var(--aa-text);
	font-family: Nunito, sans-serif;
	font-size: 1.08rem;
	line-height: 1.8;
}

.aae-story strong {
	color: var(--aa-primary);
}

.aae-page .work-with-us {
	overflow-x: clip;
}

@media (max-width: 640px) {
	.aae-hero .aae-facts {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}

	.aae-hero .aae-facts li {
		padding: 6px 4px;
	}

	.aae-hero .aae-facts li:first-child {
		border-left: 0;
	}
}

/* El hueco del menú fijo va dentro de la banda azul, no en el contenedor gris. */
.aae-page #content > :first-child {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.aae-hero {
	padding-top: calc(var(--aa-head, 99px) + 56px);
}

@media (min-width: 1024px) {
	.aae-hero {
		padding-top: calc(var(--aa-head, 111px) + 80px);
	}
}
