/* aventurasmarruecos.com · catálogo de viajes */
.av {
	--av-bg: #fbf7f1;
	--av-sand: #f3e9db;
	--av-line: #e6d8c5;
	--av-ink: #2b2118;
	--av-muted: #6b5c4f;
	--av-accent: #b4532a;
	--av-accent-dark: #8f3f1e;
	--av-dark: #221a15;
	--av-gold: #c48a1c;
	--av-radius: 14px;
	--av-shadow: 0 1px 2px rgba(43, 33, 24, .06), 0 8px 24px rgba(43, 33, 24, .07);
	--av-display: 'AV Vollkorn', 'Vollkorn', Georgia, serif;
	--av-body: var(--wp--preset--font-family--manrope, 'Manrope'), system-ui, sans-serif;
	font-family: var(--av-body);
	color: var(--av-ink);
	background: var(--av-bg);
	font-size: 17px;
	line-height: 1.6;
}
.av *, .av *::before, .av *::after { box-sizing: border-box; }
.av :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset) { margin: 0; padding: 0; border: 0; }
.av :where(h1, h2, h3) { font-family: var(--av-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; color: var(--av-ink); }
.av a { color: var(--av-accent-dark); }
.av img { max-width: 100%; height: auto; display: block; }
.av .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.av-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
body.av-body .wp-site-blocks > header.wp-block-template-part + main.av { margin-top: 0; }

/* Botones */
.av .av-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: .7em 1.25em; border-radius: 999px; border: 2px solid var(--av-accent);
	background: var(--av-accent); color: #fff; font: 700 15px/1.2 var(--av-body);
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
	white-space: nowrap;
}
.av .av-btn:hover, .av .av-btn:focus-visible { background: var(--av-accent-dark); border-color: var(--av-accent-dark); color: #fff; }
.av .av-btn:focus-visible { outline: 3px solid var(--av-gold); outline-offset: 2px; }
.av .av-btn--ghost { background: transparent; color: var(--av-accent-dark); }
.av .av-btn--ghost:hover { background: var(--av-accent); color: #fff; }
.av .av-btn--light { background: #fff; border-color: #fff; color: var(--av-ink); }
.av .av-btn--light:hover { background: var(--av-sand); border-color: var(--av-sand); color: var(--av-ink); }
.av .av-btn--sm { padding: .5em .95em; font-size: 14px; }
.av .av-btn--lg { padding: .85em 1.6em; font-size: 16px; }
.av .av-btn--block { display: flex; width: 100%; }
.av .av-btn--wa { background: #1f7a4d; border-color: #1f7a4d; }
.av .av-btn--wa:hover { background: #165c3a; border-color: #165c3a; }
.av .av-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; }

/* Hero */
.av-hero {
	position: relative; color: #fff; background-color: var(--av-dark);
	background-image: linear-gradient(180deg, rgba(20, 14, 10, .25) 0%, rgba(20, 14, 10, .35) 40%, rgba(20, 14, 10, .82) 100%), var(--img);
	background-size: cover; background-position: center;
	padding-block: clamp(120px, 22vh, 220px) clamp(32px, 6vh, 56px);
}
.av-hero--short { padding-block: clamp(80px, 14vh, 140px) 36px; }
.av-hero--home { min-height: min(86vh, 760px); display: flex; align-items: flex-end; }
.av-hero--plain { background-image: linear-gradient(135deg, #3a2618 0%, #7a3a1c 55%, #b4532a 100%); }
.av .av-hero__title { color: #fff; font-size: clamp(32px, 5.2vw, 60px); max-width: 22ch; text-wrap: balance; }
.av-hero--home .av-hero__title { font-size: clamp(36px, 6vw, 72px); max-width: 18ch; }
.av .av-hero__lead { margin-top: 14px; max-width: 62ch; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .92); }
.av .av-hero__lead p { margin: 0; }
.av-hero__meta { margin-top: 16px; }
.av-hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.av .av-eyebrow { font: 700 13px/1.3 var(--av-body); letter-spacing: .08em; text-transform: uppercase; color: #f6d6b8; margin-bottom: 10px; }
.av-hero .av-rating, .av-hero .av-rating__count { color: #fff; }
.av-hero .av-rating--new { background: rgba(255, 255, 255, .16); color: #fff; }

/* Migas */
.av-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; margin-bottom: 18px; }
.av-crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.av-hero .av-crumbs a { color: #fff; text-decoration: none; opacity: .85; }
.av-hero .av-crumbs a:hover { opacity: 1; text-decoration: underline; }

/* Valoración y precio */
.av-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.av-rating--new { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--av-sand); color: var(--av-accent-dark); font-weight: 700; font-size: 13px; }
.av-stars { color: var(--av-gold); letter-spacing: 1px; }
.av-star--empty { color: #d9cbb8; }
.av-star--half { background: linear-gradient(90deg, var(--av-gold) 50%, #d9cbb8 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.av-rating__count { color: var(--av-muted); }
.av-label { font-size: 13px; color: var(--av-muted); }
.av .av-price { font-size: 15px; color: var(--av-muted); }
.av .av-price strong { font-family: var(--av-display); font-size: 1.6em; color: var(--av-ink); font-weight: 700; }
.av .av-price--ask { font-weight: 700; color: var(--av-accent-dark); }
.av .av-price--big { font-size: 16px; }
.av .av-price--big strong { font-size: 2.2em; display: block; line-height: 1.1; }

/* Tarjetas */
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.av-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); overflow: hidden; box-shadow: var(--av-shadow); transition: transform .25s, box-shadow .25s; }
.av-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(43, 33, 24, .06), 0 16px 32px rgba(43, 33, 24, .12); }
.av-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e9d3b6, #c98a5a); overflow: hidden; }
.av-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.av-card:hover .av-card__media img { transform: scale(1.04); }
.av-badge { position: absolute; left: 12px; top: 12px; background: rgba(34, 26, 21, .82); color: #fff; font: 700 13px/1 var(--av-body); padding: 7px 11px; border-radius: 999px; }
.av-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.av .av-card__meta { font-size: 13px; font-weight: 700; color: var(--av-accent-dark); text-transform: uppercase; letter-spacing: .05em; }
.av .av-card__title { font-size: 21px; }
.av .av-card__title a { color: var(--av-ink); text-decoration: none; }
.av .av-card__title a:hover { color: var(--av-accent-dark); }
.av .av-card__route { font-size: 14px; color: var(--av-muted); }
.av-card__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--av-line); display: flex; flex-direction: column; gap: 12px; }
.av-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.av-card__actions .av-btn { flex: 1 1 auto; }

/* Categorías */
.av-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.av .av-cat {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 18px;
	border-radius: var(--av-radius); color: #fff; text-decoration: none; overflow: hidden;
	background: linear-gradient(180deg, rgba(20, 14, 10, .05), rgba(20, 14, 10, .78)), var(--img, linear-gradient(135deg, #7a3a1c, #b4532a));
	background-size: cover; background-position: center; transition: transform .25s;
}
.av .av-cat:hover { transform: translateY(-3px); }
.av-cat__name { font: 600 21px/1.2 var(--av-display); }
.av-cat__count { font-size: 13px; opacity: .9; margin-top: 4px; }

/* Bandas de portada */
.av-band { padding-block: clamp(48px, 8vw, 88px); }
.av-band--alt { background: var(--av-sand); }
.av-band--dark { background: var(--av-dark); color: #fff; }
.av-band--dark h2 { color: #fff !important; }
.av-band__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.av .av-band__head h2, .av .av-why h2, .av .av-related h2 { font-size: clamp(26px, 3.4vw, 40px); }
.av-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; margin-top: 28px; }
.av-steps li { counter-increment: s; display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 3px solid var(--av-accent); }
.av-steps li::before { content: '0' counter(s); font: 700 34px/1 var(--av-display); color: var(--av-accent); }
.av-steps strong { font-size: 18px; }
.av-steps span { color: var(--av-muted); }
.av-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.av .av-cta h2 { font-size: clamp(26px, 3.4vw, 40px); }
.av-cta p { max-width: 56ch; }
.av-section.av-cta { margin-top: 56px; padding: clamp(28px, 5vw, 48px); background: var(--av-sand); border-radius: var(--av-radius); }

/* Catálogo */
.av-archive .av-wrap > .av-grid { margin-top: 8px; }
.av-filters { margin-block: 28px 24px; overflow-x: auto; }
.av-filters ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.av .av-filters a { display: inline-block; padding: 8px 14px; border: 1px solid var(--av-line); border-radius: 999px; background: #fff; color: var(--av-ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.av .av-filters a:hover { border-color: var(--av-accent); }
.av .av-filters a[aria-current] { background: var(--av-ink); border-color: var(--av-ink); color: #fff; }
.av-archive { padding-bottom: 72px; }
.av-seo-text { margin-top: 56px; max-width: 820px; }

/* Ficha */
.av-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); padding-block: 40px 72px; align-items: start; }
.av-main { min-width: 0; }
.av-aside { position: sticky; top: 24px; }
.av-book { background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); padding: 24px; box-shadow: var(--av-shadow); display: flex; flex-direction: column; gap: 12px; }
.av-book__perks { list-style: none; font-size: 14px; color: var(--av-muted); display: grid; gap: 6px; margin-top: 4px; }
.av-book__perks li::before { content: '✓'; color: var(--av-accent); font-weight: 800; margin-right: 8px; }
.av-book__tel { font-size: 14px; }
.av-facts { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); overflow: hidden; }
.av-facts > div { flex: 1 1 150px; padding: 14px 16px; box-shadow: inset -1px 0 0 var(--av-line), inset 0 -1px 0 var(--av-line); }
.av-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--av-muted); font-weight: 700; }
.av-facts dd { font-weight: 700; margin-top: 2px; }
.av-section { margin-top: 48px; }
.av .av-section > h2, .av .av-content h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 18px; }
.av-route__list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; }
.av-route__list li { display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; background: var(--av-sand); padding: 6px 12px; border-radius: 999px; }
.av-route__list li + li::before { content: ''; width: 18px; height: 2px; background: var(--av-accent); margin-inline: 4px -2px; display: inline-block; position: relative; left: -16px; }
.av-route__list li + li { margin-left: 18px; }

.av-content { margin-top: 40px; }
.av-content > * + * { margin-top: 1em; }
.av .av-content h2 { margin-top: 48px; }
.av .av-content h3, .av .av-content h4 { font-family: var(--av-display); font-size: 21px; font-weight: 600; line-height: 1.3; margin-top: 32px; color: var(--av-ink); text-transform: none; }
.av .av-content h3 strong, .av .av-content h4 strong { font-weight: 600; }
.av .av-content .av-day { position: relative; padding-left: 28px; border-left: 2px solid var(--av-line); padding-bottom: 8px; }
.av .av-content .av-day::before { content: ''; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--av-accent); box-shadow: 0 0 0 4px var(--av-bg); }
.av .av-content .av-day h3 { margin-top: 0; }
.av .av-content .av-day + .av-day { margin-top: 0; padding-top: 24px; }
.av .av-content .av-day + .av-day::before { top: 30px; }
.av .av-content ul, .av .av-content ol { padding-left: 1.3em; }
.av .av-content li + li { margin-top: .35em; }
.av .av-content .av-incluye, .av .av-content .av-noincluye { list-style: none; padding: 0; }
.av .av-content .av-incluye li::before { content: '✓'; color: #1f7a4d; font-weight: 800; margin-right: 10px; }
.av .av-content .av-noincluye li::before { content: '✕'; color: #a23a2a; font-weight: 800; margin-right: 10px; }
.av .av-content hr { border: 0; border-top: 1px solid var(--av-line); margin-block: 24px; }
.av .av-content .av-note { background: var(--av-sand); border-radius: var(--av-radius); padding: 16px 18px; font-size: 15px; }
.av .av-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.av .av-content th, .av .av-content td { border-bottom: 1px solid var(--av-line); padding: 8px 6px; text-align: left; }

/* Galería */
.av-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.av-gallery__item a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.av-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.av-gallery__item a:hover img { transform: scale(1.05); }
.av-gallery__item figcaption { font-size: 11px; color: var(--av-muted); margin-top: 4px; line-height: 1.3; }
.av-lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.av-lightbox::backdrop { background: rgba(10, 8, 6, .88); }
.av-lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 8px; }
.av-lightbox p { color: #eee; font: 13px/1.4 system-ui, sans-serif; margin-top: 8px; text-align: center; }
.av-lightbox button { position: fixed; top: 16px; right: 16px; background: #fff; border: 0; border-radius: 999px; width: 40px; height: 40px; font-size: 22px; cursor: pointer; }

/* Opiniones */
.av-reviews__summary { margin-bottom: 16px; }
.av-reviews__list { list-style: none; display: grid; gap: 14px; margin-bottom: 20px; }
.av-review { background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); padding: 16px 18px; }
.av-review__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.av-review__head span:last-child { color: var(--av-muted); }
.av-review__body { margin-top: 8px; }
.av-review-form { margin-top: 16px; }
.av-review-form > summary { list-style: none; width: max-content; }
.av-review-form > summary::-webkit-details-marker { display: none; }
.av-review-form[open] > summary { margin-bottom: 16px; }
.av-rate { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin-bottom: 12px; }
.av-rate legend { width: 100%; font-weight: 700; font-size: 14px; margin-bottom: 4px; float: left; }
.av-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.av-rate label { font-size: 30px; color: #d9cbb8; cursor: pointer; line-height: 1; }
.av-rate input:checked ~ label, .av-rate label:hover, .av-rate label:hover ~ label { color: var(--av-gold); }
.av-rate input:focus-visible + label { outline: 2px solid var(--av-accent); }

/* Formularios */
.av-request { background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--av-shadow); scroll-margin-top: 24px; }
.av-form { display: grid; gap: 14px; }
.av-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.av-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.av-form input[type=text], .av-form input[type=email], .av-form input[type=tel], .av-form input[type=date], .av-form input[type=number], .av-form textarea {
	width: 100%; padding: 11px 13px; border: 1px solid #cdbba5; border-radius: 10px; background: #fffdfa; font: 16px/1.4 var(--av-body); color: var(--av-ink);
}
.av-form input:focus, .av-form textarea:focus { outline: 2px solid var(--av-accent); outline-offset: 1px; border-color: var(--av-accent); }
.av-toggle { display: inline-flex; background: var(--av-sand); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.av-toggle legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.av-toggle input { position: absolute; opacity: 0; }
.av-toggle label { margin: 0; padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: 15px; }
.av-toggle input:checked + label { background: var(--av-ink); color: #fff; }
.av-toggle input:focus-visible + label { outline: 2px solid var(--av-accent); }
.av-check { display: flex; gap: 10px; align-items: flex-start; }
.av-check input { margin-top: 5px; }
.av-check label { font-weight: 400; margin: 0; }
.av-form__note { font-size: 14px; color: var(--av-muted); }
.av-hp { position: absolute !important; left: -9999px !important; }
.av-when-reserva { display: none; }
.av-form:has(#av-t-reserva:checked) .av-when-reserva, .av-form.is-reserva .av-when-reserva { display: inline; }
.av-form:has(#av-t-reserva:checked) .av-when-presupuesto, .av-form.is-reserva .av-when-presupuesto { display: none; }
.av-notice { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; background: var(--av-sand); }
.av-notice--ok { background: #e5f2ea; border: 1px solid #a9d3b9; }
.av-notice--error { background: #f8e4df; border: 1px solid #e3aa9c; }
.av-notice p + p { margin-top: 6px; }
.av-empty { padding: 24px; background: var(--av-sand); border-radius: var(--av-radius); }

.av-embed { background: transparent; margin-block: 32px; }

/* Relacionados */
.av-related { background: var(--av-sand); padding-block: 56px 72px; }
.av-related h2 { margin-bottom: 24px; }

/* Barra móvil */
.av-mobilebar { display: none; }

@media (max-width: 960px) {
	.av-layout { grid-template-columns: 1fr; padding-top: 24px; }
	.av-aside { position: static; order: -1; }
	.av-book__perks { display: none; }
	.av-mobilebar { display: flex; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--av-line); box-shadow: 0 -6px 18px rgba(0, 0, 0, .08); }
	.av-mobilebar .av-price { font-size: 13px; }
	.av-mobilebar .av-price strong { font-size: 1.35em; }
	.av-single { padding-bottom: 72px; }
}
@media (max-width: 600px) {
	.av-cats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.av .av-cat { min-height: 130px; padding: 12px; }
	.av-cat__name { font-size: 17px; }
	.av-hero__actions .av-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.av *, .av *::before { transition: none !important; }
}
