/* =====================================================================
   Destinos Perú Travel — capa de diseño moderno (opcional).
   Se activa/desactiva en content/sitio.json → "diseno": { "moderno": true | false }.
   No cambia textos ni estructura: solo pule el aspecto y la experiencia de uso.
   ===================================================================== */
:root {
  --sombra: 0 18px 40px -24px rgba(60, 30, 20, .45);
  --sombra-suave: 0 10px 30px -18px rgba(60, 30, 20, .35);
  --crema: #faf6f2;
  --rojo-suave: #f6ebe8;
  --radio: 16px;
  --facil: cubic-bezier(.2, .7, .2, 1);
}
::selection { background: var(--rojo); color: #fff; }

/* ---------- cabecera: se vuelve sólida y compacta al bajar */
.cabecera--claro, .cabecera--blanco { position: fixed; top: 0; left: 0; right: 0; transition: background .35s var(--facil), box-shadow .35s, padding .35s; }
.cabecera--blanco { position: sticky; }
.cabecera__fila { transition: padding .35s var(--facil); }
.cabecera__logo img { transition: width .35s var(--facil); }
.cabecera.fija { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .35); }
.cabecera.fija .cabecera__fila { padding: 10px 0; align-items: center; }
.cabecera.fija .cabecera__logo { width: 84px; }
.cabecera--claro.fija .menu > ul > li > a { color: var(--gris); }
.cabecera--claro.fija .menu > ul > li.actual > a { color: var(--rojo); }
.cabecera--claro.fija .cabecera__hamburguesa span { background: var(--gris); }
.menu > ul > li:not(.menu__idioma):not(.menu__login) > a { position: relative; }
@media (min-width: 981px) {
  .menu > ul > li:not(.menu__idioma):not(.menu__login):not(.menu__desplegable) > a::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--facil); }
  .menu > ul > li > a:hover::after, .menu > ul > li.actual > a::after { transform: scaleX(1); }
  .menu__desplegable > ul { border-radius: 12px; border: 0; padding: 10px; box-shadow: var(--sombra); }
  .menu__desplegable > ul a { border-radius: 8px; }
  .menu__desplegable > ul a:hover { background: var(--rojo-suave); color: var(--rojo); }
}
.menu__idioma img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .2s; }
.menu__idioma a:hover img { transform: translateY(-1px) scale(1.08); }
.menu__idioma a[aria-current] img { outline: 2px solid rgba(255, 255, 255, .8); outline-offset: 1px; }
@media (max-width: 980px) {
  .cabecera.fija .cabecera__logo { width: 34%; max-width: 120px; }
  .menu { border-radius: 14px; border: 0; box-shadow: var(--sombra); }
}
/* las páginas con cabecera fija blanca no necesitan espacio extra; la transparente queda sobre el héroe */
.pagina-tour .tour-hero-seccion { padding-top: 16px; }

/* ---------- carrusel */
.slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, .12) 55%, rgba(0, 0, 0, 0) 100%); pointer-events: none; }
.slide::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(to top, rgba(0, 0, 0, .25), transparent); pointer-events: none; }
.slide__texto { position: relative; z-index: 1; }
.slide.activo .slide__antetitulo, .slide.activo .slide__titulo, .slide.activo .slide__bajada, .slide.activo .slide__boton { animation: subir .9s var(--facil) both; }
.slide.activo .slide__titulo { animation-delay: .08s; }
.slide.activo .slide__bajada { animation-delay: .16s; }
.slide.activo .slide__boton { animation-delay: .24s; }
.slide { transition: opacity 1s ease, visibility 1s; }
.slide__boton { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); transition: transform .25s var(--facil), box-shadow .25s, background .25s, color .25s; }
.slide__boton:hover { transform: translateY(-2px); background: var(--rojo); color: #fff !important; }
.slide--azul .slide__boton:hover { background: #4a7a93; }
.slider__flecha { width: 48px; height: 48px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .25s; }
.slider__flecha:hover { background: rgba(255, 255, 255, .3); }
.slider__puntos { gap: 6px; bottom: 26px; }
.slider__puntos button { width: 8px; height: 8px; transition: width .35s var(--facil), background .3s; }
.slider__puntos button[aria-current="true"] { width: 26px; border-radius: 6px; }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- títulos y botones */
.texto-home h2.titulo-amplio, .titulo-categoria, .titulo-gris, .testimonios-title { position: relative; }
.texto-centro > h2.titulo-amplio::after, .titulo-gris::after, h2.titulo-categoria.texto-centro::after { content: ''; display: block; width: 46px; height: 3px; border-radius: 3px; background: var(--rojo); margin: 12px auto 0; opacity: .85; }
.boton { transition: background .3s var(--facil), color .3s, border-color .3s, transform .3s var(--facil), box-shadow .3s; }
.boton:hover { padding: 0.3em 1em; transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .5); }
.boton--rojo:hover { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.boton--azul:hover { background: var(--azul); border-color: var(--azul); color: #fff; }
.boton--blanco:hover { background: #fff; color: var(--rojo); border-color: #fff; }
#cargar-mas-tours:hover, .review-toggle-btn:hover { background: var(--oscuro); color: #fff; border-color: var(--oscuro); }

/* ---------- tarjetas de tours */
.tour-explore-card, .tour-grid-card { box-shadow: var(--sombra-suave); isolation: isolate; transition: transform .45s var(--facil), box-shadow .45s; }
.tour-explore-card:hover, .tour-grid-card:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.tour-explore-overlay, .tour-grid-overlay { background: linear-gradient(to top, rgba(10, 5, 3, .78) 0%, rgba(10, 5, 3, .25) 45%, rgba(0, 0, 0, 0) 75%); }
.tour-explore-title, .tour-grid-title { text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.tour-explore-icon, .tour-grid-icon { background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s, color .3s, transform .3s var(--facil); }
.tour-explore-card:hover .tour-explore-icon, .tour-grid-card:hover .tour-grid-icon { background: #fff; color: var(--rojo); border-color: #fff; transform: rotate(-8deg) scale(1.08); }
.tour-category-badge { background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .4); }

/* ---------- razones, testimonios */
.video-home { box-shadow: var(--sombra); }
.video-home__play i { transition: transform .35s var(--facil); }
.video-home__play:hover i { transform: scale(1.12); }
.feature-item { border: 1px solid transparent; }
.feature-item:not(:hover):not(.hover-default) { border-color: #f1ebe7; }
.resena { border: 0; border-radius: var(--radio); box-shadow: var(--sombra-suave); padding: 22px; }
.resenas__pista { padding: 10px 6px 18px; }
.resenas__flecha { box-shadow: var(--sombra-suave); border: 0; transition: background .2s, color .2s; }
.resenas__flecha:hover { background: var(--rojo); color: #fff; }
.review-options a { box-shadow: var(--sombra-suave); }
.seccion-cta { background-attachment: fixed; }
@supports (-webkit-touch-callout: none) { .seccion-cta { background-attachment: scroll; } }

/* ---------- nosotros */
.imagen-redonda { border-radius: var(--radio); box-shadow: var(--sombra); }
.icon-wrapper { border-color: #e4d8d2; background: #fff; color: var(--rojo); transition: background .3s, color .3s, transform .3s var(--facil); }
.horizontal-features .feature:hover .icon-wrapper { background: var(--rojo); color: #fff; border-color: var(--rojo); transform: translateY(-3px); }
.contact-card { border-radius: 18px; }
.contact-card .contact-icon { color: var(--rojo); }
.form-contacto-card { border-radius: 22px; border-top: 4px solid var(--rojo); }
.form-contacto-card input:focus, .form-contacto-card textarea:focus, .form-contacto-card select:focus { border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(161, 58, 47, .12); }
.form-contacto-card button { transition: background .3s, transform .3s var(--facil), box-shadow .3s; }
.form-contacto-card button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(161, 58, 47, .8); }
.hero-pagina { position: relative; }
.hero-pagina::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .2)); pointer-events: none; }
.hero-pagina .fila { z-index: 1; }

/* ---------- ficha de tour */
.tour-hero { box-shadow: var(--sombra); }
.tour-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .28), rgba(0, 0, 0, .05) 70%); pointer-events: none; }
.tour-hero__centro { position: relative; z-index: 1; }
.jono-tablinks a { box-shadow: 0 -6px 16px -10px rgba(0, 0, 0, .4); }
.jono-tablinks a:hover { background: var(--crema); }
.jono-tour-info-box i { border-color: #e4d8d2; background: var(--crema); color: var(--rojo); }
.icon-item { border-color: #e4d8d2; color: var(--rojo); }
.icon-item:hover, .icon-item:focus { background: var(--rojo); color: #fff; border-color: var(--rojo); }
.itinerario-acordeon .toggle { transition: background .25s; }
.itinerario-acordeon .toggle:hover { background: #e5ddd4; }
.itinerario-acordeon .toggle[aria-expanded="true"] { background: var(--rojo); color: #fff; border-radius: 12px 12px 0 0; }
.itinerario-acordeon .toggle[aria-expanded="true"] .toggle-icon { background: #fff; color: var(--rojo); }
.itinerario-acordeon .contenido-dia { border-left: 0; background: var(--crema); border-radius: 0 0 12px 12px; animation: subir .4s var(--facil); }
.jono-galeria-fancybox a { box-shadow: var(--sombra-suave); }
.jono-galeria-fancybox img { transition: transform .6s var(--facil); }
.jono-galeria-fancybox a:hover img { transform: scale(1.06); }
.jono-tour-mapa iframe { box-shadow: var(--sombra-suave); }
.form-consulta { border-top: 4px solid var(--rojo); box-shadow: var(--sombra); }
.form-consulta input:focus { border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(161, 58, 47, .12); }
.form-consulta button { transition: background .3s, transform .3s var(--facil), box-shadow .3s; }
.form-consulta button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(161, 58, 47, .9); }
.comentario__avatar { background: var(--rojo); color: #fff; }
.form-comentario textarea:focus, .form-comentario input:focus { border-color: var(--rojo); outline: none; box-shadow: 0 0 0 3px rgba(161, 58, 47, .12); }
.form-comentario button { border-radius: 10px; border-color: var(--rojo); color: var(--rojo); transition: background .25s, color .25s; }
.form-comentario button:hover { background: var(--rojo); color: #fff; }
.tour-h { scroll-margin-top: 110px; }
.jono-itinerario { scroll-margin-top: 110px; }
/* botón fijo "Consultar" en celular */
.consultar-flotante { display: none; }
@media (max-width: 980px) {
  .consultar-flotante { display: flex; position: fixed; left: 84px; right: 14px; bottom: 14px; z-index: 8999; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 26px; background: var(--rojo); color: #fff; font: 600 15px var(--mont); box-shadow: 0 14px 30px -12px rgba(161, 58, 47, .9); transform: translateY(120%); transition: transform .35s var(--facil); padding: 0; }
  .consultar-flotante.visible { transform: none; }
}

/* ---------- pie */
.pie { background: var(--crema); margin-top: 40px; border-top: 1px solid #efe6df; }
.pie__redes a { background: #fff; box-shadow: var(--sombra-suave); transition: transform .25s var(--facil), background .25s, color .25s; }
.pie__redes a:hover { background: var(--rojo); color: #fff; transform: translateY(-3px); }
.pie__menu .menu__desplegable > ul { border-radius: 12px; border-top: 0; box-shadow: var(--sombra); padding: 10px; }

/* ---------- WhatsApp y volver arriba */
.whatsapp { animation: latido 2.8s ease-in-out 3s 3; }
@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.subir { position: fixed; right: 18px; bottom: 20px; z-index: 8990; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--rojo); box-shadow: var(--sombra); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--facil); font-size: 16px; }
.subir.visible { opacity: 1; transform: none; pointer-events: auto; }
.subir:hover { background: var(--rojo); color: #fff; }
@media (max-width: 980px) { .pagina-tour .subir { display: none; } }

/* ---------- aparición suave al bajar */
.revelar { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--facil), transform .8s var(--facil); }
.revelar.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar { opacity: 1; transform: none; }
  .seccion-cta { background-attachment: scroll; }
}

/* ---------- ajustes finos para celular */
/* los textos de ayuda de los íconos (invisibles) ensanchaban la página y el celular la achicaba */
.tour-cuerpo, main { overflow-x: clip; }
@media (max-width: 767px) {
  .icon-item::after { white-space: normal; width: max-content; max-width: 160px; text-align: center; }
  .jono-tablinks { right: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .jono-tablinks::-webkit-scrollbar { display: none; }
  .jono-tablinks a { flex: none; padding: 8px 9px; font-size: 11.5px; }
  /* campos de 16px: con menos, el iPhone acerca la pantalla al tocarlos */
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select:not([data-no-a]):not([data-no-b]):not([data-no-c]), textarea:not([data-no-a]):not([data-no-b]):not([data-no-c]) { font-size: 16px; } /* los :not() solo suben la prioridad */
}
