/* ==========================================================================
   Arribas · SEO on-page: FAQ, áreas de servicio, bloques de páginas padre
   Paleta del tema: #0a2c3d (primary) · #88a082 (secondary) · #f5f5f5 (grey)
   ========================================================================== */

:root {
	--aa-primary: #0a2c3d;
	--aa-primary-2: #0e394e;
	--aa-secondary: #88a082;
	--aa-secondary-dark: #6f8a69;
	--aa-grey: #f5f5f5;
	--aa-line: #e4e8e6;
	--aa-text: #4a5a62;
}

/* --------------------------------------------------------------------------
   Preguntas frecuentes (home y todas las páginas con acordeón)
   -------------------------------------------------------------------------- */

.faq-wrapper {
	counter-reset: aa-faq;
}

.faq-wrapper details {
	counter-increment: aa-faq;
	background: var(--aa-grey);
	border: 1px solid transparent;
	border-left: 4px solid transparent;
	margin: 0 0 12px !important;
	padding: 0 !important;
	transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.faq-wrapper details:hover {
	border-left-color: var(--aa-secondary);
}

.faq-wrapper details[open] {
	background: #fff;
	border-color: var(--aa-line);
	border-left-color: var(--aa-secondary);
	box-shadow: 0 14px 34px rgba(10, 44, 61, .08);
}

.faq-wrapper summary {
	display: flex !important;
	align-items: center;
	gap: 18px;
	padding: 20px 22px;
	cursor: pointer;
	list-style: none;
}

.faq-wrapper summary::-webkit-details-marker,
.faq-wrapper summary::marker {
	display: none !important;
	content: "";
}

.faq-wrapper summary::before {
	content: counter(aa-faq, decimal-leading-zero);
	flex: none;
	font-family: Rajdhani, sans-serif;
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1;
	color: var(--aa-secondary);
	min-width: 1.6em;
}

.faq-wrapper summary:focus-visible {
	outline: 2px solid var(--aa-secondary);
	outline-offset: 2px;
}

.faq-wrapper summary h3 {
	flex: 1;
	margin: 0 !important;
	display: block !important;
	font-family: Rajdhani, sans-serif;
	font-weight: 700 !important;
	font-size: 1.25rem !important;
	line-height: 1.25;
	letter-spacing: 0;
	color: var(--aa-primary) !important;
}

.aa-faq-toggle {
	position: relative;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(10, 44, 61, .12);
	transition: background-color .2s ease, transform .25s ease;
}

.aa-faq-toggle::before,
.aa-faq-toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	background: var(--aa-primary);
	transform: translate(-50%, -50%);
	transition: transform .25s ease, background-color .2s ease;
}

.aa-faq-toggle::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.faq-wrapper details[open] .aa-faq-toggle {
	background: var(--aa-secondary);
	transform: rotate(180deg);
}

.faq-wrapper details[open] .aa-faq-toggle::before,
.faq-wrapper details[open] .aa-faq-toggle::after {
	background: #fff;
}

.faq-wrapper details[open] .aa-faq-toggle::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

/* Respuesta: alineada con el texto de la pregunta, no con el número. */
.faq-wrapper details > div {
	margin: 0 !important;
	padding: 0 22px 22px calc(22px + 1.6em * 1.25 + 18px);
	color: var(--aa-text);
	font-family: Nunito, sans-serif;
	line-height: 1.7;
}

@media (max-width: 767px) {
	.faq-wrapper summary {
		gap: 12px;
		padding: 16px;
	}

	.faq-wrapper summary h3 {
		font-size: 1.1rem !important;
	}

	.faq-wrapper details > div {
		padding: 0 16px 18px;
	}
}

/* Bloque de FAQ de la home */
.aa-faq-section {
	background: #fff;
	padding: 3rem 0;
}

.aa-faq {
	display: grid;
	gap: 2.5rem;
}

.aa-faq-intro h2 {
	margin: .75rem 0 1.25rem;
}

.aa-faq-intro p {
	color: var(--aa-primary);
	font-family: Nunito, sans-serif;
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.aa-faq-cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .5rem;
	background: var(--aa-primary);
	color: #fff;
	padding: 1.75rem;
}

.aa-faq-cta > span {
	font-family: Nunito, sans-serif;
	font-size: .875rem;
	opacity: .8;
}

.aa-faq-phone {
	font-family: Rajdhani, sans-serif;
	font-weight: 700;
	font-size: 2rem;
	line-height: 1.1;
	color: #fff;
	margin-bottom: .75rem;
}

.aa-faq-phone:hover {
	color: var(--aa-secondary);
}

.aa-faq-cta .btn {
	padding: .9rem 1.75rem;
}

.aa-faq-cta .btn:hover {
	background: #fff;
	color: var(--aa-primary);
}

@media (min-width: 1024px) {
	.aa-faq-section {
		padding: 6rem 0;
	}

	.aa-faq {
		grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
		gap: 4rem;
		align-items: start;
	}

	.aa-faq-intro {
		position: sticky;
		top: 7rem;
	}
}

/* Las FAQ de las páginas interiores no tienen columna lateral. */
.section-faqs .faq-wrapper,
.faqs-home .faq-wrapper {
	gap: 0 !important;
}

/* --------------------------------------------------------------------------
   Áreas de servicio (home) y rejilla de las páginas padre
   -------------------------------------------------------------------------- */

.aa-areas {
	background: #fff;
	padding: 3.5rem 0 1rem;
}

.aa-areas-head {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	max-width: 760px;
	margin-bottom: 2.5rem;
}

.aa-areas-head h2 {
	margin: 0;
}

.aa-areas-head p {
	font-family: Nunito, sans-serif;
	line-height: 1.7;
}

.aa-areas-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.aa-area {
	display: flex;
	flex-direction: column;
	background: var(--aa-grey);
	padding: 1.75rem;
	border-top: 3px solid var(--aa-secondary);
	transition: box-shadow .2s ease, background-color .2s ease;
}

.aa-area:hover {
	background: #fff;
	box-shadow: 0 14px 34px rgba(10, 44, 61, .09);
}

.aa-area h3 {
	margin: 0 0 .5rem;
	font-family: Rajdhani, sans-serif;
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.15;
	color: var(--aa-primary);
}

.aa-area h3 a {
	color: inherit;
}

.aa-area h3 a:hover {
	color: var(--aa-secondary-dark);
}

.aa-area p {
	margin: 0 0 1rem;
	font-family: Nunito, sans-serif;
	font-size: .95rem;
	line-height: 1.6;
	color: var(--aa-text);
}

.aa-area ul {
	list-style: none;
	margin: auto 0 0;
	padding: 0;
}

.aa-area li {
	border-top: 1px solid var(--aa-line);
}

.aa-area li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding: .55rem 0;
	font-family: Nunito, sans-serif;
	font-weight: 600;
	font-size: .95rem;
	color: var(--aa-primary);
}

.aa-area li a::after {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-top: 2px solid var(--aa-secondary);
	border-right: 2px solid var(--aa-secondary);
	transform: rotate(45deg);
	transition: transform .2s ease;
}

.aa-area li a:hover {
	color: var(--aa-secondary-dark);
}

.aa-area li a:hover::after {
	transform: translateX(3px) rotate(45deg);
}

@media (min-width: 640px) {
	.aa-areas-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.aa-areas {
		padding: 5rem 0 2rem;
	}

	.aa-areas-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.aa-area-cta {
	background: var(--aa-primary);
	border-top-color: var(--aa-secondary);
	color: #fff;
}

.aa-area-cta:hover {
	background: var(--aa-primary-2);
}

.aa-area-cta h3,
.aa-area-cta p {
	color: #fff;
}

.aa-area-cta p {
	opacity: .85;
}

.aa-area-phone {
	margin-top: auto;
	font-family: Rajdhani, sans-serif;
	font-weight: 700;
	font-size: 1.9rem;
	line-height: 1.1;
	color: #fff;
}

.aa-area-phone:hover {
	color: var(--aa-secondary);
}

.aa-area-cta .btn {
	margin-top: 1rem;
	padding: .8rem 1.5rem;
}

.aa-area-cta .btn:hover {
	background: #fff;
	color: var(--aa-primary);
}

/* Bloque de introducción + servicios en páginas padre */
.aa-hub {
	background: #fff;
	padding: 3rem 0;
}

.aa-hub-text {
	max-width: 820px;
	margin-bottom: 2rem;
}

.aa-hub-text h2 {
	font-size: 1.875rem !important;
	letter-spacing: -.6px;
	margin: 0 0 1rem;
}

.aa-hub-text p {
	font-family: Nunito, sans-serif;
	line-height: 1.75;
	color: var(--aa-primary);
	margin: 0 0 1rem;
}

.aa-hub .aa-areas-grid {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.aa-hub .aa-area h3 {
	font-size: 1.3rem;
}

/* --------------------------------------------------------------------------
   Contacto: cabecera con H1 y datos
   -------------------------------------------------------------------------- */

.aa-contact-info {
	background: #fff;
	padding: 3rem 0 1rem;
}

.aa-contact-info h1 {
	font-family: Rajdhani, sans-serif;
	font-weight: 700;
	font-size: 2.5rem;
	line-height: 1.05;
	color: var(--aa-primary-2);
	margin: .75rem 0 1rem;
}

.aa-contact-info p {
	font-family: Nunito, sans-serif;
	line-height: 1.7;
	color: var(--aa-primary);
	max-width: 760px;
}

.aa-contact-info strong {
	font-style: normal;
	font-weight: 700;
}

@media (min-width: 1024px) {
	.aa-contact-info h1 {
		font-size: 3.4rem;
	}
}

/* --------------------------------------------------------------------------
   Home: separación hero / servicios en pantallas grandes
   Las tarjetas del hero bajan 96 px sobre un separador de 192 px y miden
   213 px: en 2xl invadían la sección de servicios.
   -------------------------------------------------------------------------- */

@media (min-width: 1280px) {
	.home section.services {
		padding-top: 2rem;
	}
}

@media (min-width: 1536px) {
	.home section.services {
		padding-top: 4.5rem;
	}

	.home section.services > .grid {
		min-height: 640px;
	}
}

/* --------------------------------------------------------------------------
   Home: últimas noticias en rejilla
   -------------------------------------------------------------------------- */

.aa-news {
	background: #fff;
	padding: 3.5rem 0;
}

.aa-news-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: 2.5rem;
}

.aa-news-head h2 {
	margin: 0;
}

.aa-news-all {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	color: var(--aa-primary);
}

.aa-news-all:hover {
	color: var(--aa-secondary-dark);
}

.aa-news-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.aa-news-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: 0 6px 24px rgba(10, 44, 61, .07);
	transition: box-shadow .2s ease, transform .2s ease;
}

.aa-news-card:hover {
	box-shadow: 0 16px 38px rgba(10, 44, 61, .13);
	transform: translateY(-3px);
}

.aa-news-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--aa-grey);
}

.aa-news-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.aa-news-card:hover .aa-news-thumb img {
	transform: scale(1.04);
}

.aa-news-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem 1.4rem 1.4rem;
}

.aa-news-body time {
	font-family: Rajdhani, sans-serif;
	font-weight: 600;
	font-size: .9rem;
	color: #909090;
	margin-bottom: .4rem;
}

.aa-news-body h3 {
	margin: 0 0 .6rem;
	font-family: Rajdhani, sans-serif;
	font-weight: 700;
	font-size: 1.3rem;
	line-height: 1.2;
	color: var(--aa-primary);
}

.aa-news-body h3 a {
	color: inherit;
}

.aa-news-body h3 a:hover {
	color: var(--aa-secondary-dark);
}

.aa-news-body p {
	margin: 0 0 1rem;
	font-family: Nunito, sans-serif;
	font-size: .92rem;
	line-height: 1.6;
	color: var(--aa-text);
}

.aa-news-more {
	margin-top: auto;
	align-self: flex-start;
	font-family: Nunito, sans-serif;
	font-weight: 700;
	font-size: .9rem;
	color: var(--aa-secondary-dark);
	border-bottom: 2px solid var(--aa-secondary);
	padding-bottom: 2px;
}

.aa-news-more:hover {
	color: var(--aa-primary);
}

@media (min-width: 640px) {
	.aa-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.aa-news {
		padding: 5rem 0;
	}

	.aa-news-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
