/* Awwa Adventures – app: guía por pasos, iconos por tipo y Mis aventuras. */

.aw-ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Colores por tipo: más claro arriba, más oscuro abajo. */
.aw-tipo-costa { --aw-t1: #cfeaf8; --aw-t2: #6fb1db; }
.aw-tipo-sendero { --aw-t1: #e3ef9c; --aw-t2: #98bd1c; }
.aw-tipo-etno { --aw-t1: #ecd4b3; --aw-t2: #ad7a4b; }
.aw-tipo-productor { --aw-t1: #dfd0f4; --aw-t2: #9474cc; }

/* ---------- Guía por pasos ---------- */
.aw-guide__item figure { position: relative; }
.aw-lock-tile { display: none; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: inherit; background: linear-gradient(180deg, var(--aw-t1), var(--aw-t2)); color: #fff; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.aw-lock-tile .aw-ico { width: 34%; max-width: 140px; height: auto; stroke-width: 1.3; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .15)); }
.aw-lock-tile span { display: block; width: 100%; text-align: center; text-indent: .08em; }
.aw-guide__item.is-paywall figure { width: 100%; aspect-ratio: 16 / 9; margin: 0; border-radius: 16px; overflow: hidden; }
.aw-lock-hint, .aw-done-badge { display: none; }

.aw-guide__item.is-locked .aw-lock-tile { display: flex; }
.aw-guide__item.is-locked figure img { visibility: hidden; }
.aw-guide__item.is-locked .wp-block-media-text__content > :not(.aw-guide__num):not(.aw-lock-hint) { display: none; }
.aw-guide__item.is-locked .aw-lock-hint { display: block; color: #6b7280; }

.aw-guide__item.is-current { position: relative; }
.aw-guide__item.is-current::before { content: "Tu siguiente objetivo"; display: inline-block; margin: 0 0 12px; padding: 5px 14px; border-radius: 999px; background: #111; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.aw-guide__item.is-done .aw-btn--goal { display: none; }
.aw-guide__item.is-done .aw-done-badge { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; background: #f3f8e3; color: #4d6b00; font-size: 13px; font-weight: 600; }
.aw-guide__item.is-new { animation: aw-reveal .7s ease; }
@keyframes aw-reveal { from { opacity: .3; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.aw-btn--goal .wp-block-button__link { border: 0; cursor: pointer; background: #a6cf1f !important; color: #111 !important; font-weight: 700; }
.aw-final { opacity: .45; transition: opacity .3s; }
.aw-guide-complete .aw-final { opacity: 1; }
.aw-app-reset { text-align: center; }
.aw-app-reset button { border: 0; background: none; color: #6b7280; text-decoration: underline; cursor: pointer; font-size: 13px; }

/* Barra de progreso (guía y tarjetas): bandera de salida, un punto por secreto y bandera de meta, en línea discontinua de mapa. */
.aw-app-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 32px; font-size: 14px; color: #374151; }
.aw-app-progress__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #111; }
.aw-app-progress__txt { white-space: nowrap; }
.aw-trail { flex: 1; min-width: 150px; max-width: 420px; display: flex; align-items: center; gap: 4px; }
.aw-trail__flag { display: block; width: 20px; height: 20px; fill: #fff; stroke: #111; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aw-trail__start .aw-trail__flag { fill: #a6cf1f; }
.aw-trail.is-complete .aw-trail__end .aw-trail__flag { fill: #a6cf1f; }
.aw-trail__track { position: relative; flex: 1; height: 0; margin: 0 6px; border-top: 3px dashed #111; }
.aw-trail__track i { position: absolute; left: 0; top: -3px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #c7e35a, #8fb31a); transition: width .5s; }
.aw-trail__dot { position: absolute; top: -1.5px; width: 11px; height: 11px; border: 2.5px solid #111; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-sizing: border-box; transition: background .3s; }
.aw-trail__dot.is-on { background: #a6cf1f; }
.aw-trail__dot.is-next { box-shadow: 0 0 0 4px rgba(166, 207, 31, .35); }
.aw-app-progress--guide { position: sticky; top: 64px; z-index: 5; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .97); box-shadow: 0 2px 12px rgba(0, 0, 0, .06); flex-wrap: nowrap; }
.aw-app-card .aw-app-progress .aw-trail { flex-basis: 100%; max-width: none; order: 2; }
.aw-app-card .aw-app-progress__txt { order: 1; margin-left: auto; font-size: 13px; color: #6b7280; }

/* Mini guía: invitación a la guía completa */
.aw-upgrade { margin: 8px 0 40px; padding: 28px 24px; border-radius: 20px; background: #111; color: #fff; text-align: center; }
.aw-upgrade h3 { margin: 6px 0 10px; color: #fff !important; font-size: 24px; }
.aw-upgrade p { margin: 0 auto 16px; max-width: 520px; color: #e5e7eb; }
.aw-upgrade__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c7e35a !important; margin-bottom: 0 !important; }
.aw-upgrade .aw-upgrade__btn { background: #a6cf1f; color: #111 !important; }
.aw-upgrade__small { margin: 16px 0 0 !important; font-size: 13px; }
.aw-upgrade__small a { color: #fff; }

/* Emergencias y seguridad */
.aw-sos { max-width: 760px; margin: 48px auto 0; padding: 26px 22px; border-radius: 24px; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .06); }
.aw-sos h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 24px; }
.aw-sos h2 .aw-ico { width: 26px; height: 26px; stroke: #d62828; }
.aw-sos__lead { margin: 0 0 18px; color: #6b7280; }
.aw-sos__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aw-sos__item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #faf7f0; }
.aw-sos__item strong { display: block; font-size: 16px; }
.aw-sos__item span { display: block; font-size: 13px; color: #6b7280; line-height: 1.4; }
.aw-sos__item em { display: block; font-style: normal; font-weight: 600; font-size: 14px; margin-top: 2px; }
.aw-sos__item--main { background: #d62828; color: #fff; }
.aw-sos__item--main strong { font-size: 20px; }
.aw-sos__item--main span { color: #ffe1e1; }
.aw-sos__item--main em { display: none; }
.aw-sos__call { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: #111; color: #fff !important; font-weight: 700; text-decoration: none !important; }
.aw-sos__call .aw-ico { width: 18px; height: 18px; }
.aw-sos__item--main .aw-sos__call { background: #fff; color: #d62828 !important; }
.aw-sos__tip { margin: 16px 0 0; font-size: 13px; color: #6b7280; }

/* Avisos */
.aw-app-alert { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 14px 18px; border-radius: 16px; background: #fff4e5; border: 1px solid #f6c48a; color: #7a3e00; }
.aw-app-alert p { margin: 0; }
#avisos .aw-app-alert { flex-direction: column; gap: 4px; }
.aw-app-alert .aw-ico { flex: 0 0 22px; width: 22px; height: 22px; stroke: #f47c20; }
.aw-app-alert--top { position: relative; margin-bottom: 24px; padding-right: 48px; cursor: pointer; transition: opacity .25s, transform .25s; }
.aw-app-alert--top.is-closing { opacity: 0; transform: translateY(-8px); }
.aw-app-alert__close { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(244, 124, 32, .15); }
.aw-app-alert--top .aw-app-alert__close .aw-ico { flex: none; width: 16px; height: 16px; stroke: #7a3e00; stroke-width: 2.2; }

/* ---------- Mis aventuras ---------- */
.aw-app { max-width: 1040px; margin: 0 auto; }
.aw-app__hello { text-align: center; margin: 16px 0 40px; }
.aw-app__hello h1 { margin: 12px 0 6px; font-size: clamp(32px, 5vw, 48px); }
.aw-app__hello p { color: #6b7280; margin: 0; }
.aw-app__appicon { display: inline-flex; width: 72px; height: 72px; align-items: center; justify-content: center; }
.aw-app__appicon .aw-ico { width: 64px; height: 64px; stroke: #111; stroke-width: 1.3; }
.aw-app__block { margin: 0 0 56px; }
.aw-app__block h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; margin: 0 0 18px; }
.aw-app__block h2 .aw-ico { width: 26px; height: 26px; }
.aw-app__muted { color: #6b7280; }
.aw-app__more { margin-top: 14px; }
.aw-app__more a { color: #111; font-weight: 600; }
.aw-app__empty { padding: 28px; border-radius: 20px; background: #fff; text-align: center; }

.aw-app__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.aw-app-card { overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .06); display: flex; flex-direction: column; }
.aw-app-card__img { position: relative; aspect-ratio: 16 / 10; background: #e5e7eb center / cover no-repeat; }
.aw-app-card__flag { position: absolute; top: 12px; right: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; background: #f47c20; color: #fff; font-size: 12px; font-weight: 700; }
.aw-app-card__flag .aw-ico { width: 14px; height: 14px; stroke: #fff; }
.aw-app-card__flag--near { background: #111; }
.aw-app-card__flag--free { top: auto; bottom: 12px; left: 12px; right: auto; background: #a6cf1f; color: #111; }
.aw-app-card__upgrade { margin-top: 12px; color: #111 !important; font-size: 14px; font-weight: 600; }
.aw-app-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.aw-app-card__island { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #6b7a1c; }
.aw-app-card h3 { margin: 4px 0 12px; font-size: 20px; }
.aw-app-card .aw-app-progress { margin: 0 0 16px; }
/* Tarjetas de Mis aventuras: barra verde de relleno */
.aw-app-progress--bar { flex-wrap: nowrap; gap: 12px; }
.aw-app-progress__bar { flex: 1; height: 8px; border-radius: 99px; background: #e5e7eb; overflow: hidden; }
.aw-app-progress__bar i { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--aw-tema-suave, #c7e35a), var(--aw-tema, #8fb31a)); transition: width .5s; }
.aw-app-card .aw-app-progress--bar .aw-app-progress__txt { order: 0; margin-left: 0; }
.aw-app-progress--bar.is-complete .aw-app-progress__txt { color: var(--aw-tema-oscuro, #4d7c0f); font-weight: 600; }
.aw-app-progress--bar.is-complete .aw-app-progress__txt::before { content: "✓ "; }
.aw-app-card__price { margin: 0 0 14px; }
.aw-app-card .aw-app-btn { margin-top: auto; align-self: flex-start; }

.aw-app-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: #111; color: #fff !important; font-weight: 600; text-decoration: none !important; }
.aw-app-btn--ghost { background: transparent; color: #111 !important; border: 2px solid #111; }
.aw-app-btn.is-off { background: #e5e7eb; color: #6b7280 !important; }

.aw-app__shop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 20px; }
.aw-app-prod { color: #111; text-decoration: none !important; font-size: 14px; }
.aw-app-prod span { display: block; aspect-ratio: 1; border-radius: 16px; background: #fff center / cover no-repeat; margin-bottom: 8px; }
.aw-app-prod b { display: block; font-weight: 600; line-height: 1.3; }
.aw-app-prod em { font-style: normal; color: #6b7280; }

@media (max-width: 760px) {
	.aw-app__shop { grid-template-columns: repeat(2, 1fr); }
	.aw-app-progress--guide { top: 64px; padding: 10px 16px 14px; gap: 8px 10px; border-radius: 18px; flex-wrap: wrap; }
	.aw-app-progress--guide .aw-app-progress__txt { margin-left: auto; font-size: 13px; }
	.aw-app-progress--guide .aw-trail { order: 2; flex-basis: 100%; max-width: none; }
	.aw-sos { padding: 22px 16px; }
	.aw-sos__item { padding: 12px 12px 12px 14px; }
	.aw-sos__call { padding: 11px 14px; }
}

/* Secretos aún sin foto (borradores) */
.aw-guide__media figure.aw-noimg { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0; border-radius: 16px; background: #ece6d8; }
.aw-guide__media figure.aw-noimg::after { content: "Foto pendiente"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8a8270; font-size: 14px; }
.aw-guide__item.is-locked figure.aw-noimg::after { content: none; }

/* ==========================================================================
   Temas por terreno (0.8.0). El COLOR dice qué aventura es; la FORMA del botón, el estado.
   La Palma (montaña y medianías): verde · Tenerife: terracota · Aventura gratuita de costa: azul mar.
   Botones: estándar minimalista; "Continuar" lleva el fondo suave del color de la aventura.
   ========================================================================== */
.aw-tema--montana { --aw-tema: #a6cf1f; --aw-tema-txt: #111; --aw-tema-suave: #d6ec8a; --aw-tema-oscuro: #4d7c0f; --aw-tema-fondo: #d8eb9b; }
.aw-tema--costa   { --aw-tema: #1e9bd7; --aw-tema-txt: #fff; --aw-tema-suave: #8fd0ef; --aw-tema-oscuro: #12729f; --aw-tema-fondo: #e2f2fb; }
.aw-tema--tierra  { --aw-tema: #c0622d; --aw-tema-txt: #fff; --aw-tema-suave: #eab08c; --aw-tema-oscuro: #8a3f17; --aw-tema-fondo: #f8e6da; }

/* Etiqueta "Gratis" con varita */
.aw-app-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--aw-tema, #a6cf1f); color: var(--aw-tema-txt, #111); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.aw-app-tag .aw-ico { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Tarjetas del cliente: isla, borde de la gratuita e imagen provisional con el color del tema */
.aw-app-card--mine .aw-app-card__island { color: var(--aw-tema-oscuro, #4d7c0f); }
.aw-app-card--gift { box-shadow: 0 0 0 2px var(--aw-tema), 0 8px 24px rgba(17, 17, 17, .08); }
.aw-app-card__img.is-empty { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 20%, var(--aw-tema-suave), var(--aw-tema) 72%); }
.aw-app-card__magic { width: 64px; height: 64px; fill: none; stroke: var(--aw-tema-txt); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.aw-app-card__desc { margin: -4px 0 14px; color: #6b7280; font-size: 14px; line-height: 1.5; }

/* Botones de la app: el estándar es minimalista (fondo blanco, borde y texto negros): sin empezar, a la venta y terminada.
   "Continuar" (aventura a medias): mismo borde y texto negros, con fondo suave del color de la aventura
   (verde La Palma, terracota Tenerife, azul la gratuita). */
.aw-app-card .aw-app-btn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid #111; background: #fff; color: #111 !important; } /* .aw-app-btn lleva color blanco con !important */
.aw-app-card .aw-app-btn:hover { background: #111; color: #fff !important; }
.aw-app-card--mine .aw-app-btn.is-progress { background: var(--aw-tema-fondo); }  /* "Continuar": borde y texto negros sobre un fondo suave del color de la aventura */
.aw-app-card--mine .aw-app-btn.is-progress:hover { background: #111; color: #fff !important; }  /* rollover igual que el resto: negro con texto blanco */
.aw-app-card .aw-app-btn.is-off { border-color: #e5e7eb; background: #e5e7eb; color: #6b7280 !important; }
.aw-app-btn .aw-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Productos relacionados (fichas de la tienda) con la etiqueta "Souvenir La Palma" */
.aw-app__related ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 18px 0 24px !important; padding: 0; list-style: none; }
.aw-app__related ul.products::before, .aw-app__related ul.products::after { display: none !important; }
.aw-app__related ul.products li.product { position: relative; width: auto !important; margin: 0 !important; padding: 0 0 14px; float: none !important; border-radius: 16px; background: #fff; overflow: hidden; text-align: left; }
.aw-app__related li.product img { border-radius: 0; }
.aw-app__related li.product .woocommerce-loop-product__title, .aw-app__related li.product h3, .aw-app__related li.product .price { padding: 0 14px; }
.aw-prod-tag { position: absolute; top: 10px; right: 10px; left: auto; z-index: 2; padding: 4px 10px; border-radius: 999px; background: #111; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 900px) { .aw-app__related ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.aw-app__shoplinks { display: flex; flex-wrap: wrap; gap: 10px; }
