/* =========================================================================
   AME Gabinete — estilos del tema
   ========================================================================= */

:root {
	--ame-tinta: #1B2A3A;
	--ame-gris: #3A4656;
	--ame-gris-2: #4A5566;
	--ame-crema: #FFFAF2;
	--ame-magenta: #D0287F;
	--ame-magenta-2: #B01F6B;
	--ame-display: 'The Rolling Stones', 'Lilita One', sans-serif;
	--ame-r1: 40px 56px 44px 60px;
	--ame-r2: 56px 40px 60px 44px;
	--ame-r3: 44px 60px 40px 56px;
	--ame-r4: 60px 44px 56px 40px;
	--ame-img: url(../img/);
}

/* ---------- Base y textura ---------- */
body {
	background-image: url(../img/textura.jpg);
	background-size: 900px 900px;
	background-repeat: repeat;
	background-blend-mode: multiply;
	-webkit-font-smoothing: antialiased;
}
.wp-block-group.has-background {
	background-image: url(../img/textura.jpg);
	background-size: 900px 900px;
	background-repeat: repeat;
	background-blend-mode: multiply;
}
.wp-site-blocks { overflow-x: clip; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks > header, .wp-site-blocks > footer, .ame-main { margin: 0; }
.wp-block-post-content > .alignfull,
.ame-main .wp-block-post-content.wp-block-post-content > .alignfull { margin-block: 0; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ame-magenta); outline-offset: 3px; border-radius: 4px; }

/* Utilidades de texto */
.ame-gris { color: var(--ame-gris); }
.ame-s { font-size: 15px; }
.ame-l { font-size: 18px; }
.ame-lead { font-size: 19px; color: var(--ame-gris); max-width: 580px; }
.ame-claro { color: #E3F4FF; }
.ame-ruta { font-size: 14px; color: var(--ame-gris-2); }
.ame-kicker {
	font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--ame-magenta-2); margin: 0;
}
.ame-kicker--rosa { color: #FFD6EA; }
.ame-kicker--granate { color: #8C1A55; }
.ame-kicker--azul { color: #005C8C; }
.ame-etiqueta {
	align-self: flex-start; display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .06em;
	text-transform: uppercase; background: #FDE0AF; padding: 8px 16px; border-radius: 999px;
}
.ame-h-grande { font-size: clamp(38px, 4.4vw, 60px) !important; line-height: 1 !important; }
.ame-h-m { font-size: clamp(30px, 3.4vw, 44px) !important; max-width: 720px; }
.ame-h1-ancho { max-width: 860px; }
.ame-h1-m { font-size: clamp(40px, 5vw, 68px) !important; line-height: 1.02 !important; max-width: 900px; }
.ame-h3-m { font-size: 26px !important; }
.ame-h3-l { font-size: clamp(24px, 2.4vw, 30px) !important; line-height: 1.1 !important; }
.ame-cargo { font-size: 18px; }

/* ---------- Pilas (columnas de contenido sin márgenes WP) ---------- */
.ame-pila.ame-pila, .ame-pila-s.ame-pila-s, .ame-cab.ame-cab { display: flex; flex-direction: column; gap: 22px; }
.ame-pila-s.ame-pila-s { gap: 12px; }
.ame-cab.ame-cab { gap: 16px; max-width: 720px; }
.ame-pila.ame-pila > *, .ame-pila-s.ame-pila-s > *, .ame-cab.ame-cab > *,
.ame-grid.ame-grid > *, .ame-tarjeta.ame-tarjeta > *, .ame-card-link.ame-card-link > *,
.ame-panel.ame-panel > *, .ame-ayuda.ame-ayuda > *, .ame-centro__info.ame-centro__info > *,
.ame-card-orienta.ame-card-orienta > * { margin: 0; }
.ame-pila h1, .ame-pila h2, .ame-cab h2 { margin: 0; }

/* ---------- Secciones ---------- */
.ame-section.ame-section {
	position: relative;
	padding-block: clamp(64px, 8vw, 104px);
	display: flex; flex-direction: column; gap: 40px;
}
.ame-section.ame-section > * { margin-block: 0; }
.ame-section > * { position: relative; z-index: 1; width: 100%; box-sizing: border-box; }
.ame-section::before, .ame-section::after,
.ame-collage::after, .ame-retrato::before, .ame-retrato::after, .ame-esp-foto::after,
.ame-cta__caja::after {
	content: ""; position: absolute; pointer-events: none; z-index: 0;
	background-repeat: no-repeat; background-size: contain;
}
.ame-cab-2.ame-cab-2 { gap: 32px; align-items: flex-end; margin: 0; }
.ame-cab-2 .wp-block-column { display: flex; flex-direction: column; gap: 16px; }
.ame-cab-2 .wp-block-column > * { margin: 0; }
.ame-cab-2 h2 { margin: 0; }

/* ---------- Botones ---------- */
.wp-block-buttons { gap: 12px; }
.wp-block-button__link { line-height: 1.3; transition: background-color .2s, color .2s, transform .2s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: #FFFFFF; color: var(--ame-tinta); border: 2px solid var(--ame-tinta); padding: 12px 24px;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ame-tinta); color: #FFFFFF; }
.wp-block-button.is-style-blanco .wp-block-button__link { background: #FFFFFF; color: var(--ame-tinta); }
.wp-block-button.is-style-blanco .wp-block-button__link:hover { background: var(--ame-crema); }
.wp-block-button.is-style-outline-blanco .wp-block-button__link { background: transparent; color: #FFFFFF; border: 2px solid #FFFFFF; padding: 12px 24px; }
.wp-block-button.is-style-outline-blanco .wp-block-button__link:hover { background: #FFFFFF; color: var(--ame-magenta); }
.ame-btn-s .wp-block-button__link { font-size: 15px; padding: 12px 20px; }
.ame-btn-rosa .wp-block-button__link { background: #FFD6EA; color: var(--ame-tinta); }
.ame-btn-rosa .wp-block-button__link:hover { background: #FFFFFF; color: var(--ame-tinta); }

/* ---------- Cabecera ---------- */
.ame-header.ame-header { padding-block: 16px; position: relative; z-index: 20; }
.ame-header__inner.ame-header__inner { gap: 16px; }
.ame-marca.ame-marca { gap: 12px; }
.ame-marca__logo { margin: 0; flex: none; }
.ame-marca__logo img { width: 88px !important; height: 88px !important; display: block; }
.ame-marca__texto.ame-marca__texto { gap: 2px; line-height: 1.15; }
.ame-marca__texto > * { margin: 0 !important; }
.ame-marca__nombre { font-family: var(--ame-display); font-size: 24px; }
.ame-marca__nombre a { color: var(--ame-tinta); text-decoration: none; }
.ame-marca__sub { font-size: 14px; color: var(--ame-gris-2); }
.ame-header__nav.ame-header__nav { gap: 24px; }
.ame-nav .wp-block-navigation-item__content { color: var(--ame-tinta); text-decoration: none; }
.ame-nav .wp-block-navigation-item__content:hover { color: var(--ame-magenta); }
.ame-nav.ame-nav { gap: 8px 24px; }
.ame-header__cta .wp-block-button__link { padding: 12px 22px; font-size: 15px; }
.ame-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 32px 24px; }
.ame-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 22px; font-family: var(--ame-display); font-weight: 400; }
@media (max-width: 1100px) { .ame-header__nav.ame-header__nav { gap: 16px; } .ame-nav.ame-nav { gap: 6px 16px; } }
@media (max-width: 960px) {
	.ame-marca__logo img { width: 64px !important; height: 64px !important; }
	.ame-marca__nombre { font-size: 21px; }
}
@media (max-width: 600px) {
	.ame-marca__logo img { width: 52px !important; height: 52px !important; }
	.ame-marca__sub { font-size: 12px; }
	.ame-header__cta .wp-block-button__link { padding: 10px 16px; font-size: 14px; }
	.ame-header__nav.ame-header__nav { gap: 10px; }
}
@media (max-width: 380px) { .ame-marca__texto { display: none !important; } }

/* ---------- Hero ---------- */
.ame-hero.ame-hero { padding-top: 56px; padding-bottom: 80px; }
.ame-hero__cols.ame-hero__cols { gap: 48px; align-items: center; margin: 0; }
.ame-hero h1 { letter-spacing: -.01em; margin: 0; }
.ame-hero::before { background-image: url(../img/blob-amarillo.svg); width: 260px; height: 260px; top: -40px; right: -60px; }
.ame-collage { position: relative; min-height: 500px; margin: 0 !important; }
.ame-collage figure { position: absolute; margin: 0 !important; overflow: hidden; }
.ame-collage figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ame-collage__a { left: 0; top: 30px; width: 68%; height: 380px; border-radius: 44% 56% 48% 52% / 40% 46% 54% 60%; background: #B5E6FF; }
.ame-collage__a img { object-position: 45% 35%; }
.ame-collage__b { right: 0; top: 0; width: 42%; height: 210px; border-radius: 58% 42% 50% 50% / 52% 58% 42% 48%; background: #FDE0AF; }
.ame-collage__b img { object-position: 55% 30%; }
.ame-collage::after { background-image: url(../img/blob-puntos.svg); width: 190px; height: 190px; right: 4%; bottom: 24px; z-index: 2; }
@media (max-width: 781px) {
	.ame-collage { min-height: 380px; }
	.ame-collage__a { height: 300px; width: 74%; }
	.ame-collage__b { height: 170px; width: 46%; }
	.ame-collage::after { width: 130px; height: 130px; bottom: 0; }
	.ame-hero::before { width: 180px; height: 180px; }
}

/* ---------- Arantxa ---------- */
.ame-arantxa.ame-arantxa { padding-top: 24px; }
.ame-arantxa__cols.ame-arantxa__cols { gap: 56px; align-items: center; margin: 0; }
.ame-retrato { position: relative; min-height: 520px; margin: 0 !important; }
.ame-retrato::before { background-image: url(../img/blob-celeste.svg); width: 180px; height: 180px; left: -30px; top: 10px; }
.ame-retrato::after { background-image: url(../img/blob-rejilla.svg); width: 170px; height: 170px; right: -10px; bottom: 0; z-index: 2; }
.ame-retrato__foto { position: absolute; inset: 30px 20px 20px 30px; margin: 0 !important; overflow: hidden; border-radius: 52% 48% 46% 54% / 44% 50% 50% 56%; background: #FFA0D0; z-index: 1; }
.ame-retrato__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 30%; display: block; }
@media (max-width: 781px) { .ame-retrato { min-height: 400px; } }
.wp-block-quote.ame-cita {
	margin: 8px 0 0; padding: 26px 30px; border: 0; border-radius: var(--ame-r1); background: #FDE0AF;
	font-family: var(--ame-display); font-size: 24px; line-height: 1.2;
}
.wp-block-quote.ame-cita p { margin: 0; }

/* ---------- Enfoque ---------- */
.ame-enfoque::before { background-image: url(../img/onda-amarilla.svg); width: 260px; height: 140px; left: -30px; top: -40px; }
.ame-col-abajo { align-self: flex-end; }
.ame-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.ame-chips span { padding: 10px 20px; font-weight: 700; font-size: 15px; background: #FFD6EA; border-radius: 48% 52% 46% 54% / 60% 50% 50% 40%; }
.ame-chips span:nth-child(3n+2) { background: #B5E6FF; border-radius: 52% 48% 54% 46% / 40% 60% 50% 50%; }
.ame-chips span:nth-child(3n) { background: #FDE0AF; border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; }
.ame-chips--blancos span, .ame-chips--blancos span:nth-child(n) { background: #FFFFFF; border-radius: 999px; padding: 10px 16px; }

.ame-tarjeta.ame-tarjeta { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.ame-enfoque .ame-tarjeta.ame-tarjeta { padding: 36px; gap: 12px; }
.ame-tarjeta.ame-forma-1 { border-radius: var(--ame-r1); }
.ame-tarjeta.ame-forma-2 { border-radius: var(--ame-r2); }
.ame-tarjeta.ame-forma-3 { border-radius: var(--ame-r3); }
.ame-tarjeta.ame-forma-4 { border-radius: var(--ame-r4); }
.ame-num { font-family: var(--ame-display); font-size: 48px; line-height: 1; }
.ame-num--magenta { color: #D0287F; }
.ame-num--azul-oscuro { color: #005C8C; }
.ame-num--ocre { color: #8A5A10; }

/* ---------- Rejillas ---------- */
.ame-grid.ame-grid { display: grid; gap: 24px; }
.ame-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.ame-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.ame-grid--4.ame-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px; }
.ame-grid--auto.ame-grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.ame-grid--recursos { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }

/* ---------- Especialidades ---------- */
.ame-especialidades::before { background-image: url(../img/blob-rejilla.svg); width: 200px; height: 200px; right: -50px; top: 60px; }
.ame-card-link.ame-card-link { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 28px; transition: transform .2s ease, box-shadow .2s ease; }
.ame-card-link:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(27, 42, 58, .08); }
.ame-card-link h3 { font-size: 24px; }
.ame-mas { margin-top: auto !important; font-weight: 700; font-size: 15px; }
.ame-mas a { color: var(--ame-magenta-2); text-decoration: none; }
.ame-card-link .ame-mas a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ame-card-orienta.ame-card-orienta { display: flex; flex-direction: column; gap: 14px; padding: 32px; }
.ame-card-orienta .wp-block-buttons { margin-top: auto; }

.ame-icono.ame-icono { width: 60px; height: 56px; margin: 0; display: flex; align-items: center; justify-content: center; flex: none; }
.ame-icono img { width: 26px; height: 26px; display: block; }
.ame-recurso .ame-icono img { width: 28px; height: 28px; }
.ame-forma-1.ame-icono, .ame-paso.ame-forma-1 { border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%; }
.ame-forma-2.ame-icono, .ame-paso.ame-forma-2 { border-radius: 58% 42% 50% 50% / 52% 58% 42% 48%; }
.ame-forma-3.ame-icono, .ame-paso.ame-forma-3 { border-radius: 50% 50% 46% 54% / 45% 55% 45% 55%; }
.ame-forma-4.ame-icono, .ame-paso.ame-forma-4 { border-radius: 54% 46% 52% 48% / 58% 42% 58% 42%; }
.ame-forma-5.ame-icono { border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; }
.ame-forma-6.ame-icono { border-radius: 52% 48% 54% 46% / 40% 60% 50% 50%; }
.ame-fondo-rosa { background: #FFA0D0; }
.ame-fondo-celeste { background: #66CCFF; }
.ame-fondo-amarillo-claro { background: #FDE0AF; }
.ame-fondo-amarillo { background: #FBB943; }
.ame-fondo-magenta { background: #D0287F; }
.ame-fondo-azul { background: #007EBA; color: #FFFFFF; }
.ame-fondo-azul-medio { background: #3DA5DA; }
.ame-fondo-ocre { background: #D19B3B; }
.ame-fondo-arena { background: #E0BE7E; }
.ame-fondo-rosa-intenso { background: #E957A3; color: #FFFFFF; }

/* ---------- Para quién ---------- */
.ame-mini { margin: 0 !important; }
.ame-mini img { width: 64px; height: 64px; display: block; }

/* ---------- Formación ---------- */
.ame-formacion::before { background-image: url(../img/trazo-rosa.svg); width: 90px; height: 200px; left: -20px; bottom: 40px; }
.ame-formacion__cols.ame-formacion__cols { gap: 24px; margin: 0; }
.ame-formacion__cols .wp-block-column { display: flex; }
.ame-panel.ame-panel { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 40px; border-radius: 36px; }
.ame-tabla.ame-tabla { list-style: none; padding: 0; margin: 0; }
.ame-tabla li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-bottom: 2px dotted #FFA0D0; margin: 0; }
.ame-tabla li:last-child { border-bottom: 0; }
.ame-tabla li span { font-size: 14px; color: var(--ame-gris-2); }
@media (max-width: 600px) { .ame-panel.ame-panel { padding: 28px 22px; } }

/* ---------- Ayudas / dependencia ---------- */
.ame-dependencia::before { background-image: url(../img/blob-celeste-b.svg); width: 220px; height: 220px; right: -40px; top: -50px; }
.ame-dependencia::after { background-image: url(../img/blob-amarillo-b.svg); width: 160px; height: 160px; left: 40%; bottom: -60px; }
.ame-dependencia__cols.ame-dependencia__cols { gap: 56px; margin: 0; }
.ame-dependencia h2 { color: #FFFFFF; }
.ame-ayuda.ame-ayuda { padding: 26px; border-radius: 28px; display: flex; flex-direction: column; gap: 6px; }
.ame-ayuda h3 { font-size: 22px; color: var(--ame-tinta); }
.ame-ayuda a { color: #005C8C; font-weight: 700; }
.ame-dependencia .ame-pila-s.ame-pila-s { gap: 16px; }

/* ---------- Centros ---------- */
.ame-centro.ame-centro { border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; padding: 0; }
.ame-centro.ame-centro > * { margin: 0; }
.ame-mapa.ame-mapa { height: 220px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; text-align: center; padding: 16px; }
.ame-mapa a { color: inherit; text-decoration: none; }
.ame-mapa a:hover { text-decoration: underline; }
.ame-mapa--rosa { background: #FFD6EA; color: #8C1A55; }
.ame-mapa--azul { background: #B5E6FF; color: #005C8C; }
.ame-centro__info.ame-centro__info { padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.ame-sello { align-self: flex-start; font-family: var(--ame-display); font-size: 18px; color: #FFFFFF; padding: 4px 14px; }
.ame-sello--rosa { background: #E957A3; border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%; }
.ame-sello--azul { background: #007EBA; border-radius: 58% 42% 50% 50% / 52% 58% 42% 48%; }
.ame-centro .ame-mas a { color: #005C8C; }

/* ---------- Contacto ---------- */
.ame-contacto::after { background-image: url(../img/onda-azul.svg); width: 260px; height: 140px; right: -20px; bottom: -20px; }
.ame-contacto__cols.ame-contacto__cols { gap: 56px; margin: 0; }
.ame-contacto__cols > .ame-contacto__txt { flex-basis: 36% !important; }
.ame-contacto__datos { display: flex; flex-direction: column; gap: 12px; font-weight: 700; }
.ame-contacto__datos a { text-decoration: none; }

.ame-form {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px;
	padding: 40px; border-radius: 36px; background: #FFFFFF;
}
.ame-form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 700; }
.ame-form input[type=text], .ame-form input[type=tel], .ame-form input[type=email], .ame-form select, .ame-form textarea {
	font: inherit; font-weight: 400; font-size: 16px; padding: 14px 16px; border-radius: 14px; border: 2px solid #FFD6EA;
	background: #FFFFFF; color: var(--ame-tinta); width: 100%; box-sizing: border-box;
}
.ame-form input:focus, .ame-form select:focus, .ame-form textarea:focus { border-color: var(--ame-magenta); outline: none; }
.ame-form textarea { resize: vertical; }
.ame-form__full { grid-column: 1 / -1; }
.ame-form .ame-form__check { flex-direction: row; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--ame-gris); }
.ame-form__check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ame-magenta); }
.ame-form__legal { margin: 0; font-size: 12.5px; color: var(--ame-gris-2); line-height: 1.5; }
.ame-form__trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ame-form__enviar { grid-column: 1 / -1; justify-self: start; font: inherit; font-weight: 700; color: #FFFFFF; background: var(--ame-magenta); border: 0; padding: 16px 32px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.ame-form__enviar:hover { background: var(--ame-magenta-2); }
.ame-form__aviso { grid-column: 1 / -1; margin: 0; padding: 14px 18px; border-radius: 16px; font-weight: 700; }
.ame-form__aviso--ok { background: #E3F7EA; color: #145A32; }
.ame-form__aviso--error { background: #FFE3E3; color: #8A1C1C; }
@media (max-width: 600px) { .ame-form { padding: 26px 20px; } }

/* ---------- Pie ---------- */
.ame-footer.ame-footer { padding-block: 40px; font-size: 14px; color: #D7DEE6; }
.ame-footer__inner.ame-footer__inner { gap: 16px 32px; align-items: center; }
.ame-footer__inner > * { margin: 0 !important; }
.ame-footer__marca.ame-footer__marca { gap: 12px; align-items: center; }
.ame-footer__logo { margin: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--ame-crema); display: flex; align-items: center; justify-content: center; }
.ame-footer__logo img { width: 48px !important; height: 48px !important; }
.ame-footer__nombre { font-family: var(--ame-display); font-size: 22px; color: #FFFFFF; margin: 0; }
.ame-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.ame-footer a { color: #D7DEE6; }
.ame-footer a:hover { color: #FFFFFF; }

/* ---------- Especialidad ---------- */
.ame-hero--esp.ame-hero--esp { padding-top: 40px; padding-bottom: 88px; }
.ame-hero--esp::before { background-image: url(../img/blob-crema.svg); width: 300px; height: 300px; right: -40px; top: 20px; }
.ame-esp-foto { position: relative; min-height: 420px; margin: 0 !important; }
.ame-esp-foto__img { position: absolute; inset: 20px 40px 30px 0; margin: 0 !important; overflow: hidden; background: #FFA0D0; border-radius: 44% 56% 48% 52% / 40% 46% 54% 60%; }
.ame-esp-foto__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ame-esp-foto::after { background-image: url(../img/blob-azul.svg); width: 150px; height: 150px; right: 0; bottom: 0; z-index: 2; }
@media (max-width: 781px) { .ame-esp-foto { min-height: 320px; } }
.ame-paso { width: 64px; height: 60px; display: flex; align-items: center; justify-content: center; font-family: var(--ame-display); font-size: 26px; color: var(--ame-tinta); }
.ame-paso.ame-fondo-rosa-intenso, .ame-paso.ame-fondo-azul { color: #FFFFFF; }
.ame-relacion::before { background-image: url(../img/onda-azul.svg); width: 260px; height: 140px; left: -30px; bottom: -30px; }
.ame-relacion.ame-relacion { gap: 32px; }
.ame-pildoras { display: flex; flex-wrap: wrap; gap: 12px; }
.ame-pildoras a { text-decoration: none; color: var(--ame-tinta); background: #FFFFFF; padding: 14px 22px; border-radius: 999px; transition: background-color .2s; }
.ame-pildoras a:hover { background: var(--ame-crema); }

/* ---------- Caja CTA ---------- */
.ame-cta.ame-cta { padding-top: 0; }
.ame-cta__caja.ame-cta__caja { position: relative; overflow: hidden; border-radius: 48px; padding: 64px 48px; gap: 32px; }
.ame-cta__caja > * { position: relative; z-index: 1; margin: 0; }
.ame-cta__caja h2 { color: #FFFFFF; margin: 0; }
.ame-cta__caja .ame-pila-s { flex: 1 1 420px; }
.ame-cta__caja::after { background-image: url(../img/blob-puntos.svg); width: 200px; height: 200px; right: -50px; bottom: -70px; opacity: .9; }
@media (max-width: 600px) { .ame-cta__caja.ame-cta__caja { padding: 44px 26px; border-radius: 36px; } }

/* ---------- Recursos ---------- */
.ame-hero--recursos.ame-hero--recursos, .ame-hero--dep.ame-hero--dep { gap: 22px; padding-top: 48px; padding-bottom: 64px; }
.ame-hero--recursos.ame-hero--recursos > *, .ame-hero--dep.ame-hero--dep > * { margin: 0; }
.ame-hero--recursos::before { background-image: url(../img/blob-celeste-claro.svg); width: 340px; height: 340px; right: -60px; top: -10px; }
.ame-hero--recursos::after { background-image: url(../img/blob-solo-puntos.svg); width: 120px; height: 120px; right: 220px; top: 250px; }
.ame-hero--dep::before { background-image: url(../img/blob-celeste-claro.svg); width: 300px; height: 300px; right: -50px; top: 0; }
.ame-hero--dep .ame-lead { max-width: 720px; }
.ame-aviso {
	display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ame-gris); max-width: 680px;
	background: #FFFFFF; padding: 14px 18px; border-radius: 20px 28px 22px 26px;
}
.ame-aviso::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; background: url(../img/icons/info.svg) no-repeat center / contain; }
.ame-recursos__cab.ame-recursos__cab { gap: 20px; margin: 0; }
.ame-recursos__cab > * { margin: 0; }
.ame-recurso.ame-recurso { min-height: 340px; gap: 14px; padding: 32px; }
.ame-recurso__top.ame-recurso__top { gap: 12px; align-items: center; }
.ame-recurso__top > * { margin: 0; }
.ame-area { font-size: 13px; background: #FFFFFF; padding: 6px 14px; border-radius: 999px; margin: 0; }
.ame-para { font-size: 14px; color: var(--ame-gris-2); }
.ame-recurso .ame-mas a { color: #005C8C; }
.ame-pronto { color: var(--ame-gris-2); font-style: italic; font-weight: 700; }
.ame-recurso[hidden] { display: none !important; }

.ame-chip, .ame-opt, .ame-reset {
	font: inherit; font-size: 15px; cursor: pointer; min-height: 44px; padding: 10px 20px; border-radius: 999px;
	border: 2px solid var(--ame-tinta); background: #FFFFFF; color: var(--ame-tinta); transition: background-color .15s, color .15s;
}
.ame-chip:hover, .ame-opt:hover { background: var(--ame-crema); }
.ame-chip[aria-pressed="true"] { background: var(--ame-tinta); color: #FFFFFF; }
.ame-filtro { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Herramienta dependencia ---------- */
.ame-dep { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.ame-dep__preguntas { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ame-dep__cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.ame-dep__titulo, .ame-dep__rtitulo { margin: 0; font-family: var(--ame-display); font-weight: 400; line-height: 1.05; }
.ame-dep__titulo { font-size: clamp(28px, 3vw, 40px); }
.ame-dep__rtitulo { font-size: 28px; }
.ame-dep__progreso { font-size: 15px; color: var(--ame-gris-2); }
.ame-dep__lista { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.ame-dep__item { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 32px 40px 34px 44px; background: var(--ame-crema); border: 1px solid #E8DCC6; }
.ame-dep__etiqueta { font-size: 14px; color: #005C8C; }
.ame-dep__texto { font-size: 19px; line-height: 1.4; }
.ame-dep__ayuda { font-size: 15px; color: var(--ame-gris-2); }
.ame-dep__opciones { display: flex; flex-wrap: wrap; gap: 10px; }
.ame-opt { font-size: 16px; padding: 10px 22px; }
.ame-opt[aria-pressed="true"] { background: #007EBA; border-color: #007EBA; color: #FFFFFF; }
.ame-reset { background: transparent; }
.ame-dep__resultado { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 44px 32px 48px 36px; background: #B5E6FF; position: sticky; top: 24px; }
.ame-dep__resultado p { margin: 0 0 8px; font-size: 16px; }
.ame-dep__resultado p strong { font-size: 18px; }
.ame-dep__acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.ame-dep__acciones[hidden] { display: none; }
.ame-btn { text-decoration: none; color: #FFFFFF; background: var(--ame-magenta); padding: 12px 22px; border-radius: 999px; font-weight: 700; min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
.ame-btn:hover { background: var(--ame-magenta-2); color: #FFFFFF; }
.ame-dep__nota { font-size: 14px !important; color: var(--ame-gris) !important; border-top: 1px solid #66CCFF; padding-top: 14px; margin: 0 !important; }
@media (max-width: 600px) { .ame-dep__item { padding: 22px; } .ame-dep__resultado { position: static; padding: 26px; } }

/* ---------- Páginas genéricas ---------- */
.ame-pagina.ame-pagina { padding-block: 64px 96px; }
.ame-pagina__titulo { font-size: clamp(38px, 5vw, 60px) !important; }
.ame-tarjeta-post { background: #FFFFFF; border-radius: 28px; overflow: hidden; padding-bottom: 20px; }
.ame-tarjeta-post > *:not(.wp-block-post-featured-image) { padding-inline: 24px; }

/* ---------- Columnas: apilar antes en tablet ---------- */
@media (max-width: 900px) {
	.ame-hero__cols.ame-hero__cols, .ame-arantxa__cols.ame-arantxa__cols, .ame-dependencia__cols.ame-dependencia__cols,
	.ame-contacto__cols.ame-contacto__cols, .ame-cab-2.ame-cab-2, .ame-formacion__cols.ame-formacion__cols { flex-wrap: wrap !important; }
	.ame-hero__cols > .wp-block-column, .ame-arantxa__cols > .wp-block-column, .ame-dependencia__cols > .wp-block-column,
	.ame-contacto__cols > .wp-block-column, .ame-cab-2 > .wp-block-column, .ame-formacion__cols > .wp-block-column { flex-basis: 100% !important; }
	.ame-cab-2.ame-cab-2 { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }
