/* =========================================================================
   Andevoy — hoja de estilo principal
   Paleta: verde #11bd9b · blanco · coral #FF6B4A (acento)
   ========================================================================= */

:root {
	--av-verde:        #11bd9b;
	--av-verde-osc:    #0a9a7e;
	--av-verde-hondo:  #06584a;
	--av-verde-suave:  #e6faf5;
	--av-coral:        #ff6b4a;
	--av-coral-osc:    #ef5232;
	--av-coral-suave:  #fff1ed;
	--av-mostaza:      #ffc145;
	--av-tinta:        #16232b;
	--av-gris:         #5a6c72;
	--av-gris-claro:   #8fa2a6;
	--av-borde:        #e4eeeb;
	--av-fondo:        #ffffff;
	--av-fondo-gris:   #f3faf7;

	--av-fuente: "Figtree", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

	--av-r:      14px;
	--av-r-sm:   10px;
	--av-r-pill: 999px;
	--av-sombra:    0 1px 2px rgba(14, 43, 42, .05), 0 8px 24px rgba(14, 43, 42, .06);
	--av-sombra-lg: 0 2px 6px rgba(14, 43, 42, .06), 0 18px 46px rgba(14, 43, 42, .12);
	--av-wrap: 1180px;
	--av-header-h: 66px;

	/* --- Foto de la cabecera: toca solo estos seis números -----------------
	   opacidad : 1 = foto a pleno. Bajar apaga la imagen.
	   velo-*   : cuánto negro se pone encima. 0 = nada, 1 = negro total.
	   Si el texto no se lee, sube el velo antes que bajar la opacidad. */
	--av-hero-opacidad:   1;
	--av-hero-saturacion: 1.1;
	--av-hero-contraste:  1;
	--av-hero-brillo:     1.06;
	--av-velo-arriba:     .30;
	--av-velo-centro:     .14;
	--av-velo-abajo:      .36;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--av-fondo);
	color: var(--av-tinta);
	font-family: var(--av-fuente);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.012em; margin: 0; font-weight: 700; }

.av-wrap { width: min(100% - 40px, var(--av-wrap)); margin-inline: auto; }

.screen-reader-text, .av-skip {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.av-skip:focus {
	position: fixed; top: 10px; left: 10px; z-index: 999; width: auto; height: auto;
	clip: auto; clip-path: none; padding: 10px 16px; background: var(--av-tinta); color: #fff;
	border-radius: var(--av-r-sm);
}

.av-i { flex: none; }

/* ---------------------------------------------------------------- botones */

.av-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border: 1.5px solid transparent; border-radius: var(--av-r-pill);
	font-weight: 700; font-size: 15px; cursor: pointer; text-align: center;
	transition: transform .12s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.av-btn:hover  { transform: translateY(-1px); }
.av-btn:active { transform: translateY(0); }

.av-btn--coral { background: var(--av-coral); color: #fff; box-shadow: 0 6px 18px rgba(255, 107, 74, .28); }
.av-btn--coral:hover { background: var(--av-coral-osc); }

.av-btn--verde { background: var(--av-verde); color: #fff; box-shadow: 0 6px 18px rgba(17, 189, 155, .28); }
.av-btn--verde:hover { background: var(--av-verde-osc); }

.av-btn--fantasma { background: #fff; color: var(--av-tinta); border-color: var(--av-borde); }
.av-btn--fantasma:hover { border-color: var(--av-verde); color: var(--av-verde-osc); }
.av-btn--fantasma.is-on { border-color: var(--av-coral); color: var(--av-coral); background: var(--av-coral-suave); }

.av-btn--sm     { padding: 8px 15px; font-size: 14px; }
.av-btn--lg     { padding: 15px 30px; font-size: 17px; }
.av-btn--bloque { display: flex; width: 100%; }

/* ---------------------------------------------------------------- cabecera */

.av-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--av-verde-hondo);
	color: #fff;
	border-bottom: 1px solid transparent;
	box-shadow: 0 2px 14px rgba(17, 189, 155, .22);
}
.av-header .av-logo__mark,
.av-header .av-logo__txt,
.av-header .av-selector__btn,
.av-header .av-icono-btn { color: #fff; }
.av-header .av-selector__btn:hover,
.av-header .av-icono-btn:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.av-header .av-selector.is-abierto .av-selector__btn { background: rgba(255, 255, 255, .2); color: #fff; }
.av-header .av-icono-btn__n { border-color: rgba(255, 255, 255, .5); }
.av-header .av-avatar { border-color: #fff; box-shadow: none; }
.av-header__in { display: flex; align-items: center; gap: 20px; height: var(--av-header-h); }

.av-header__izq { display: flex; align-items: center; gap: 14px; min-width: 0; }

.av-logo { display: flex; align-items: center; gap: 1px; flex: none; }
.av-logo__mark { display: block; line-height: 0; color: var(--av-verde); }
.av-logo__mark svg { display: block; }
.av-logo__txt { font-weight: 700; font-size: 23px; letter-spacing: -.035em; }

/* -------------------------------------------------- selector de ciudad */

/* Centrado y bajado 2px, que es lo que separa su línea de base de la del logotipo. */
.av-selector { position: relative; top: 2px; }

.av-selector__btn {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 8px 10px; border: 0; border-radius: var(--av-r-sm); background: transparent;
	color: #2f5c63; font-size: 15px; font-weight: 400; cursor: pointer;
	text-transform: uppercase; letter-spacing: .08em;
	transition: background .15s, color .15s;
}
.av-selector__btn:hover { background: var(--av-verde-suave); color: var(--av-verde-osc); }
.av-selector__btn .av-i--pin { color: #2f5c63; }
.av-selector__btn:hover .av-i--pin { color: var(--av-verde-osc); }
.av-selector__btn .av-i--chevron { transition: transform .18s ease; opacity: .75; }
.av-selector.is-abierto .av-selector__btn { background: var(--av-verde-suave); color: var(--av-verde-osc); }
.av-selector.is-abierto .av-selector__btn .av-i--chevron { transform: rotate(180deg); }

.av-selector__panel {
	position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
	width: 290px; padding: 14px; background: #fff;
	border: 1.5px solid var(--av-borde); border-radius: 18px;
	box-shadow: 0 4px 10px rgba(22, 35, 43, .06), 0 22px 50px rgba(22, 35, 43, .16);
	animation: av-cae .16s ease;
}
@keyframes av-cae { from { opacity: 0; transform: translateY(-6px); } }

.av-selector__t {
	margin: 2px 0 10px; padding-left: 8px; font-size: 12px; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase; color: var(--av-gris-claro);
}
.av-selector__lista { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; }
.av-selector__a {
	display: flex; align-items: center; gap: 11px; padding: 9px 10px;
	border-radius: var(--av-r-sm); transition: background .14s;
}
.av-selector__a:hover { background: var(--av-fondo-gris); }
.av-selector__a.is-on { background: var(--av-verde-suave); }
.av-selector__a.is-on .av-i { color: var(--av-verde-osc); margin-left: auto; }
.av-selector__emoji { font-size: 20px; line-height: 1; }
.av-selector__n { display: grid; line-height: 1.25; }
.av-selector__n strong { font-size: 15.5px; font-weight: 600; }
.av-selector__n small  { font-size: 12.5px; color: var(--av-gris-claro); }

.av-selector__gps {
	display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
	padding: 10px; border: 1.5px dashed var(--av-borde); border-radius: var(--av-r-sm);
	background: transparent; color: var(--av-verde-osc); font-size: 14.5px; font-weight: 700;
	cursor: pointer; transition: .15s;
}
.av-selector__gps:hover { border-color: var(--av-verde); background: var(--av-verde-suave); }

.av-selector__pie { margin: 12px 0 2px; padding-left: 8px; font-size: 12.5px; color: var(--av-gris-claro); }

.av-selector__duda {
	align-self: center; padding: 3px 9px; border-radius: var(--av-r-pill);
	background: var(--av-coral-suave); color: var(--av-coral-osc);
	font-size: 11.5px; font-weight: 700; white-space: nowrap;
}

/* avisos flotantes de geolocalización */
.av-geo-pide {
	position: fixed; z-index: 80; left: 50%; bottom: 20px; transform: translate(-50%, 130%);
	display: flex; align-items: center; gap: 14px;
	width: min(100% - 32px, 620px); padding: 14px 16px 14px 20px;
	background: var(--av-tinta); color: #fff; border-radius: var(--av-r-pill);
	box-shadow: 0 18px 46px rgba(22, 35, 43, .3); font-size: 15px;
	transition: transform .32s cubic-bezier(.2, .9, .3, 1);
}
.av-geo-pide.entra { transform: translate(-50%, 0); }
.av-geo-pide span { flex: 1; }
.av-geo-pide strong { color: var(--av-verde); }
.av-geo-pide__no {
	border: 0; background: transparent; color: #8aa6a3; font-size: 16px; cursor: pointer; padding: 4px 6px;
}
.av-geo-pide__no:hover { color: #fff; }

.av-geo-ok {
	position: fixed; z-index: 80; left: 50%; bottom: 20px; transform: translateX(-50%);
	padding: 11px 20px; background: var(--av-tinta); color: #fff;
	border-radius: var(--av-r-pill); font-size: 14.5px;
	box-shadow: 0 14px 34px rgba(22, 35, 43, .28);
	animation: av-sube .3s ease;
}
.av-geo-ok strong { color: var(--av-verde); }
.av-geo-ok.se-va { opacity: 0; transition: opacity .6s ease; }
@keyframes av-sube { from { opacity: 0; transform: translate(-50%, 20px); } }

.av-header__acc { margin-left: auto; display: flex; align-items: center; gap: 2px; flex: none; }

.av-icono-btn {
	position: relative; display: grid; place-items: center;
	width: 42px; height: 42px; border-radius: 50%; color: #2f5c63;
	transition: background .15s, color .15s;
}
.av-icono-btn:hover { background: var(--av-verde-suave); color: var(--av-verde-osc); }

/* Buscador que se despliega al lado de la lupa. */
.av-buscar-rapido {
	display: flex; align-items: center; overflow: hidden;
	width: 0; opacity: 0;
	transition: width .26s cubic-bezier(.2, .9, .3, 1), opacity .2s ease;
}
.av-buscar-rapido.esta-abierto { width: clamp(180px, 26vw, 300px); opacity: 1; }
.av-buscar-rapido input {
	width: 100%; min-width: 0;
	padding: 9px 16px; border: 0; border-radius: var(--av-r-pill);
	background: rgba(255, 255, 255, .96); color: var(--av-tinta);
	font-size: 15px; font-family: inherit; outline: 0;
	box-shadow: 0 2px 10px rgba(22, 35, 43, .16);
}
.av-buscar-rapido input::placeholder { color: var(--av-gris-claro); }
.av-buscar-rapido input:focus { box-shadow: 0 0 0 2.5px rgba(255, 255, 255, .75); }

.av-header .av-icono-btn.is-on { background: rgba(255, 255, 255, .22); }

.av-icono-btn__n {
	position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px;
	display: grid; place-items: center; border-radius: var(--av-r-pill);
	background: var(--av-coral); color: #fff; font-size: 10.5px; font-weight: 800;
	border: 2px solid #fff;
}

.av-avatar {
	width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
	display: grid; place-items: center; background: var(--av-verde); color: #fff;
	font-weight: 700; border: 3px solid #fff; box-shadow: none;
}
.av-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------------- hero */

.av-hero {
	position: relative; overflow: hidden;
	padding: 72px 0 64px;
	background:
		radial-gradient(760px 320px at 88% 4%, rgba(255, 107, 74, .10), transparent 62%),
		linear-gradient(170deg, #e9fbf5 0%, #f6fdfa 46%, #ffffff 100%);
	text-align: center;
}

.av-hero__h1 { font-size: clamp(40px, 7.4vw, 74px); margin: 0 0 18px; }

/* Cabecera de portada al estilo del cartel: antetítulo, titular enorme, claim. */
.av-hero__kicker {
	margin: 0 0 14px; font-size: clamp(12px, 1.5vw, 15px); font-weight: 700;
	letter-spacing: .2em; text-transform: uppercase; line-height: 1.5;
}
.av-hero__h1.av-hero__h1--marca,
.av-hero--foto .av-hero__h1.av-hero__h1--marca {
	font-size: clamp(44px, 9.2vw, 112px);
	line-height: .98; margin: 0 0 20px;
	font-weight: 900;
	/* Caja alta: el texto ya va en mayúsculas en el HTML, así el navegador
	   no transforma nada y la fuente aplica sus formas de versalita real. */
	letter-spacing: .028em;
	word-spacing: .04em;
	font-kerning: normal;
	font-variant-ligatures: none;
	/* "case": sube y centra los signos ¿ ? a la altura de las mayúsculas. */
	font-feature-settings: "kern" 1, "case" 1;
	font-variant-caps: normal;
}
/* Solo ANDEVOY va en cursiva; la inclinación necesita un respiro a su derecha. */
.av-hero__h1--marca em {
	font-style: italic;
	font-weight: 900;
	color: #fff;
	display: inline;
	padding-right: .06em;
}
.av-hero__claim {
	margin: 0 auto 32px; max-width: 560px; font-weight: 600;
	font-size: clamp(14.5px, 1.35vw, 18px);
}
.av-hero__sub {
	margin: 0 auto 30px; max-width: 580px; font-size: clamp(17px, 2.2vw, 21px); color: var(--av-gris);
}
.av-hero .av-buscador { margin-inline: auto; }

/* Cabecera con foto de la ciudad: el estilo de andevoy.es */
.av-hero--foto {
	padding: 78px 0 62px; isolation: isolate; color: #fff;
	/* Claro detrás de la foto: si algún día se baja la opacidad, aclara en vez de ensuciar. */
	background: #e8f1f3;
}
.av-hero__foto { position: absolute; inset: 0; z-index: -2; display: block; }
.av-hero__foto img {
	width: 100%; height: 100%; object-fit: cover; object-position: center 58%;
	filter: saturate(var(--av-hero-saturacion)) contrast(var(--av-hero-contraste)) brightness(var(--av-hero-brillo));
	opacity: var(--av-hero-opacidad);
}
/* El oscurecido va en el velo, no en la foto: así la imagen no se apaga. */
.av-hero__velo {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg,
			rgba(8, 24, 30, var(--av-velo-arriba)) 0%,
			rgba(8, 24, 30, .06) 30%,
			rgba(8, 24, 30, .06) 52%,
			rgba(8, 24, 30, var(--av-velo-abajo)) 100%),
		radial-gradient(115% 62% at 50% 50%, rgba(8, 24, 30, var(--av-velo-centro)), transparent 74%);
}
.av-hero--foto .av-hero__h1 { text-shadow: 0 2px 12px rgba(0, 0, 0, .45), 0 8px 44px rgba(0, 0, 0, .5); }
.av-hero--foto .av-hero__kicker { text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.av-hero--foto .av-hero__sub,
.av-hero--foto .av-hero__claim { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.av-hero--foto .av-migas { color: rgba(255, 255, 255, .8); }
.av-hero--foto .av-migas a:hover { color: #fff; }
.av-hero--foto .av-buscador { border-color: transparent; box-shadow: 0 14px 40px rgba(0, 0, 0, .28); }
.av-hero--foto.av-hero--ciudad { padding: 62px 0 52px; }

/* La cabecera grande de la portada: ocupa la pantalla entera. */
.av-hero--foto:not(.av-hero--ciudad) {
	display: grid; align-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: 130px 0 90px;
}
.av-hero--foto:not(.av-hero--ciudad) .av-hero__h1 { font-size: clamp(42px, 7.6vw, 78px); }

/* ----------- La foto sube hasta arriba y el menú va flotando encima ------- */

.av-hero-sangre .av-main > .av-hero:first-child { margin-top: calc(var(--av-header-h) * -1); }

/* Sobre la foto: transparente. Al bajar, vuelve el verde de la marca. */
.av-hero-sangre .av-header {
	background: transparent;
	border-bottom-color: transparent;
	box-shadow: none;
	transition: background .25s ease, box-shadow .25s ease;
}
.av-hero-sangre .av-header:not(.is-solido) .av-selector__btn:hover,
.av-hero-sangre .av-header:not(.is-solido) .av-icono-btn:hover { background: rgba(255, 255, 255, .18); }
.av-hero-sangre .av-header:not(.is-solido) .av-selector__duda { background: rgba(255, 255, 255, .2); color: #fff; }

/* Al bajar, el menú pasa al mismo tono oscuro del pie y adelgaza. */
.av-header { transition: background .25s ease, box-shadow .25s ease; }
.av-header.is-solido,
.av-hero-sangre .av-header.is-solido {
	background: var(--av-tinta);
	box-shadow: 0 2px 16px rgba(0, 0, 0, .22);
}
.av-header__in { transition: height .22s ease; }
.av-header.is-solido .av-header__in { height: calc(var(--av-header-h) - 14px); }
.av-header.is-solido .av-logo__txt { font-size: 21px; }

/* La barra de admin de WordPress no debe tapar el menú. */
body.admin-bar .av-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .av-header { top: 46px; }
}


/* La misma cabecera, más discreta, en la página de una ciudad. */
.av-hero--ciudad {
	padding: 34px 0 34px; text-align: center;
	background: linear-gradient(180deg, #eefbf6, #ffffff);
}
.av-hero--ciudad .av-buscador { margin-inline: auto; }

/* Foto de ciudad al 70%: queda de fondo suave, así que el texto va oscuro. */
.av-hero--ciudad .av-hero__foto img { opacity: .7; }
.av-hero--ciudad .av-hero__velo { display: none; }
.av-hero--foto.av-hero--ciudad { color: var(--av-tinta); background: #eefbf6; }
.av-hero--foto .av-hero__h1--ciudad { color: var(--av-tinta); text-shadow: none; }
.av-hero--foto .av-hero__h1--ciudad em { color: var(--av-verde-osc); }
.av-hero__h1--ciudad { font-size: clamp(30px, 5vw, 46px); margin-bottom: 22px; }
.av-hero__h1--ciudad em { font-style: normal; color: var(--av-verde); }

.av-hero__mascota {
	position: absolute; bottom: -8px; right: 3%; width: clamp(120px, 15vw, 200px);
	pointer-events: none; opacity: .95;
}
.av-mascota { display: block; height: auto; }

/* --------------------------------------------------------------- secciones */

.av-seccion { padding: 58px 0; }
.av-seccion--gris { background: var(--av-fondo-gris); }
.av-seccion__h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 6px; }
.av-seccion__sub { margin: 0 0 26px; color: var(--av-gris); font-size: 17px; }

.av-centrado { text-align: center; max-width: 760px; margin-inline: auto; }

.av-nota { font-size: 14px; color: var(--av-gris-claro); margin: 14px 0 0; }
.av-nota--proximamente { text-align: center; margin-top: 26px; }
.av-nota a { color: var(--av-verde-osc); text-decoration: underline; }

.av-migas { font-size: 14px; color: var(--av-gris); margin: 0 0 10px; }
.av-migas a:hover { color: var(--av-verde-osc); }


/* ----------------------------------------------------------------- valores */

.av-valores { background: #2f9e89; color: #fff; }
.av-valores .av-seccion__h2 { margin-bottom: 34px; }

/* Texto a la izquierda y foto horizontal a la derecha. La foto empieza a la
   altura del título y acaba justo donde acaba el texto: toma su alto de la
   columna de texto, no al revés. */
.av-vida {
	/* Bloque compacto y centrado: texto algo más ancho que la foto y poco hueco
	   entre ambos. Con ese reparto la foto sale casi en 4:3. */
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: clamp(24px, 3vw, 40px); align-items: stretch;
	max-width: 1040px; margin-inline: auto;
}
.av-vida__texto { max-width: none; }
.av-vida__texto .av-valores__t { margin: 0 0 18px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; }
.av-vida__texto p {
	margin: 0 0 14px; font-size: clamp(14px, 1.08vw, 16px); line-height: 1.75; color: #4a5c61;
}
.av-vida__texto p:last-child { margin-bottom: 0; }
.av-vida__texto strong { color: var(--av-verde-hondo); font-weight: 700; letter-spacing: .03em; }

.av-vida__foto { position: relative; margin: 0; min-height: 240px; }
.av-vida__foto img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	border-radius: 18px;
	box-shadow: 0 2px 6px rgba(22, 35, 43, .05), 0 14px 32px rgba(22, 35, 43, .09);
}
@media (max-width: 820px) {
	.av-vida { grid-template-columns: 1fr; }
	.av-vida__texto { max-width: none; }
	.av-vida__foto { min-height: 0; }
	.av-vida__foto img { position: static; aspect-ratio: 4 / 3; height: auto; }
}

.av-valores__t {
	text-align: left;
	font-style: italic;
	font-weight: 700;
	color: var(--av-verde-hondo);
	font-size: clamp(26px, 3vw, 40px);
	letter-spacing: -.01em;
}
@media (max-width: 760px) {
	.av-valores__t { font-size: clamp(24px, 6.4vw, 30px); }
}
.av-valores__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.av-valor {
	background: #fff; border: 1.5px solid var(--av-borde); border-radius: 22px;
	padding: 28px 26px; text-align: center; box-shadow: var(--av-sombra);
}
.av-valor__i {
	display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px;
	border-radius: 18px; background: var(--av-verde-suave); color: var(--av-verde-osc);
}
.av-valor h3 { font-size: 19px; margin: 0 0 6px; }
.av-valor p  { margin: 0; color: var(--av-gris); font-size: 15.5px; }

/* ------------------------------------------------------------------- chips */

.av-chips { display: flex; flex-wrap: wrap; gap: 9px; }

.av-chip {
	/* Verde claro y amable; el verde oscuro queda solo para lo seleccionado. */
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 17px 9px 14px; border: 1px solid #cdeee4; border-radius: var(--av-r-pill);
	background: #e6f7f2; font-size: 14.5px; font-weight: 600; color: var(--av-verde-hondo);
	white-space: nowrap; cursor: pointer;
	transition: transform .14s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}
.av-chip .av-i { color: var(--av-verde-osc); transition: color .16s ease; }
.av-chip:hover {
	background: #d4f1e8; border-color: #b6e6d7;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(6, 88, 74, .1);
}
.av-chip:active { transform: translateY(0); box-shadow: none; }
.av-chip:focus-visible { outline: 2.5px solid var(--av-verde-hondo); outline-offset: 2px; }
/* El verde oscuro es la marca de "seleccionado", y solo eso. */
.av-chip.is-on {
	background: var(--av-verde-hondo); border-color: var(--av-verde-hondo); color: #fff;
	box-shadow: 0 3px 10px rgba(6, 88, 74, .22);
}
.av-chip.is-on .av-i { color: #fff; }
.av-chip.is-on:hover { background: #044437; border-color: #044437; }

/* --------------------------------------------------- barra de filtros pegajosa */

.av-barra {
	position: relative; z-index: 2;
	background: #fff;
	padding: 14px 0 12px;
}

/* Banner de frases: se deslizan en horizontal, cinco segundos cada una. */
.av-rotador { padding: 30px 20px 16px; }
.av-rotador__caja {
	position: relative; overflow: hidden;
	width: min(100%, calc(var(--av-wrap) + 80px));
	margin-inline: auto;
	padding: 34px 0 44px;
	border-radius: 22px;
	background: var(--av-verde);
	color: #fff; text-align: center;
	transition: background .6s ease;
}
.av-rotador__lista {
	list-style: none; margin: 0; padding: 0;
	display: flex; align-items: center;
	transition: transform .7s cubic-bezier(.45, .05, .25, 1);
	will-change: transform;
}
.av-rotador__frase {
	flex: 0 0 100%; min-width: 0;
	display: flex; flex-direction: column; align-items: center; gap: 5px;
	padding: 0 28px; text-wrap: balance;
}

/* Tres pisos, como el cartel: antetítulo, titular enorme y frase en cursiva. */
.av-rotador__antes {
	font-size: clamp(10.5px, 1.09vw, 15px); font-weight: 600;
	text-transform: uppercase; letter-spacing: .08em;
}
.av-rotador__grande {
	font-size: clamp(23px, 3.94vw, 53px); font-weight: 900; line-height: .98;
	text-transform: uppercase; letter-spacing: .012em;
	font-feature-settings: "kern" 1, "case" 1;
}
.av-rotador__despues {
	font-size: clamp(11.5px, 1.22vw, 16px); font-weight: 400; font-style: italic;
	margin-top: 3px;
}

.av-rotador__puntos {
	position: absolute; left: 0; right: 0; bottom: 18px;
	display: flex; justify-content: center; gap: 8px;
}
.av-rotador__punto {
	width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .45); cursor: pointer;
	transition: width .3s ease, background .3s ease;
}
.av-rotador__punto.is-on { width: 24px; border-radius: 8px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
	.av-rotador__lista, .av-rotador__caja { transition: none; }
}
.av-barra .av-chips--filtros {
	flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px;
	scrollbar-width: thin; -webkit-overflow-scrolling: touch;
	/* Centrado, pero sin recortar el primer botón cuando no caben todos. */
	justify-content: center;
	justify-content: safe center;
}
.av-barra .av-chips--filtros::-webkit-scrollbar { height: 4px; }
.av-barra .av-chips--filtros::-webkit-scrollbar-thumb { background: var(--av-borde); border-radius: 4px; }

.av-cuando {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
	gap: 6px; margin-top: 12px;
}
.av-pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 15px; border-radius: var(--av-r-pill); font-size: 14px; font-weight: 400;
	color: var(--av-tinta); background: var(--av-coral-suave); transition: .15s;
}
.av-pill:hover  { background: #ffe0d6; }
.av-pill.is-on  { background: var(--av-coral); color: #fff; font-weight: 500; }
.av-pill--cuenta .av-i { opacity: .6; }

.av-limpiar {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 13.5px; font-weight: 650; color: var(--av-coral);
}
.av-limpiar:hover { text-decoration: underline; }

/* --------------------------------------------------------------- buscador */

.av-buscador {
	display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 16px;
	background: #fff; border: 1.5px solid var(--av-borde); border-radius: var(--av-r-pill);
	max-width: 560px; box-shadow: var(--av-sombra);
}
.av-buscador .av-i { color: var(--av-gris-claro); }
.av-buscador input {
	flex: 1; border: 0; outline: 0; font-size: 16px; background: transparent; min-width: 0; color: var(--av-tinta);
}
.av-buscador input::placeholder { color: var(--av-gris-claro); }

/* ------------------------------------------------------------------ grid */

.av-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }

.av-resultados__cab { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.av-resultados__cab .av-seccion__h2 { margin: 0; color: var(--av-verde-hondo); }
.av-resultados__n { font-size: 14px; color: var(--av-gris); }

/* --------------------------------------------------------------- filas */

.av-hilera { padding: 34px 0 10px; }
.av-hilera:first-of-type { padding-top: 44px; }
.av-hilera__cab { display: flex; align-items: baseline; gap: 18px; margin-bottom: 20px; }
.av-hilera__t { font-size: clamp(22px, 2.4vw, 30px); margin: 0; color: var(--av-verde-hondo); }
.av-hilera__t span { color: var(--av-verde-hondo); }
.av-hilera__todos {
	margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px;
	padding: 7px 14px; border-radius: var(--av-r-pill);
	font-size: 14.5px; font-weight: 600; color: var(--av-verde-osc);
	transition: background .15s, gap .15s;
}
.av-hilera__todos:hover { background: var(--av-verde-suave); gap: 9px; }

/* Las filas de la portada: siempre cuatro columnas iguales, para que la
   tarjeta mida lo mismo en todas las filas aunque una traiga menos planes. */
.av-grid.av-grid--fila {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-flow: row;
}

/* --------------------------------------------------------------- tarjeta */

.av-card {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: #fff; border: 1px solid var(--av-borde); border-radius: var(--av-r);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(22, 35, 43, .04);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.av-card:hover {
	transform: translateY(-3px); border-color: #d6e6e2;
	box-shadow: 0 2px 6px rgba(22, 35, 43, .06), 0 16px 34px rgba(22, 35, 43, .12);
}

.av-card__img {
	position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
	background: var(--av-fondo-gris);
}
.av-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.av-card:hover .av-card__img img { transform: scale(1.05); }

/* Sin foto: un verde claro de la casa para todas las categorías. El icono
   basta para distinguirlas; los colorines competían con las fotos reales. */
.av-card__ph {
	position: absolute; inset: 0; display: grid; place-items: center;
	color: var(--av-verde-osc);
	background: linear-gradient(150deg, #e9faf5, #cdf0e7);
}

/* Lugar, abajo a la izquierda sobre la foto. */
.av-card__sitio {
	position: absolute; left: 12px; bottom: 11px; z-index: 1;
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 13px; font-weight: 700; color: #fff;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
	max-width: calc(100% - 24px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.av-card__img::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 58%;
	background: linear-gradient(180deg, transparent, rgba(10, 22, 28, .55));
	pointer-events: none;
}
/* Sobre el fondo claro no hace falta oscurecer y el texto va en verde. */
.av-card__img:has(.av-card__ph)::after { display: none; }
.av-card__img:has(.av-card__ph) .av-card__sitio { color: var(--av-verde-hondo); text-shadow: none; }
.av-card__img:has(.av-card__ph) .av-badge { box-shadow: 0 1px 4px rgba(22, 35, 43, .12); }

/* Corazón, arriba a la derecha sobre la foto. */
.av-fav {
	position: absolute; top: 11px; right: 11px; z-index: 2;
	width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
	display: grid; place-items: center; color: var(--av-tinta);
	background: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(22, 35, 43, .22);
	transition: transform .14s ease, color .14s, background .14s;
}
.av-fav:hover  { transform: scale(1.1); color: var(--av-coral); }
.av-fav:active { transform: scale(.96); }
.av-fav.is-on  { color: #fff; background: var(--av-coral); }
.av-fav.is-on .av-i { fill: currentColor; }
.av-fav:focus-visible { outline: 2.5px solid var(--av-tinta); outline-offset: 2px; }

.av-card__body { padding: 13px 15px 0; display: flex; flex-direction: column; flex: 1; }

.av-card__meta {
	display: flex; align-items: center; gap: 10px; margin: 0 0 6px;
	font-size: 11.5px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase;
}
.av-card__cuando { color: var(--av-verde-osc); white-space: nowrap; }
.av-card__cat {
	margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
	color: var(--av-gris-claro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.av-card__t { font-size: 17px; line-height: 1.38; margin: 0; font-weight: 600; letter-spacing: -.005em; }
.av-card__t a {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.av-card__t a:hover { color: var(--av-verde-osc); }

.av-card__extracto { margin: 8px 0 0; color: var(--av-gris); font-size: 15px; }

.av-card__porque {
	margin: 8px 0 0; font-size: 12.5px; font-weight: 700; color: var(--av-coral-osc);
}

.av-card__pie {
	margin-top: auto; padding: 11px 0 13px; display: flex; align-items: center; gap: 10px;
	border-top: 1px solid var(--av-borde);
}
.av-card__firma { display: flex; align-items: center; gap: 8px; min-width: 0; }
.av-card__inicial {
	width: 24px; height: 24px; flex: none; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--av-verde-suave); color: var(--av-verde-osc);
	font-size: 12px; font-weight: 700;
}
.av-card__org {
	font-size: 13.5px; color: var(--av-gris);
	overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.av-card__precio { margin-left: auto; flex: none; font-size: 14px; font-weight: 700; }
.av-card__precio.es-gratis { color: var(--av-verde-osc); }

/* tarjeta destacada (sorpresa) */
.av-card--destacada { display: grid; grid-template-columns: 340px 1fr; }
.av-card--destacada .av-card__img { aspect-ratio: auto; height: 100%; min-height: 230px; }
.av-card--destacada .av-card__body { padding: 20px 24px 0; }
.av-card--destacada .av-card__t { font-size: 25px; }
.av-card--destacada .av-card__t a { -webkit-line-clamp: 3; }

/* ------------------------------------------------------- muro de registro */

.av-muro { padding: 44px 0 24px; }
.av-muro__in {
	display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
	max-width: 1040px; margin-inline: auto;
	padding: 24px 34px 24px 28px; border-radius: 24px;
	background: linear-gradient(120deg, var(--av-verde-suave), var(--av-coral-suave));
	border: 1.5px solid #fff;
	box-shadow: var(--av-sombra);
}
.av-muro__mascota { width: 96px; flex: none; }
.av-muro__in > div { flex: 1; min-width: 240px; }
.av-muro h2 { font-size: clamp(20px, 2.2vw, 27px); margin: 0 0 5px; }
.av-muro p  { margin: 0; color: var(--av-gris); font-size: 15.5px; }

/* ------------------------------------------------------------------ sorpresa */

.av-seccion--sorpresa { padding-top: 34px; padding-bottom: 6px; }
.av-sorpresa {
	border: 2px dashed var(--av-coral); border-radius: 22px; padding: 18px;
	background: linear-gradient(180deg, var(--av-coral-suave), #fff);
}
.av-sorpresa__cab { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.av-sorpresa__cab .av-i { color: var(--av-coral); }
.av-sorpresa__cab h2 { font-size: 21px; margin: 0; }
.av-sorpresa__cab p  { margin: 1px 0 0; font-size: 14px; color: var(--av-gris); }
.av-sorpresa__cab .av-btn { margin-left: auto; }

/* --------------------------------------------------------------- vacío */

.av-vacio {
	text-align: center; padding: 60px 20px; border: 1.5px dashed var(--av-borde);
	border-radius: 20px; color: var(--av-gris);
}
.av-vacio .av-i { color: var(--av-gris-claro); margin-bottom: 10px; }
.av-vacio__mascota { margin: 0 auto 14px; width: 130px; }
.av-vacio h3 { font-size: 22px; margin: 0 0 6px; color: var(--av-tinta); }
.av-vacio p  { margin: 0 0 18px; }

/* ------------------------------------------------------------------ ficha */

.av-ficha__hero { position: relative; height: clamp(220px, 34vw, 400px); background: var(--av-fondo-gris); overflow: hidden; }
.av-ficha__hero img { width: 100%; height: 100%; object-fit: cover; }

.av-ficha__in { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 34px 0 56px; }
.av-ficha__h1 { font-size: clamp(28px, 4.4vw, 42px); margin: 0 0 14px; }
.av-ficha__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.av-ficha__tags .av-tag { padding: 6px 12px; font-size: 13px; }
.av-ficha__texto { font-size: 17.5px; color: #2b4543; }
.av-ficha__texto p { margin: 0 0 16px; }

.av-panel {
	background: #fff; border: 1.5px solid var(--av-borde); border-radius: 18px;
	padding: 22px; box-shadow: var(--av-sombra); position: sticky; top: calc(var(--av-header-h) + 24px);
}
.av-panel__precio { margin: 0 0 16px; font-size: 26px; font-weight: 700; color: var(--av-verde-osc); }
.av-panel__t { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 12px; }
.av-panel__t .av-i { color: var(--av-coral); }
.av-panel__vacio { margin: 0; font-size: 14px; color: var(--av-gris); }

.av-datos { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 13px; }
.av-datos li { display: flex; gap: 10px; font-size: 14.5px; color: var(--av-gris); }
.av-datos .av-i { color: var(--av-verde); margin-top: 2px; }
.av-datos strong { color: var(--av-tinta); font-weight: 700; }

.av-panel .av-btn + .av-btn { margin-top: 9px; }

/* ------------------------------------------------------------------- CTA */

.av-cta { background: var(--av-tinta); color: #fff; padding: 62px 0; }
.av-cta__in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.av-cta__h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 12px; }
.av-cta__p  { margin: 0 0 20px; color: #b6cecb; font-size: 17px; max-width: 520px; }
.av-cta__lista { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 9px; }
.av-cta__lista li { display: flex; align-items: center; gap: 9px; font-size: 15.5px; }
.av-cta__lista .av-i { color: var(--av-verde); }
.av-cta .av-nota { color: #7d9d99; }
.av-cta__art img { width: clamp(180px, 22vw, 260px); }

/* ------------------------------------------------------------- formularios */

.av-acceso { display: grid; place-items: center; padding: 54px 20px 80px; background: var(--av-fondo-gris); min-height: 70vh; }
.av-acceso__caja {
	width: min(100%, 460px); background: #fff; border: 1.5px solid var(--av-borde);
	border-radius: 22px; padding: 34px; box-shadow: var(--av-sombra-lg);
}
.av-acceso__h1 { font-size: 30px; margin: 0 0 6px; }
.av-acceso__sub { margin: 0 0 22px; color: var(--av-gris); }

.av-tabs { display: flex; gap: 4px; background: var(--av-fondo-gris); padding: 4px; border-radius: var(--av-r-pill); margin-bottom: 24px; }
.av-tabs__a { flex: 1; text-align: center; padding: 9px; border-radius: var(--av-r-pill); font-weight: 700; font-size: 14.5px; color: var(--av-gris); }
.av-tabs__a.is-on { background: #fff; color: var(--av-tinta); box-shadow: var(--av-sombra); }

.av-form { display: grid; gap: 16px; }
.av-fila  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.av-campo { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.av-campo label, .av-campo legend { font-size: 14px; font-weight: 700; padding: 0; }
.av-opt { font-weight: 500; color: var(--av-gris-claro); }
.av-ayuda { font-size: 12.5px; color: var(--av-gris-claro); }

.av-campo input[type="text"], .av-campo input[type="email"], .av-campo input[type="password"],
.av-campo input[type="date"], .av-campo input[type="search"], .av-campo input[type="file"],
.av-campo select, .av-campo textarea {
	width: 100%; padding: 11px 14px; border: 1.5px solid var(--av-borde); border-radius: var(--av-r-sm);
	font-size: 15.5px; font-family: inherit; color: var(--av-tinta); background: #fff; outline: 0;
	transition: border-color .15s, box-shadow .15s;
}
.av-campo input:focus, .av-campo select:focus, .av-campo textarea:focus {
	border-color: var(--av-verde); box-shadow: 0 0 0 3px var(--av-verde-suave);
}

.av-radios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.av-radio {
	display: flex; align-items: center; gap: 8px; padding: 10px 13px;
	border: 1.5px solid var(--av-borde); border-radius: var(--av-r-sm); cursor: pointer; font-size: 14.5px;
	transition: .15s;
}
.av-radio:hover { border-color: var(--av-verde); }
.av-radio:has(input:checked) { border-color: var(--av-verde); background: var(--av-verde-suave); font-weight: 650; }

.av-form__pie { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.av-salir { font-size: 14px; color: var(--av-gris); text-decoration: underline; }
.av-salir:hover { color: var(--av-coral); }

.av-aviso { padding: 12px 16px; border-radius: var(--av-r-sm); font-size: 14.5px; font-weight: 650; margin: 0 0 18px; }
.av-aviso--ok    { background: var(--av-verde-suave); color: #08715c; }
.av-aviso--error { background: var(--av-coral-suave); color: #b6341b; }

/* --------------------------------------------------------- elegir gustos */

.av-bloque { border: 0; padding: 0; margin: 0 0 8px; }
.av-bloque__t { font-size: 19px; font-weight: 700; padding: 0; margin: 0 0 4px; }
.av-bloque__sub { font-size: 14px; color: var(--av-gris); margin: 12px 0 10px; }

.av-elige { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.av-elige--sm { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.av-elige__i {
	display: flex; align-items: center; gap: 9px; padding: 12px 14px; cursor: pointer;
	border: 1.5px solid var(--av-borde); border-radius: var(--av-r-sm); font-size: 14.5px; background: #fff;
	transition: .15s;
}
.av-elige__i input { position: absolute; opacity: 0; width: 0; height: 0; }
.av-elige__i .av-i { color: var(--av-verde); }
.av-elige__i:hover { border-color: var(--av-verde); }
.av-elige__i:has(input:checked) {
	border-color: var(--av-verde); background: var(--av-verde-suave); font-weight: 700;
	box-shadow: 0 0 0 3px rgba(17, 189, 155, .12);
}

/* ------------------------------------------------------------------ cuenta */

.av-cuenta { padding: 40px 0 70px; background: var(--av-fondo-gris); min-height: 70vh; }

.av-cuenta__cab {
	display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
	background: #fff; border: 1.5px solid var(--av-borde); border-radius: 20px;
	padding: 22px 26px; margin-bottom: 26px; box-shadow: var(--av-sombra);
}
.av-cuenta__foto {
	width: 74px; height: 74px; border-radius: 50%; overflow: hidden; flex: none;
	display: grid; place-items: center; background: var(--av-verde); color: #fff;
	font-size: 30px; font-weight: 800;
}
.av-cuenta__foto img { width: 100%; height: 100%; object-fit: cover; }
.av-cuenta__id h1 { font-size: 27px; margin: 0; }
.av-cuenta__id p  { margin: 2px 0 0; color: var(--av-gris); font-size: 15px; }

.av-progreso { margin-left: auto; min-width: 240px; }
.av-progreso__barra { height: 9px; border-radius: 9px; background: var(--av-borde); overflow: hidden; }
.av-progreso__barra span { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--av-verde), var(--av-coral)); transition: width .4s ease; }
.av-progreso__txt { margin: 7px 0 0; font-size: 13.5px; color: var(--av-gris); }

.av-cuenta__cols { display: grid; grid-template-columns: 1fr 330px; gap: 26px; align-items: start; }
.av-form--perfil {
	background: #fff; border: 1.5px solid var(--av-borde); border-radius: 20px;
	padding: 26px; box-shadow: var(--av-sombra); gap: 26px;
}
.av-cuenta__aside { display: grid; gap: 18px; }
.av-cuenta__aside .av-panel { position: static; }

.av-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.av-mini a { display: grid; gap: 1px; padding: 9px 10px; border-radius: var(--av-r-sm); transition: background .15s; }
.av-mini a:hover { background: var(--av-verde-suave); }
.av-mini strong { font-size: 14.5px; font-weight: 700; }
.av-mini span   { font-size: 12.5px; color: var(--av-gris); }

/* ------------------------------------------------------------------ prosa */

.av-prosa { max-width: 720px; }
.av-prosa h1 { font-size: 34px; margin: 0 0 16px; }

/* ------------------------------------------------------------------ footer */

.av-footer { background: var(--av-tinta); color: #9fbab7; padding: 52px 0 26px; }
.av-footer__in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
.av-footer__logo {
	display: flex; align-items: center; gap: 2px;
	font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 8px; letter-spacing: -.03em;
}
.av-footer__logo .av-logo__mark { color: var(--av-verde); }
.av-footer__insta {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
	padding: 9px 16px 9px 12px; border-radius: var(--av-r-pill);
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
	color: #fff; font-size: 14px; font-weight: 600;
	transition: background .15s, border-color .15s;
}
.av-footer__insta:hover { background: var(--av-verde); border-color: var(--av-verde); color: #fff; }
.av-footer__claim { margin: 0; max-width: 300px; }
.av-footer__nav { display: grid; gap: 7px; align-content: start; }
.av-footer__t { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 0 0 4px; }
.av-footer__nav a:hover { color: var(--av-verde); }
.av-footer__legal {
	display: flex; align-items: center; flex-wrap: wrap; gap: 10px 26px;
	margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px;
}
.av-footer__legales { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.av-footer__legales a:hover, .av-footer__firma a:hover { color: var(--av-verde); }
.av-footer__firma { margin-left: auto; }
.av-footer__firma a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }

.av-footer__cafe { display: inline-flex; align-items: center; gap: 7px; }
.av-footer__cafe .av-i { color: var(--av-coral); }
.av-footer__cafe--pendiente { opacity: .7; }
.av-footer__cafe small { font-size: 11.5px; color: var(--av-coral); }
@media (max-width: 700px) { .av-footer__firma { margin-left: 0; } }

/* --------------------------------------------------------------- responsive */

@media (max-width: 980px) {
	.av-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.av-ficha__in { grid-template-columns: 1fr; }
	.av-panel { position: static; }
	.av-cuenta__cols { grid-template-columns: 1fr; }
	.av-cta__in { grid-template-columns: 1fr; }
	.av-cta__art { display: none; }
	.av-valores__grid { grid-template-columns: 1fr; }
	.av-footer__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
	:root { --av-header-h: 60px; }
	.av-wrap { width: min(100% - 32px, var(--av-wrap)); }
	.av-header__in { gap: 12px; }
	.av-logo__txt { display: none; }
	.av-selector { margin-left: 2px; }
	.av-selector__btn { font-size: 15.5px; padding: 8px 6px; }
	.av-selector__panel { width: min(80vw, 290px); }
	.av-selector__duda { display: none; }
	.av-hero { padding: 36px 0 140px; }
	.av-hero--ciudad { padding: 26px 0 26px; }
	.av-hero--foto:not(.av-hero--ciudad) { padding: 96px 0 64px; }
	.av-hero__mascota { right: 50%; transform: translateX(50%); width: 120px; }
	.av-geo-pide { flex-wrap: wrap; border-radius: 20px; padding: 14px 16px; }
	.av-geo-pide span { flex: 1 1 100%; }
	.av-seccion { padding: 42px 0; }
	.av-grid { grid-template-columns: 1fr; }
	.av-card--destacada { grid-template-columns: 1fr; }
	.av-card--destacada .av-card__img { min-height: 170px; aspect-ratio: 16 / 9; }
	.av-card--destacada .av-card__body { padding: 18px; }
	.av-card--destacada .av-card__t { font-size: 21px; }
	.av-fila, .av-radios { grid-template-columns: 1fr; }
	.av-acceso__caja { padding: 26px 20px; }
	.av-cuenta__cab { padding: 18px; }
	.av-progreso { margin-left: 0; width: 100%; }
	.av-sorpresa__cab { flex-wrap: wrap; }
	.av-sorpresa__cab .av-btn { margin-left: 0; }
	.av-footer__in { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; scroll-behavior: auto; }
}

/* =========================================================================
   Pantallas grandes: portátil grande, 2K y más.
   El contenido crece con la pantalla en vez de quedarse en una isla
   estrecha en el centro, pero con tope para que las líneas de texto
   nunca se hagan ilegibles.
   ========================================================================= */

@media (min-width: 1440px) {
	:root { --av-wrap: 1320px; --av-header-h: 72px; }
	.av-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.av-ficha__in { grid-template-columns: 1fr 380px; gap: 52px; }
	.av-cuenta__cols { grid-template-columns: 1fr 370px; }
}

@media (min-width: 1700px) {
	:root { --av-wrap: 1520px; }
	body { font-size: 17px; }
	.av-grid { gap: 26px; }
	.av-card__t { font-size: 20px; }
	.av-card__cuando, .av-card__lugar { font-size: 14.5px; }
	.av-seccion { padding: 72px 0; }
	.av-hero--foto:not(.av-hero--ciudad) { padding: 150px 0 110px; }
	.av-valores__grid { gap: 26px; }
	.av-valor { padding: 34px 32px; }
	.av-buscador { max-width: 640px; }
}

@media (min-width: 2000px) {
	:root { --av-wrap: 1720px; --av-header-h: 78px; --av-r: 16px; --av-r-sm: 12px; }
	body { font-size: 17.5px; }
	.av-wrap { width: min(100% - 64px, var(--av-wrap)); }
	.av-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
	.av-logo__txt { font-size: 25px; }
	.av-selector__btn { font-size: 18px; }
	.av-btn { font-size: 16px; padding: 12px 22px; }
	.av-btn--lg { font-size: 18px; padding: 17px 34px; }
	.av-seccion__h2 { font-size: clamp(30px, 2.2vw, 40px); }
	.av-buscador { max-width: 720px; }
	.av-buscador input { font-size: 17.5px; }
	.av-panel { padding: 26px; }
	.av-acceso__caja { width: min(100%, 520px); padding: 40px; }
}

@media (min-width: 2400px) {
	:root { --av-wrap: 1920px; --av-header-h: 84px; }
	body { font-size: 18px; }
	.av-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
	.av-ficha__in { grid-template-columns: 1fr 430px; }
	.av-ficha__texto { font-size: 19px; }
	.av-prosa { max-width: 820px; }
}

/* Monitores ultrapanorámicos: dejamos de crecer, el texto no debe
   cruzar la pantalla entera. */
@media (min-width: 3000px) {
	:root { --av-wrap: 2040px; }
}

/* Las filas reparten SIEMPRE todo el ancho entre las tarjetas que haya.
   Solo en móvil pasan a carrusel, porque cuatro no caben. */
@media (max-width: 820px) {
	.av-grid.av-grid--fila {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(70vw, 1fr);
		gap: 14px;
		overflow-x: auto; scroll-snap-type: x mandatory;
		padding-bottom: 6px; scrollbar-width: thin;
	}
	.av-grid--fila > * { scroll-snap-align: start; }
}

/* =========================================================================
   Tira de ciudades
   ========================================================================= */

.av-tira { padding: 46px 0 56px; }
.av-tira__t { font-size: clamp(20px, 2.2vw, 26px); margin: 0 0 18px; }
.av-tira__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.av-tira__pie { margin: 16px 0 0; font-size: 13.5px; color: var(--av-gris-claro); }

.av-ciudadin {
	position: relative; display: flex; align-items: flex-end; isolation: isolate;
	min-height: 118px; padding: 16px 18px; border-radius: 18px; overflow: hidden;
	color: #fff; background: var(--av-tinta);
	transition: transform .18s ease, box-shadow .18s ease;
}
.av-ciudadin:hover { transform: translateY(-3px); box-shadow: var(--av-sombra-lg); }
.av-ciudadin__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.av-ciudadin__velo {
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(8, 24, 30, .12), rgba(8, 24, 30, .72));
}
.av-ciudadin--sinfoto .av-ciudadin__velo { background: linear-gradient(150deg, #13c6a4, #0a8f86 60%, #14343f); }
.av-ciudad--valencia.av-ciudadin--sinfoto  .av-ciudadin__velo { background: linear-gradient(150deg, #ffb648, #f2683c 62%, #7b2b2b); }
.av-ciudad--madrid.av-ciudadin--sinfoto    .av-ciudadin__velo { background: linear-gradient(150deg, #8d7bff, #4a3bc4 60%, #241d52); }
.av-ciudad--barcelona.av-ciudadin--sinfoto .av-ciudadin__velo { background: linear-gradient(150deg, #46c9ff, #1a6fd4 60%, #0f2a52); }

.av-ciudadin__txt { display: grid; line-height: 1.25; }
.av-ciudadin__txt strong { font-size: 21px; font-weight: 700; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.av-ciudadin__txt small  { font-size: 13px; opacity: .9; }
.av-ciudadin__aqui {
	position: absolute; top: 12px; right: 12px;
	padding: 3px 10px; border-radius: var(--av-r-pill);
	background: var(--av-verde); color: #fff; font-size: 11.5px; font-weight: 800;
}
.av-ciudadin.is-on { outline: 2px solid var(--av-verde); outline-offset: -2px; }

/* =========================================================================
   Propón tu plan
   ========================================================================= */

.av-aporta { padding: 52px 0 56px; }
.av-aporta__in {
	display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
	max-width: 1040px; margin-inline: auto;
	padding: 24px 34px 24px 28px; border-radius: 24px;
	/* Mismo concepto que el aviso de planes ocultos: degradado verde-melocotón y monigote. */
	background: linear-gradient(120deg, var(--av-verde-suave), var(--av-coral-suave));
	border: 1.5px solid #fff;
	box-shadow: var(--av-sombra);
}
.av-aporta__mascota { width: 104px; flex: none; }
.av-aporta__in > div { flex: 1; min-width: 260px; }
.av-aporta h2 { font-size: clamp(20px, 2.2vw, 27px); margin: 0 0 5px; color: var(--av-tinta); }
.av-aporta p  { margin: 0; color: var(--av-gris); font-size: 15.5px; }

.av-proponer { display: grid; grid-template-columns: 1fr 330px; gap: 28px; align-items: start; }
.av-proponer__lado { display: grid; gap: 18px; justify-items: center; }
.av-proponer__lado .av-panel { position: static; width: 100%; }
.av-proponer__mascota { width: 150px; }

.av-req { color: var(--av-coral); }
.av-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.av-lista-check { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 9px; }
.av-lista-check li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--av-gris); }
.av-lista-check li::before {
	content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px;
	border-left: 2.5px solid var(--av-verde); border-bottom: 2.5px solid var(--av-verde);
	transform: rotate(-45deg);
}

@media (max-width: 980px) {
	.av-tira__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.av-proponer { grid-template-columns: 1fr; }
	.av-proponer__lado { justify-items: start; }
}
@media (max-width: 700px) {
	.av-aporta__in { padding: 22px; }
}

/* =========================================================================
   Instalar la app
   ========================================================================= */

.av-instalar {
	display: inline-flex; align-items: center; gap: 6px;
	margin-right: 6px; padding: 7px 13px 7px 10px;
	border: 1.5px solid rgba(255, 255, 255, .7); border-radius: var(--av-r-pill);
	background: transparent; color: #fff;
	font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
	transition: background .15s, border-color .15s;
}
.av-instalar:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }
.av-instalar[hidden] { display: none; }
@media (max-width: 700px) {
	.av-instalar { padding: 7px; border-color: transparent; }
	.av-instalar span { display: none; }
}

/* Hoja con las instrucciones (iPhone y navegadores sin instalación automática). */
.av-hoja { position: fixed; inset: 0; z-index: 100; display: grid; align-items: end; justify-items: center; }
.av-hoja[hidden] { display: none; }
.av-hoja__fondo { position: absolute; inset: 0; background: rgba(22, 35, 43, .45); animation: av-aparece .2s ease; }
.av-hoja__caja {
	position: relative; width: min(100%, 440px);
	margin: 0 0 max(16px, env(safe-area-inset-bottom)); padding: 28px 26px 24px;
	background: #fff; border-radius: 24px; text-align: center;
	box-shadow: 0 24px 60px rgba(22, 35, 43, .3);
	animation: av-sube-hoja .28s cubic-bezier(.2, .9, .3, 1);
}
@media (min-width: 701px) { .av-hoja { align-items: center; } .av-hoja__caja { margin: 0; } }
@keyframes av-aparece { from { opacity: 0; } }
@keyframes av-sube-hoja { from { transform: translateY(40px); opacity: 0; } }

.av-hoja__x {
	position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
	display: grid; place-items: center; border: 0; border-radius: 50%;
	background: var(--av-fondo-gris); color: var(--av-gris); cursor: pointer;
}
.av-hoja__icono { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 15px; box-shadow: 0 6px 18px rgba(17, 189, 155, .35); }
.av-hoja__t { font-size: 20px; margin: 0 0 16px; color: var(--av-verde-hondo); }
.av-hoja__pasos[hidden] { display: none; }
.av-hoja__pasos { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; text-align: left; }
.av-hoja__pasos li {
	display: flex; align-items: center; gap: 12px;
	padding: 11px 14px; border-radius: var(--av-r-sm); background: var(--av-fondo-gris);
	font-size: 15px;
}
.av-hoja__pasos .av-i { color: var(--av-verde-osc); }
.av-hoja__nota { margin: 0; font-size: 13px; color: var(--av-gris-claro); }

/* Las tres claves, en una fila ligera bajo el bloque, con separadores finos. */
.av-claves {
	/* Tres recuadros que juntos miden exactamente lo mismo que el bloque de arriba. */
	list-style: none; max-width: 1040px; margin: clamp(26px, 3vw, 36px) auto 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.av-clave {
	display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px;
	align-items: start; padding: 20px 22px;
	background: #eefaf6; border: 1px solid #d9f1ea; border-radius: 16px;
}
.av-clave__i {
	grid-row: span 2; display: grid; place-items: center;
	width: 30px; height: 30px; border-radius: 50%;
	background: #dff5ee; color: var(--av-verde-osc);
}
.av-clave__i .av-i { width: 16px; height: 16px; }
.av-clave strong { font-size: 13.5px; font-weight: 600; color: var(--av-verde-hondo); line-height: 1.35; padding-top: 1px; }
.av-clave span:last-child { font-size: 12.5px; line-height: 1.5; color: var(--av-gris); }
@media (max-width: 820px) {
	.av-claves { grid-template-columns: 1fr; gap: 12px; }
}

/* Ajuste óptico del par O-Y de "HOY": la O redonda y la Y abierta dejan un hueco visual. */
.av-kern-oy { letter-spacing: -.045em; }

/* "La vida está para vivirla" sobre verde: todo en blanco. */
.av-valores .av-valores__t { color: #fff; }
.av-valores .av-vida__texto p { color: rgba(255, 255, 255, .92); }
.av-valores .av-vida__texto strong { color: #fff; }
.av-valores .av-vida__foto img { box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.av-valores .av-clave {
	background: rgba(255, 255, 255, .95); border-color: transparent;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}
.av-valores .av-clave:hover { background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.av-valores .av-clave__i { background: var(--av-verde-suave); color: var(--av-verde-osc); }
.av-valores .av-clave strong { color: var(--av-verde-hondo); }
.av-valores .av-clave span:last-child { color: var(--av-gris); }
@media (max-width: 760px) { .av-muro p br { display: none; } }

/* ---------- Cerrar sesión en el menú ---------- */
.av-salir-cta {
	display: inline-flex; align-items: center; gap: 6px;
	margin-left: 14px; padding: 7px 14px 7px 11px;
	border-radius: var(--av-r-pill);
	background: var(--av-coral); color: #fff;
	font-size: 13.5px; font-weight: 700; white-space: nowrap; text-decoration: none;
	transition: background .15s, transform .15s;
}
.av-salir-cta:hover { background: #ff8467; color: #fff; transform: translateY(-1px); }
@media (max-width: 700px) {
	.av-salir-cta { padding: 8px; }
	.av-salir-cta span { display: none; }
}

/* ---------- Foto de perfil: vista previa + botón ---------- */
.av-campo__label { font-size: 14px; font-weight: 700; }
.av-foto-perfil { display: flex; align-items: center; gap: 20px; margin-top: 4px; }
.av-foto-perfil__circulo {
	flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; overflow: hidden;
	display: grid; place-items: center;
	background: var(--av-verde); color: #fff;
	font-size: 34px; font-weight: 800;
	box-shadow: 0 0 0 4px #fff, 0 0 0 5.5px var(--av-borde);
}
.av-foto-perfil__circulo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-foto-perfil__acciones { display: grid; gap: 8px; justify-items: start; }
.av-campo .av-foto-perfil__input {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0;
}
.av-campo label.av-foto-perfil__btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 18px; border-radius: var(--av-r-pill);
	background: var(--av-verde-suave); color: var(--av-verde-hondo);
	border: 1.5px solid #cdeee4;
	font-family: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}
.av-campo label.av-foto-perfil__btn:hover { background: var(--av-verde-hondo); border-color: var(--av-verde-hondo); color: #fff; }
.av-foto-perfil__input:focus-visible + .av-foto-perfil__btn { outline: 3px solid var(--av-verde); outline-offset: 2px; }
.av-foto-perfil .av-ayuda { margin: 0; }
