/* ==========================================================================
   Ficha de producto
   Hero > intro > itinerario (oscura) > servicios y tarifas (clara) > contacto
   ========================================================================== */

/* ---- Slider / bloque de medios (imagen estática, galería o video) ------ */
.et-slider { --ratio: 16 / 9; position: relative; overflow: hidden; background: var(--forest-deep); }
.et-slider__track { position: relative; width: 100%; aspect-ratio: var(--ratio); touch-action: pan-y; }

.et-slide {
	position: absolute; inset: 0; margin: 0; container-type: size;
	opacity: 0; visibility: hidden;
	transition: opacity 0.7s var(--ease-io), visibility 0s linear 0.7s;
}
.et-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.et-slide__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Embeds (YouTube / Vimeo): cubren el slide como un object-fit: cover */
.et-slide__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; }

.et-slider__ui { position: absolute; left: 50%; bottom: 18px; z-index: 4; display: flex; align-items: center; gap: 14px; transform: translateX(-50%); color: #fff; }
.et-slider__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 0; background: rgba(11, 63, 63, 0.35); color: inherit; cursor: pointer; transition: background-color 0.2s ease, transform 0.16s var(--ease-out); }
.et-slider__btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .et-slider__btn:hover { background: rgba(11, 63, 63, 0.75); } }
.et-slider__dots { display: flex; align-items: center; gap: 4px; }
/* Área táctil de 24px con un punto de 8px */
.et-slider__dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.et-slider__dot::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); transition: background-color 0.3s ease, transform 0.3s var(--ease-out); }
.et-slider__dot.is-active::before { background: #fff; transform: scale(1.25); }

/* ---- Hero -------------------------------------------------------------- */
.ficha-hero { position: relative; display: flex; align-items: flex-end; height: min(calc(100svh - var(--nav-h) - var(--topbar-h)), 860px); min-height: 520px; background: var(--forest-deep); color: #fff; overflow: hidden; }
.ficha-hero .et-slider--hero { position: absolute; inset: 0; }
.et-slider--hero .et-slider__track { height: 100%; aspect-ratio: auto; }
.et-slider--hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(11, 63, 63, 0.5) 0%, rgba(11, 63, 63, 0) 26%, rgba(11, 63, 63, 0) 42%, rgba(11, 63, 63, 0.84) 100%); }
/* Rayitas, igual que en Incoming, Programas, Trenes y el home (sin flechas ni puntos). */
.et-slider--hero .et-slider__ui { left: 50%; right: auto; bottom: 22px; transform: translateX(-50%); gap: 0; }
.et-slider--hero .et-slider__btn { display: none; }
.et-slider--hero .et-slider__dots { gap: 8px; }
.et-slider--hero .et-slider__dot { width: 22px; height: 2px; }
.et-slider--hero .et-slider__dot::before { inset: 0; border-radius: 0; background: rgba(255, 255, 255, 0.4); transform: none; }
.et-slider--hero .et-slider__dot::after { content: ""; position: absolute; inset: -14px -4px; }
.et-slider--hero .et-slider__dot.is-active::before { background: #fff; transform: none; }

.ficha-hero__content { position: relative; z-index: 3; width: 100%; padding-block: 0 clamp(80px, 13vh, 132px); pointer-events: none; }
.ficha-hero__content a { pointer-events: auto; }
.ficha-hero__title { max-width: 22ch; font-size: clamp(40px, 6.2vw, 92px); font-weight: 300; line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; text-shadow: 0 2px 30px rgba(11, 63, 63, 0.35); }
.ficha-hero__cities { margin: 22px 0 34px; font-size: 14px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9);  line-height: 1.7; }
@media (min-width: 901px) { .ficha-hero__cities { max-width: 50%; } }
.ficha-hero__pdf .icon { width: 18px; height: 18px; }
@media (max-width: 599px) {
	.ficha-hero__content { padding-bottom: 96px; }
}

/* ---- Intro: bajada + datos del viaje ----------------------------------- */
.ficha-intro { padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 88px); background: #fff; }
.ficha-intro__path { margin: 0 0 24px; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); }
.ficha-intro__lead { max-width: 46ch; margin: 0 0 clamp(36px, 5vw, 64px); font-family: var(--font-serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.5; color: var(--grey); text-wrap: pretty; }

.specs { display: flex; flex-wrap: wrap; margin: 0; padding-top: 34px; border-top: 1px solid var(--line-soft); }
.specs__item { margin: 0; padding-right: clamp(24px, 4vw, 64px); margin-right: clamp(24px, 4vw, 64px); border-right: 1px solid var(--line-soft); }
.specs__item:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.specs dt { margin: 0 0 8px; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.specs dd { margin: 0; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.3; }
@media (max-width: 719px) {
	.specs { flex-direction: column; gap: 22px; }
	.specs__item, .specs__item:last-child { margin: 0; padding: 0 0 22px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
	.specs__item:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* ---- Acordeones (details nativo, animados por ficha.js) ---------------- */
.acc { --acc-gap: var(--acc-g); --day-num-w: var(--acc-num-w); --bullet: 10px; border-bottom: 1px solid var(--line); }
.acc__sum { display: flex; align-items: baseline; gap: var(--acc-gap); padding: var(--acc-sec-py) 0; list-style: none; cursor: pointer; user-select: none; }
.acc__sum::-webkit-details-marker { display: none; }
.acc__sum::marker { content: ""; }
.acc__bullet { flex: none; align-self: center; width: var(--bullet); height: var(--bullet); border-radius: 50%; background: var(--gold); }
.acc__num { flex: none; font-family: var(--font-serif); font-style: italic; font-size: var(--acc-num-fs); line-height: 1; color: var(--gold); }
.acc__title { flex: 1; min-width: 0; font-size: var(--acc-sec-fs); font-weight: 300; line-height: 1.15; }
.acc__meta { display: flex; flex: 1; min-width: 0; flex-direction: column; }

/* Más / menos */
.acc__plus { position: relative; flex: none; align-self: center; width: 20px; height: 20px; color: var(--grey); transition: transform 0.3s var(--ease-out); }
.acc__plus::before, .acc__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: none; }
.acc__plus::after { transform: rotate(90deg); }
.acc[open] > .acc__sum .acc__plus { transform: rotate(45deg); }
.acc__panel { overflow: hidden; }
@media (hover: hover) and (pointer: fine) { .acc__sum:hover .acc__title { opacity: 0.82; } }
.acc__sum:focus-visible { outline-offset: -2px; }

/* Acordeón de día */
.acc--day .acc__sum { align-items: center; padding: var(--acc-day-py) 0; }
.acc--day .acc__num { align-self: flex-end; width: var(--day-num-w); font-size: var(--acc-num-fs); }
.acc--day .acc__title { font-size: var(--acc-day-fs); font-weight: 400; color: var(--ink); }
.acc__label { display: block; margin-bottom: 4px; font-size: var(--acc-label-fs); font-weight: 400; letter-spacing: 0.04em; color: var(--grey); }
.acc--day .acc__inner { padding: 0 0 36px calc(var(--day-num-w) + var(--acc-gap)); }

/* ---- Itinerario (sección clara) ----------------------------------------- */
.ficha-itin { --line: var(--acc-line); background: #fff; color: var(--ink); padding-block: 0 clamp(56px, 8vw, 112px); }
.ficha-itin__layout.has-media { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, var(--acc-w)); justify-content: center; gap: clamp(32px, 5vw, 96px); align-items: start; }
.ficha-itin__media { position: sticky; top: calc(var(--nav-h) + 32px); }
.ficha-itin__main { min-width: 0; width: 100%; max-width: var(--acc-w); margin-inline: auto; }
.itin-tools { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--grey); font-size: 15px; }
.itin-tools .link-btn { color: var(--forest); }
@media (hover: hover) and (pointer: fine) { .itin-tools .link-btn:hover { color: var(--aqua); } }
.ficha-itin .acc--section { border-top: 1px solid var(--line); border-bottom: 0; }
.ficha-itin .acc--section > .acc__sum { padding-block: calc(var(--acc-sec-py) + 4px); }
.ficha-itin .acc--section > .acc__sum .acc__title { color: var(--forest); }
.itin-chap { margin: 40px 0 0; padding-bottom: 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--line); }
.acc--section > .acc__panel > .acc__inner > .acc--day:first-child { border-top: 1px solid var(--line); }
.day-media { margin: 0 0 24px; max-width: 640px; }
.day-text { max-width: 68ch; color: var(--grey); font-size: var(--acc-body-fs); line-height: 1.75; }
.day-text p:last-child { margin-bottom: 0; }
.day-text strong { font-weight: 600; color: var(--grey); }
.day-hotel { margin: 22px 0 0; color: var(--forest); }

@media (max-width: 1023px) {
	.ficha-itin__layout.has-media { grid-template-columns: 1fr; }
	.ficha-itin__media { position: static; }
}

/* ---- Servicios y tarifas (sección clara) -------------------------------- */
.ficha-info { --line: rgba(17, 89, 89, 0.2); background: var(--cream); color: var(--ink); padding-block: clamp(48px, 7vw, 96px); }
.acc--light .acc__title { color: var(--forest); }
.ficha-info .acc--section:last-child { border-bottom: 0; }
.ficha-info .acc--section > .acc__inner { padding-bottom: 40px; }
.acc--light .acc__inner { padding: 0 0 44px calc(var(--bullet) + var(--acc-gap)); }

.svc-grid { display: grid; gap: clamp(28px, 4vw, 64px); }
.svc-grid--two { grid-template-columns: 1fr 1fr; }
.svc-title { margin: 0 0 18px; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.svc-list { list-style: none; }
.svc-list li { position: relative; margin-bottom: 14px; padding-left: 22px; line-height: 1.6; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.svc-list strong { font-weight: 600; color: var(--ink); }
.svc-hotels { margin-top: clamp(36px, 5vw, 56px); }
.hotel-list { list-style: none; }
.hotel-list li { display: grid; grid-template-columns: minmax(110px, 0.35fr) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hotel-list__city { font-weight: 600; }
@media (max-width: 719px) { .svc-grid--two { grid-template-columns: 1fr; } }

/* Tarifas */
.price { display: flex; flex-direction: column; gap: 8px; }
.price__pre { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.price__val { font-size: clamp(44px, 5.4vw, 72px); font-weight: 700; line-height: 1.05; color: var(--forest); }
.price__note { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tarifas { width: 100%; min-width: 640px; border-collapse: collapse; }
.tarifas th { padding: 14px 16px; border-bottom: 1px solid var(--forest); text-align: left; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.tarifas td { padding: 16px; border-bottom: 1px solid var(--line); }
.tarifas tbody tr:last-child td { border-bottom: 0; }
.tarifas.extra-table { min-width: 0; }
.extra-table th { white-space: normal; }
.extra-table td { vertical-align: top; }
.extra-block + .extra-block { margin-top: 36px; }
.extra-block p { max-width: 70ch; margin: 0 0 12px; line-height: 1.65; }
.extra-block .svc-list { max-width: 70ch; margin-bottom: 12px; }
.tarifas-note { max-width: 70ch; margin: 24px 0 0; font-size: 15px; line-height: 1.6; color: var(--grey); }

/* ---- Contacto (pie de la ficha) ---------------------------------------- */
.ficha-cta { background: var(--forest-night); color: #fff; padding-block: clamp(56px, 8vw, 112px); }
.ficha-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px; }
.ficha-cta__text { max-width: 760px; }
.ficha-cta__title { font-size: clamp(30px, 4vw, 56px); font-weight: 300; line-height: 1.12; text-wrap: balance; }
.ficha-cta .btn .icon { width: 20px; height: 20px; }
