/* ==========================================================================
   Home principal
   Valores tomados de home-preview.html. Todo anclado a .home.
   ========================================================================== */
.home { --section-y: clamp(64px, 8vw, 128px); --container: 1360px; }
.home .wrap { max-width: var(--container); padding-inline: 40px; }
@media (max-width: 720px) { .home .wrap { padding-inline: 20px; } }
.home a { text-decoration: none; }
:where(.home) :where(h1, h2, h3, p) { margin: 0; }
.home .ph { display: block; position: relative; overflow: hidden; background: linear-gradient(135deg, #d8d4cb 0%, #c7c2b6 100%); object-fit: cover; }
.home img.ph, .home video.ph { width: 100%; height: 100%; }

/* Botones */
.home .btn { gap: 10px; padding: 14px 30px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.16s var(--ease-out); }
.home .btn--dark { color: var(--forest); background: transparent; border-color: currentColor; }
.home .btn--light { color: #fff; background: transparent; border-color: currentColor; }
.home .btn--solid { color: #fff; background: var(--forest); border-color: var(--forest); }
.home .btn--aqua { color: #fff; background: var(--aqua); border-color: var(--aqua); }
@media (hover: hover) and (pointer: fine) {
	.home .btn--dark:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
	.home .btn--light:hover { background: #fff; border-color: #fff; color: var(--forest); }
	.home .btn--solid:hover { background: var(--aqua); border-color: var(--aqua); color: #fff; }
	.home .btn--aqua:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
}
.btn-row { display: flex; justify-content: center; margin-top: 44px; }

/* Secciones */
.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.section-head--center { justify-content: center; text-align: center; margin-bottom: 32px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-weight: 400; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.005em; color: var(--forest); }
.section-head > p { max-width: 420px; color: var(--grey); font-family: var(--font-serif); font-size: 17px; font-weight: 400; line-height: 1.5; }
@media (max-width: 560px) { .section-head { flex-direction: column; align-items: flex-start; } }

/* ---- Hero --------------------------------------------------------------- */
.home-hero { position: relative; height: min(calc(100svh - var(--nav-h) - var(--topbar-h)), 860px); min-height: 560px; overflow: hidden; background: var(--forest-deep); }
.home-hero .hero-slide { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; pointer-events: none; container-type: size; transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1); }
.home-hero .hero-slide.is-active { opacity: 1; z-index: 1; pointer-events: auto; }
.home-hero .hero-slide > .ph { position: absolute; inset: 0; transform: scale(1.06); transition: transform 7s linear; }
.home-hero .hero-slide.is-active > .ph { transform: scale(1); }
.home-hero .ph-embed { position: absolute; left: 50%; top: 50%; width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.home-hero .hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(160deg, rgba(17, 89, 89, 0.55) 0%, rgba(4, 20, 20, 0.75) 100%); }
.home-hero .hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: 90px; color: #fff; text-align: center; }
.hero-eyebrow { margin-bottom: 18px; font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--mint); }
.hero-title { max-width: 920px; margin: 0 auto 20px; font-size: clamp(34px, 5.4vw, 68px); font-weight: 300; line-height: 1.12; letter-spacing: -0.005em; text-wrap: balance; }
.hero-lead { max-width: 480px; margin: 0 auto 36px; font-family: var(--font-serif); font-size: 19px; color: rgba(255, 255, 255, 0.88); }
.hero-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.hero-dots { position: absolute; bottom: 32px; left: 50%; z-index: 3; display: flex; gap: 10px; transform: translateX(-50%); }
.hero-dot { position: relative; width: 26px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(255, 255, 255, 0.4); transition: background-color 0.3s ease; }
.hero-dot.is-active::before { background: #fff; }
@media (max-width: 720px) { .home-hero .hero-content { padding-bottom: 76px; } }

/* ---- Cards de producto (Experiencias) ------------------------------------ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; }
.card-img { display: block; position: relative; aspect-ratio: 4 / 5; margin-bottom: 18px; overflow: hidden; }
.card-img .ph { position: absolute; inset: 0; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
@media (hover: hover) and (pointer: fine) { .card:hover .card-img .ph:not(video) { transform: scale(1.045); } }
.card-body h3 { margin-bottom: 4px; font-size: 23px; font-weight: 400; }
.card-body h3 a { color: inherit; }
.card-meta { margin-bottom: 14px; font-size: 16px; color: var(--grey); }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid #eee; }
.card-price { text-align: right; font-size: 12px; color: var(--grey); }
.card-price strong { display: block; font-size: 17px; font-weight: 600; color: var(--forest); }
.card-ver { padding: 8px 16px; border: 1px solid var(--forest); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--forest); transition: background-color 0.25s ease, color 0.25s ease; }
@media (hover: hover) and (pointer: fine) { .card-ver:hover { background: var(--forest); color: #fff; } }

/* ---- Colecciones y Exclusivos --------------------------------------------- */
.colecciones-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.exclusivos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.coleccion-card { position: relative; aspect-ratio: 3 / 4.3; overflow: hidden; }
.exclusivos-grid .coleccion-card { aspect-ratio: 4 / 3; }
.coleccion-card__link { position: absolute; inset: 0; display: block; color: inherit; }
.coleccion-card .ph { position: absolute; inset: 0; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
@media (hover: hover) and (pointer: fine) { .coleccion-card:hover .ph { transform: scale(1.06); } }
.coleccion-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 28px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 55%); }
.coleccion-overlay__title { display: block; margin-bottom: 18px; font-size: 24px; font-weight: 400; line-height: 1.2; color: #fff; }
.coleccion-card:hover .coleccion-overlay .btn--light { background: #fff; border-color: #fff; color: var(--forest); }
@media (max-width: 960px) { .cards-grid, .colecciones-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid, .colecciones-grid, .exclusivos-grid { grid-template-columns: 1fr; } }

/* ---- Destacados ------------------------------------------------------------ */
.destacados-section { position: relative; padding-block: clamp(40px, 5vw, 64px); background: linear-gradient(100deg, #5f4726 0%, #8a6b3f 32%, var(--gold) 100%); }
.destacados-flex { display: flex; align-items: stretch; }
.destacados-panel { position: relative; z-index: 2; flex: 0 0 320px; display: flex; flex-direction: column; justify-content: center; padding-left: max(40px, calc((100vw - 1360px) / 2 + 40px)); padding-right: 48px; }
.destacados-panel .eyebrow { color: var(--mint); }
.destacados-panel .eyebrow__dot { background: var(--mint); }
.destacados-panel h2 { margin-bottom: 18px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; letter-spacing: -0.005em; color: #fff; }
.destacados-panel p:not(.eyebrow) { max-width: 260px; font-family: var(--font-serif); font-size: 17px; color: rgba(255, 255, 255, 0.8); }
.destacados-scroll-wrap { position: relative; flex: 1; min-width: 0; }
.destacados-track { display: flex; gap: 20px; padding: 6px 40px 6px 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.destacados-track::-webkit-scrollbar { display: none; }
.destacado-card { position: relative; flex-shrink: 0; min-width: 320px; aspect-ratio: 3 / 4.2; overflow: hidden; scroll-snap-align: start; color: #fff; }
.destacado-card .ph { position: absolute; inset: 0; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
@media (hover: hover) and (pointer: fine) { .destacado-card:hover .ph:not(video) { transform: scale(1.07); } }
.destacado-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.05) 45%, rgba(0, 0, 0, 0.18) 100%); transition: background 0.4s ease; }
.destacado-card:hover .destacado-scrim, .destacado-card:focus-visible .destacado-scrim { background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 62%, rgba(0, 0, 0, 0.28) 100%); }
.destacado-nights { position: absolute; top: 18px; right: 18px; z-index: 2; font-size: 12px; font-weight: 500; letter-spacing: 0.03em; }
.destacado-btn { position: absolute; left: 22px; bottom: 22px; z-index: 3; display: inline-flex; align-items: center; padding: 11px 20px; border: 1px solid rgba(255, 255, 255, 0.85); background: rgba(0, 0, 0, 0.15); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; transition: background-color 0.25s ease, color 0.25s ease; }
.destacado-card:hover .destacado-btn, .destacado-card:focus-visible .destacado-btn { background: #fff; color: var(--forest); }
.destacado-reveal { position: absolute; left: 22px; right: 22px; bottom: 70px; z-index: 2; display: block; opacity: 0; transform: translateY(14px); transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.destacado-card:hover .destacado-reveal, .destacado-card:focus-visible .destacado-reveal { opacity: 1; transform: none; }
@media (hover: none) { .destacado-reveal { opacity: 1; transform: none; } }
.destacado-eyebrow { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.8); }
.destacado-title { display: block; margin-bottom: 8px; font-size: 20px; font-weight: 400; line-height: 1.18; }
.destacado-price { display: block; font-size: 14px; font-weight: 600; color: var(--mint); }
.destacado-viewmore { display: flex; flex-shrink: 0; align-items: center; justify-content: center; min-width: 190px; aspect-ratio: 3 / 4.6; border: 1px solid rgba(255, 255, 255, 0.4); scroll-snap-align: start; transition: border-color 0.25s ease; }
.destacado-viewmore a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; font-size: 14px; font-weight: 500; color: #fff; text-align: center; }
.destacado-viewmore-arrow { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 50%; font-size: 16px; transition: background-color 0.25s ease, color 0.25s ease; }
.destacado-viewmore:hover { border-color: rgba(255, 255, 255, 0.75); }
.destacado-viewmore:hover .destacado-viewmore-arrow { background: #fff; color: var(--forest); }
.destacados-arrow { position: absolute; top: 50%; right: 6px; z-index: 3; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; background: rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font: inherit; font-size: 18px; cursor: pointer; transform: translateY(-50%); transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.3s ease; }
.destacados-arrow:hover { background: #fff; color: var(--forest); border-color: #fff; }
.destacados-arrow--prev { left: 6px; right: auto; opacity: 0; pointer-events: none; }
.destacados-arrow--prev.is-visible { opacity: 1; pointer-events: auto; }
@media (max-width: 900px) {
	.destacados-flex { flex-direction: column; }
	.destacados-panel { flex: none; padding: 0 20px 28px; }
	.destacados-track { padding-left: 20px; }
	.destacados-arrow { display: none; }
}

/* ---- Buscador (ejemplo hasta conectar la API) --------------------------- */
.be-tabs { display: flex; }
.be-tab { display: flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 3px 3px 0 0; background: rgba(17, 89, 89, 0.55); font-size: 14.5px; font-weight: 600; color: #fff; cursor: pointer; }
.be-tab.active { background: var(--forest); }
.be-tab svg { width: 19px; height: 19px; flex-shrink: 0; }
.be-panel { position: relative; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 22px; padding: 26px 28px 20px; border-radius: 0 0 2px 2px; background: var(--forest); }
.be-field { display: flex; flex-direction: column; gap: 8px; }
.be-field.be-destino { flex: 1; min-width: 220px; }
.be-field.be-llegada, .be-field.be-salida { width: 150px; }
.be-field.be-noches, .be-field.be-hab, .be-field.be-adultos, .be-field.be-ninos { width: 90px; }
.be-field.be-pais { width: 170px; }
.be-field label { font-size: 13px; font-weight: 600; color: #fff; }
.be-input, .be-select, .be-date { padding: 12px 14px; border: 1px solid #c7d6d3; border-radius: 2px; background: #fff; font: inherit; font-size: 14px; color: var(--forest); }
.be-date, .be-select { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.be-input { width: 100%; }
.be-input::placeholder { color: #7c8b88; }
.be-icon { width: 15px; height: 15px; margin-left: 8px; opacity: 0.55; flex-shrink: 0; }
.be-side { display: flex; flex-direction: column; justify-content: flex-end; align-self: stretch; gap: 14px; }
.be-mas { display: flex; align-items: center; gap: 6px; width: fit-content; font-size: 13px; font-weight: 600; color: #fff; cursor: pointer; }
.be-mas svg { width: 12px; height: 12px; }
.be-cta { padding: 13px 30px; border: 0; border-radius: 2px; background: var(--aqua); font: inherit; font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; cursor: pointer; transition: background-color 0.25s ease; }
.be-cta:hover { background: var(--forest); }
@media (max-width: 900px) {
	.be-tab span { display: none; }
	.be-panel { flex-direction: column; align-items: stretch; }
	.be-field.be-destino, .be-field.be-llegada, .be-field.be-salida, .be-field.be-noches, .be-field.be-hab, .be-field.be-adultos, .be-field.be-ninos, .be-field.be-pais { width: 100%; }
	.be-side { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
	.home-hero .hero-slide > .ph { transform: none; transition: none; }
	.home-hero .hero-slide { transition-duration: 0.01s; }
}

/* Motor de reservas (Bookingmotor): trae su propio estilo; acá solo el marco */
.motor-sec { position: relative; z-index: 5; background: var(--cream); padding-top: 56px; padding-bottom: 56px; }
.motor-sec .section-head { margin-bottom: 28px; }
.motor-box { max-width: 1120px; margin: 0 auto; }
.motor-sec .section-head--center { align-items: center; }
@media (max-width: 768px) {
	.motor-sec { padding-top: 36px; padding-bottom: 36px; }
}
