:root {
  --noche: #07262c;
  --laguna: #0e5963;
  --turquesa: #7fd3ca;
  --nieve: #f1f7f6;
  --hielo: #dcecea;
  --puma: #f6a022;
  --puma-claro: #ffc45a;
  --tinta: #10282c;
  --margen: clamp(1.1rem, 5vw, 4.5rem);
  /* la esquina amplia repite la curva de la cola del puma del logo */
  --curva: 14px 88px 14px 14px;
  --titulo: "Sansita", Georgia, serif;
  --texto: "Albert Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--texto); font-size: 1.0625rem; line-height: 1.6; color: var(--tinta); background: var(--nieve); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 800; line-height: 1.06; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); color: var(--laguna); }
h3 { font-size: 1.65rem; }
section { scroll-margin-top: 84px; }
:focus-visible { outline: 3px solid var(--puma); outline-offset: 3px; }

.saltar { position: absolute; left: -999px; top: 0; z-index: 30; background: var(--puma); padding: .6rem 1rem; }
.saltar:focus { left: .5rem; top: .5rem; }

.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.5rem; border-radius: 999px; border: 2px solid transparent; font: 700 1rem var(--texto); text-decoration: none; cursor: pointer; }
.boton-puma { background: var(--puma); color: #231400; }
.boton-puma:hover { background: var(--puma-claro); }
.boton-linea { border-color: var(--turquesa); color: #fff; }
.boton-linea:hover { background: rgba(127, 211, 202, .16); }
.boton-laguna { background: var(--laguna); color: #fff; }
.boton-laguna:hover { background: var(--noche); }

.cabecera { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: .55rem var(--margen); background: var(--noche); color: #fff; }
.marca { margin-right: auto; }
.marca img { height: 60px; width: auto; }
.cabecera nav { display: flex; gap: 1.6rem; margin-right: .8rem; }
.cabecera nav a { text-decoration: none; font-weight: 500; }
.cabecera nav a:hover { color: var(--puma-claro); }
.idiomas { display: flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 2px; }
.idiomas button { background: none; border: 0; color: #fff; font: 700 .85rem var(--texto); min-width: 40px; min-height: 36px; border-radius: 999px; cursor: pointer; }
.idiomas button[aria-pressed="true"] { background: #fff; color: var(--noche); }
.cabecera-reservar { min-height: 42px; padding-block: .4rem; }

.portada { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(2rem, 5vw, 4.5rem) var(--margen); background: var(--noche); color: #fff; }
.portada h1 { font-size: clamp(2.8rem, 6.2vw, 5.6rem); line-height: .98; max-width: 6.2em; }
.portada p { margin-top: 1.4rem; max-width: 33em; color: var(--hielo); font-size: 1.15rem; }
.botones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.portada-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px 150px 18px 18px; }

.formas { padding: clamp(3rem, 6vw, 5.5rem) var(--margen); background: var(--hielo); }
.formas-par { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); margin-top: 2rem; max-width: 62rem; }
.forma { border-top: 5px solid var(--laguna); padding-top: 1.1rem; }
.forma:first-child { border-color: var(--puma); }
.forma p { margin-top: .4rem; max-width: 30em; }
.forma ul { list-style: none; margin-top: 1rem; }
.forma li { padding: .45rem 0; border-bottom: 1px solid #b7d5d2; font-weight: 500; }

.encabezado { margin-bottom: 2.4rem; }
.encabezado p { margin-top: .6rem; max-width: 36em; }

.tours { padding: clamp(3rem, 6vw, 5.5rem) var(--margen); }
.tour h3 { color: var(--noche); }
.tour p { margin-top: .5rem; }
.tour .boton { margin-top: 1.1rem; }
.tour .modo { font-weight: 700; color: var(--laguna); }
.tour-grande { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); margin-bottom: 3.5rem; }
.tour-grande img { width: 100%; border-radius: var(--curva); }
.tour-grande h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.tours-rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.2rem 2rem; }
.tours-rejilla .tour { display: flex; flex-direction: column; align-items: flex-start; }
.tours-rejilla img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px 56px 14px 14px; margin-bottom: 1.1rem; }
.tours-rejilla .boton { margin-top: auto; }
.tours-rejilla .tour > p:last-of-type, .tours-rejilla .datos, .tours-rejilla .recorrido { margin-bottom: 1.1rem; }
.datos { margin-top: .8rem; width: 100%; }
.datos div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid #c4dcd9; }
.datos dt { color: #47666a; }
.datos dd { font-weight: 700; }
.recorrido { margin-top: .8rem; padding-left: 1.2rem; }
.recorrido li { padding: .15rem 0 .15rem .3rem; }
.recorrido li::marker { color: var(--laguna); font-weight: 700; }

.mas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: 4.5rem; }
.mas img { width: 100%; border-radius: var(--curva); }
.mas ul { list-style: none; margin-top: 1.2rem; }
.mas li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid #c4dcd9; font-weight: 500; }
.mas li a { display: inline-flex; align-items: center; min-height: 48px; color: var(--laguna); font-weight: 700; }

.reservar { padding: clamp(3rem, 6vw, 5.5rem) var(--margen); background: var(--laguna); color: #fff; }
.reservar h2 { color: #fff; }
.planificador { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); max-width: 68rem; align-items: start; }
#formulario { display: grid; gap: 1.2rem; }
.campo { display: grid; gap: .4rem; border: 0; min-width: 0; }
.campo > span, .campo legend { font-weight: 700; }
.campo legend { margin-bottom: .4rem; }
select, input[type="date"], input[type="text"] { width: 100%; min-height: 50px; padding: .6rem .9rem; font: 500 1rem var(--texto); color: var(--tinta); background: #fff; border: 2px solid transparent; border-radius: 10px; }
.opciones { display: flex; flex-wrap: wrap; gap: .6rem; }
.opciones label { position: relative; }
.opciones input { position: absolute; opacity: 0; }
.opciones span { display: flex; align-items: center; min-height: 46px; padding: .4rem 1.1rem; border: 2px solid var(--turquesa); border-radius: 999px; cursor: pointer; font-weight: 500; }
.opciones input:checked + span { background: #fff; border-color: #fff; color: var(--noche); font-weight: 700; }
.opciones input:focus-visible + span { outline: 3px solid var(--puma); outline-offset: 3px; }
.fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; }
.contador { display: flex; align-items: center; background: #fff; color: var(--tinta); border-radius: 10px; min-height: 50px; }
.contador button { width: 50px; height: 50px; border: 0; background: none; font: 700 1.5rem var(--texto); color: var(--laguna); cursor: pointer; }
.contador button:disabled { opacity: .3; cursor: default; }
.contador output { min-width: 5.5ch; text-align: center; font-weight: 700; }
.vista { background: var(--noche); border-radius: var(--curva); padding: clamp(1.3rem, 3vw, 2.2rem); display: grid; gap: 1.1rem; }
.vista-titulo { font-weight: 700; color: var(--turquesa); }
.burbuja { background: #d9fdd3; color: #111b17; border-radius: 4px 16px 16px 16px; padding: 1rem 1.1rem; white-space: pre-line; overflow-wrap: anywhere; }

.grupos { padding: clamp(3rem, 6vw, 5.5rem) var(--margen); }
.galeria { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: dense; gap: .6rem; }
.galeria img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; border-radius: 10px; }
.galeria img.ancha { grid-column: span 2; aspect-ratio: auto; }

.nosotros { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(3rem, 6vw, 5.5rem) var(--margen); background: var(--hielo); }
.nosotros p { margin-top: 1rem; font-size: 1.2rem; max-width: 30em; }
.opiniones { display: grid; gap: 1.8rem; align-content: start; }
.opiniones blockquote { font-family: var(--titulo); font-weight: 700; font-size: 1.45rem; line-height: 1.3; border-left: 5px solid var(--puma); padding-left: 1.1rem; }
.opiniones figcaption { margin-top: .5rem; padding-left: calc(1.1rem + 5px); font-size: .95rem; color: #47666a; }

.pie { background: var(--noche); color: #fff; padding: clamp(3rem, 7vw, 6rem) var(--margen) 6rem; }
.despedida { font-family: var(--titulo); font-weight: 800; font-size: clamp(2.2rem, 9vw, 7.5rem); line-height: 1; color: var(--puma); overflow-wrap: anywhere; }
.despedida-trad { font-size: 1.25rem; color: var(--hielo); margin-top: .6rem; }
.contactos { list-style: none; display: flex; flex-wrap: wrap; gap: 0 2rem; margin-top: 2.2rem; }
.contactos a { display: inline-flex; align-items: center; min-height: 46px; overflow-wrap: anywhere; font-weight: 500; }
.contactos a:hover { color: var(--puma-claro); }
.legal { margin-top: 2rem; font-size: .9rem; color: #a9c8c6; }

.flotante { position: fixed; right: 1rem; bottom: 1rem; z-index: 15; display: flex; align-items: center; min-height: 52px; padding: 0 1.3rem; border-radius: 999px; background: #0b7a43; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.flotante.oculto { visibility: hidden; }

@media (max-width: 1050px) {
  .cabecera nav { display: none; }
  .tours-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .portada, .tour-grande, .mas, .planificador, .nosotros { grid-template-columns: minmax(0, 1fr); }
  .portada { padding-top: 1rem; }
  .portada-foto { order: -1; }
  .portada-foto img { border-radius: var(--curva); }
}

@media (max-width: 620px) {
  .cabecera { gap: .5rem; }
  .marca img { height: 46px; }
  .cabecera-reservar { padding-inline: .95rem; font-size: .92rem; }
  .formas-par, .tours-rejilla { grid-template-columns: minmax(0, 1fr); }
  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galeria img:last-child { grid-column: span 2; aspect-ratio: 4 / 3; }
  .fila { grid-template-columns: minmax(0, 1fr); }
  .contador { justify-self: start; }
}

@media (max-width: 350px) {
  .cabecera-reservar { display: none; }
}

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