/*
Theme Name: Viajes Alena
Theme URI: https://viajesalena.es
Author: David Farrés
Description: Tema a medida para Viajes Alena. Incluye catálogo de viajes con filtros, formulario de contacto y datos editables desde Apariencia → Personalizar.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: viajes-alena
*/

@font-face {
	font-family: "Nunito";
	src: url("assets/fonts/nunito.woff2") format("woff2");
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
}

:root {
	--va-ink: #0E2A7A;
	--va-ink-2: #34437A;
	--va-muted: #4A5580;
	--va-pink: #C2338A;
	--va-pink-dark: #9E1F6E;
	--va-violet: #6A2DBE;
	--va-blue: #3D63E0;
	--va-mist: #F3F1FB;
	--va-line: #E6E3F5;
	--va-chip-line: #D5D0EC;
	--va-soft-on-ink: #D6DCF5;
	--va-pad: 80px;
	--va-max: 1280px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
	margin: 0;
	font-family: "Nunito", "Trebuchet MS", sans-serif;
	font-size: 18px;
	line-height: 1.55;
	color: var(--va-ink);
	background: #FFFFFF;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--va-pink); }
a:hover { color: var(--va-pink-dark); }

:focus-visible { outline: 3px solid var(--va-blue); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.va-wrap { width: 100%; max-width: calc(var(--va-max) + var(--va-pad) * 2); margin: 0 auto; padding: 0 var(--va-pad); }

h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.1; letter-spacing: -0.015em; }
p { margin: 0; }

/* Botones */
.va-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 30px;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 800;
	font-size: 18px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background-color .15s, color .15s, border-color .15s;
}
.va-btn--primary { background: var(--va-pink); color: #FFFFFF; }
.va-btn--primary:hover { background: var(--va-pink-dark); color: #FFFFFF; }
.va-btn--outline { background: #FFFFFF; color: var(--va-ink); border-color: var(--va-ink); }
.va-btn--outline:hover { background: var(--va-ink); color: #FFFFFF; }
.va-btn--soft { min-height: 46px; padding: 0 18px; font-size: 15px; background: var(--va-mist); color: var(--va-ink); flex-shrink: 0; }
.va-btn--soft:hover { background: var(--va-line); color: var(--va-ink); }

/* Cabecera */
.va-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #FFFFFF;
	border-bottom: 1px solid var(--va-line);
}
.admin-bar .va-header { top: 32px; }
.va-header__inner { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.va-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.va-brand__heart { height: 48px; width: auto; }
.va-brand__word { height: 26px; width: auto; }
.va-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 36px; }
.va-nav a { color: var(--va-ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.va-nav a:hover { color: var(--va-pink); }
.va-nav .va-btn { color: #FFFFFF; min-height: 48px; padding: 0 24px; font-size: 17px; }
.va-menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center; }

/* Portada */
.va-hero {
	background-image: url("assets/img/fondo.jpg");
	background-size: cover;
	background-position: center 70%;
}
.va-hero__inner { min-height: 640px; display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-top: 48px; padding-bottom: 48px; }
.va-hero__text { max-width: 640px; display: flex; flex-direction: column; gap: 26px; }
.va-hero h1 { font-size: clamp(46px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.02em; }
.va-hero p { font-size: 23px; font-weight: 600; color: var(--va-ink-2); max-width: 560px; }
.va-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.va-hero__heart { width: min(480px, 36vw); height: auto; margin-right: 40px; }

/* Secciones */
.va-section { padding-top: 88px; padding-bottom: 88px; }
.va-section h2 { font-size: 52px; }
.va-lead { font-size: 19px; font-weight: 600; color: var(--va-muted); }

/* Catálogo */
.va-cat__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 36px; }
.va-cat__head > div:first-child, .va-ig__head > div { display: flex; flex-direction: column; gap: 10px; }
.va-chips { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; justify-content: flex-end; }
.va-chip {
	min-height: 46px;
	padding: 0 20px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
	white-space: nowrap;
	cursor: pointer;
	background: #FFFFFF;
	color: var(--va-ink);
	border: 2px solid var(--va-chip-line);
}
.va-chip[aria-pressed="true"] { background: var(--va-ink); color: #FFFFFF; border-color: var(--va-ink); }
.va-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.va-empty { color: var(--va-muted); font-weight: 600; }

.va-card {
	background: #FFFFFF;
	border: 1.5px solid var(--va-line);
	border-radius: 26px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.va-card[hidden] { display: none; }
.va-card__media { position: relative; height: 250px; display: block; }
.va-card__media img { width: 100%; height: 100%; object-fit: cover; }
.va-card__tag {
	position: absolute; top: 18px; left: 18px;
	background: #FFFFFF; color: var(--va-ink);
	font-size: 14px; font-weight: 800;
	padding: 7px 14px; border-radius: 999px;
}
.va-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.va-card h3 { font-size: 26px; line-height: 1.15; }
.va-card h3 a { color: var(--va-ink); text-decoration: none; }
.va-card h3 a:hover { color: var(--va-pink); }
.va-card__meta { font-size: 17px; font-weight: 600; color: var(--va-muted); }
.va-card__inc { font-size: 16px; font-weight: 600; color: var(--va-ink-2); line-height: 1.45; }
.va-card__foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.va-price { font-size: 16px; font-weight: 600; color: var(--va-muted); }
.va-price strong { font-size: 28px; font-weight: 900; color: var(--va-ink); white-space: nowrap; }

/* Bloque familias y grupos */
.va-groups { background: var(--va-mist); border-radius: 36px; padding: 64px 72px; display: flex; align-items: center; justify-content: space-between; gap: 64px; }
.va-groups > div { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.va-groups h2 { font-size: 44px; }
.va-groups p { font-size: 20px; font-weight: 600; color: var(--va-ink-2); }

/* Cómo trabajamos */
.va-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; margin-top: 44px; }
.va-step { display: flex; flex-direction: column; gap: 12px; }
.va-step__n { width: 56px; height: 56px; border-radius: 999px; color: #FFFFFF; font-weight: 900; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.va-step > div:last-child { display: flex; flex-direction: column; gap: 8px; }
.va-step h3 { font-size: 24px; font-weight: 800; }
.va-step p { color: var(--va-muted); font-weight: 600; }

/* Instagram */
.va-ig__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }

/* Contacto */
.va-contact { background: var(--va-ink); color: #FFFFFF; }
.va-contact__inner { display: flex; gap: 88px; padding-top: 88px; padding-bottom: 88px; }
.va-contact__info { width: 520px; flex-shrink: 0; display: flex; flex-direction: column; gap: 22px; }
.va-contact h2 { font-size: 52px; line-height: 1.05; }
.va-contact__info > p { color: var(--va-soft-on-ink); font-weight: 600; font-size: 19px; }
.va-contact__links { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.va-contact__links a { color: #FFFFFF; text-decoration: none; display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: 20px; font-weight: 700; }
.va-contact__links a:hover { color: var(--va-soft-on-ink); }

.va-form { flex-grow: 1; display: flex; flex-direction: column; gap: 18px; }
.va-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.va-form label { display: flex; flex-direction: column; gap: 8px; font-size: 16px; font-weight: 700; }
.va-form input[type="text"],
.va-form input[type="number"],
.va-form textarea {
	width: 100%;
	border-radius: 14px;
	border: 2px solid transparent;
	padding: 0 16px;
	font-family: inherit;
	font-size: 17px;
	color: var(--va-ink);
	background: #FFFFFF;
}
.va-form input[type="text"], .va-form input[type="number"] { height: 54px; }
.va-form textarea { padding: 14px 16px; resize: vertical; }
.va-form input:focus, .va-form textarea:focus { outline: none; border-color: var(--va-pink); }
.va-form .va-check { flex-direction: row; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--va-soft-on-ink); }
.va-form .va-check input { width: 20px; height: 20px; flex-shrink: 0; }
.va-form .va-check a { color: #FFFFFF; }
.va-form .va-btn { align-self: flex-start; border: 0; }
.va-hp { position: absolute; left: -9999px; }
.va-notice { padding: 14px 18px; border-radius: 14px; font-weight: 700; }
.va-notice--ok { background: #E3F6EC; color: #0F5A33; }
.va-notice--error { background: #FDE7EF; color: #8A1747; }

/* Pie */
.va-footer { padding-top: 48px; padding-bottom: 48px; color: var(--va-muted); font-size: 15px; font-weight: 600; }
.va-footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.va-footer__legal { display: flex; flex-direction: column; gap: 10px; }
.va-footer__legal img { height: 24px; width: auto; }
.va-footer nav { display: flex; flex-wrap: wrap; gap: 28px; }
.va-footer nav a { color: var(--va-muted); }

/* Ficha de viaje y páginas */
.va-single__media { border-radius: 28px; overflow: hidden; height: 460px; margin-bottom: 40px; }
.va-single__media img { width: 100%; height: 100%; object-fit: cover; }
.va-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.va-single h1 { font-size: 56px; margin: 12px 0 16px; }
.va-box { background: var(--va-mist); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 120px; }
.va-content { font-size: 18px; color: var(--va-ink-2); }
.va-content > * + * { margin-top: 1em; }
.va-content h2 { font-size: 32px; margin-top: 1.4em; }
.va-content h3 { font-size: 24px; margin-top: 1.2em; }
.va-page { max-width: 820px; }
.va-page h1 { font-size: 48px; margin-bottom: 28px; }
.va-back { display: inline-block; margin-bottom: 8px; font-weight: 700; text-decoration: none; }

/* ------------------------- Tablet ------------------------- */
@media (max-width: 1100px) {
	:root { --va-pad: 40px; }
	.va-nav ul { gap: 22px; }
	.va-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.va-cat__head { flex-direction: column; align-items: flex-start; }
	.va-contact__inner { gap: 48px; }
	.va-contact__info { width: 380px; }
	.va-single__grid { grid-template-columns: minmax(0, 1fr); }
	.va-box { position: static; }
}

/* ------------------------- Móvil ------------------------- */
@media (max-width: 820px) {
	:root { --va-pad: 20px; }
	body { font-size: 16px; }
	html { scroll-padding-top: 80px; }
	.va-header__inner { height: 68px; }
	.va-brand__heart { height: 38px; }
	.va-brand__word { height: 18px; }
	.va-menu-toggle { display: flex; }
	.va-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #FFFFFF; border-bottom: 1px solid var(--va-line); padding: 12px 20px 24px; }
	.va-nav.is-open { display: block; }
	.va-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
	.va-nav a { display: flex; align-items: center; min-height: 48px; }
	.va-nav .va-btn { justify-content: center; margin-top: 8px; }

	.va-hero { background-position: center bottom; }
	.va-hero__inner { min-height: 0; flex-direction: column-reverse; text-align: center; gap: 20px; padding-top: 36px; padding-bottom: 48px; }
	.va-hero__heart { width: 200px; margin: 0; }
	.va-hero__text { align-items: center; gap: 20px; }
	.va-hero p { font-size: 18px; }
	.va-hero__ctas { flex-direction: column; align-self: stretch; }
	.va-hero__ctas .va-btn { width: 100%; }

	.va-section { padding-top: 44px; padding-bottom: 44px; }
	.va-section h2, .va-contact h2 { font-size: 34px; }
	.va-lead { font-size: 16px; }
	.va-cat__head { gap: 16px; margin-bottom: 20px; }
	.va-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; justify-content: flex-start; }
	.va-chip { flex-shrink: 0; min-height: 44px; font-size: 15px; padding: 0 16px; }
	.va-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.va-card { border-radius: 22px; }
	.va-card__media { height: 190px; }
	.va-card__body { padding: 18px 20px 20px; gap: 8px; }
	.va-card h3 { font-size: 22px; }
	.va-card__meta { font-size: 15px; }
	.va-card__inc { font-size: 15px; }
	.va-price strong { font-size: 23px; }
	.va-btn--soft { min-height: 44px; font-size: 14px; padding: 0 14px; }

	.va-groups { flex-direction: column; align-items: stretch; padding: 32px 24px; border-radius: 28px; gap: 14px; }
	.va-groups h2 { font-size: 28px; }
	.va-groups p { font-size: 16px; }
	.va-groups .va-btn { width: 100%; }

	.va-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 24px; }
	.va-step { flex-direction: row; gap: 14px; align-items: flex-start; }
	.va-step__n { width: 44px; height: 44px; font-size: 20px; flex-shrink: 0; }
	.va-step h3 { font-size: 19px; }

	.va-ig__head { flex-direction: column; align-items: flex-start; }

	.va-contact__inner { flex-direction: column; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
	.va-contact__info { width: auto; gap: 16px; }
	.va-contact__links a { font-size: 18px; }
	.va-form__row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.va-form .va-btn { align-self: stretch; }

	.va-footer__inner { flex-direction: column; }
	.va-footer nav { gap: 16px; }

	.va-single__media { height: 240px; border-radius: 20px; margin-bottom: 24px; }
	.va-single h1 { font-size: 36px; }
	.va-page h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

@media screen and (max-width: 782px) {
	.admin-bar .va-header { top: 46px; }
}
