/* Black Friday 2026 · Solo Patagonia. Colores y tipografía sacados de las placas del diseñador. */
:root {
  --noche: #04192c;      /* fondo: azul noche, hacia el azul del logo de Fun */
  --noche-2: #0a2a45;    /* superficies */
  --noche-3: #143f62;    /* bordes y separadores */
  --azul: #004078;       /* azul de los logos de Solo */
  --agua: #00a8b0;       /* verde agua del logo de Fun: bloques de descuento, botones y detalles */
  --agua-osc: #00777d;
  --rojo: #d22a0c;       /* "cuotas sin interés" */
  --hielo: #f5f9fc;
  --niebla: #b3c6db;     /* texto secundario sobre fondo oscuro */
  --celeste: #62c6ef;    /* foco y brillo de la insignia */

  --texto: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --h1: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem);
  --h2: clamp(1.55rem, 1.1rem + 1.8vw, 2.4rem);
  --seccion: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --rapido: 160ms;
  --suave: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noche);
  color: var(--hielo);
  font: 500 var(--texto)/1.55 Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--celeste); outline-offset: 3px; border-radius: 6px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .8rem 1.5rem;
  border-radius: 999px; border: 0;
  font: 800 1rem/1.15 Montserrat, sans-serif; text-decoration: none; text-align: center;
  transition: transform var(--rapido) var(--suave), background-color var(--rapido), box-shadow var(--rapido);
}
.btn--acento { background: var(--agua); color: var(--noche); box-shadow: 0 4px 0 var(--agua-osc); }
.btn--acento:hover { background: #1ec2c9; }
.btn--acento:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--agua-osc); }
.btn--blanco { background: var(--hielo); color: var(--azul); box-shadow: 0 4px 0 #9db7cf; }
.btn--blanco:hover { background: #fff; }
.btn--blanco:active { transform: translateY(3px); box-shadow: 0 1px 0 #9db7cf; }

/* Cifras de las promos: azul noche sobre el bloque verde agua pleno */
.cifra {
  --tam: clamp(4.8rem, 3.6rem + 4vw, 6rem);
  display: flex; align-items: flex-start;
  margin: 0;
  font-weight: 900; font-size: var(--tam); line-height: .8; letter-spacing: -.045em;
  color: var(--noche);
}
.cifra__suf { display: flex; flex-direction: column; align-items: flex-start; margin-left: .07em; letter-spacing: -.02em; }
.cifra__suf b { font-weight: 900; line-height: .82; }
.cifra__suf b:first-child { font-size: .6em; }
.cifra__suf b:last-child { font-size: .34em; margin-top: .1em; }
.cifra--cuotas { --tam: clamp(3.1rem, 2.5rem + 1.6vw, 3.6rem); letter-spacing: -.03em; }

.pastilla {
  display: inline-block; align-self: flex-start;
  padding: .35rem .9rem; border-radius: 999px;
  background: var(--azul); color: #fff; border: 2px solid var(--agua);
  font-weight: 800; font-size: .95rem;
}
.pastilla--roja { background: #fff; color: var(--rojo); border-color: var(--rojo); font-size: 1.05rem; }

/* Barra con el logo, encima de la portada */
.barra { position: absolute; inset: 0 0 auto; z-index: 3; padding: 1rem 1.25rem; display: flex; justify-content: flex-end; }
.barra__logo img { width: clamp(120px, 22vw, 190px); }
.barra__logo--fun img { width: clamp(72px, 11vw, 104px); filter: drop-shadow(0 6px 16px rgb(0 0 0 / .3)); }

/* Portada */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__foto, .hero__foto img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__foto img { object-fit: cover; object-position: 50% 50%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(4 25 44 / 0) 64%, rgb(4 25 44 / .8) 76%, var(--noche) 94%); /* el barco (62% del alto) queda sin sombra */
}
.hero__contenido {
  width: min(1160px, 100% - 2.5rem); min-height: min(88vh, 800px); min-height: min(88svh, 800px); margin: 0 auto; padding: 4.4rem 0 1.2rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
}
.hero__badge { width: clamp(200px, 54vw, 400px); margin-bottom: auto; filter: drop-shadow(0 10px 24px rgb(0 0 0 / .35)); }
.hero h1 { font-size: var(--h1); max-width: 17ch; text-shadow: 0 2px 18px rgb(4 25 44 / .5); }
.hero__bajada { max-width: 46ch; text-wrap: balance; color: var(--hielo); font-weight: 600; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); }
@media (prefers-reduced-motion: no-preference) {
  .hero__badge { animation: badge 700ms var(--suave) 120ms both; }
  @keyframes badge { from { opacity: 0; transform: rotate(-6deg) scale(.86); } }
}

/* Promos: seis tarjetas iguales, cada una con su foto sin nada encima */
.promos { padding-block: clamp(1.25rem, .8rem + 2vw, 2.5rem) calc(var(--seccion) * .7); }
.promos h2, .excursiones h2 { font-size: var(--h2); }
.promos__bajada { margin-top: .4rem; color: var(--niebla); font-weight: 500; font-size: .85rem; } /* aviso de cupos, chico */
.promos__grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
.promo {
  display: flex; flex-direction: column; gap: .9rem;
  padding: .7rem .7rem 1.3rem; border-radius: 24px;
  background: var(--noche-2); border: 1px solid var(--noche-3);
}
.promo > :not(.promo__foto) { margin-inline: .6rem; }
.promo__foto { position: relative; }
.promo__foto img { width: 100%; aspect-ratio: 7 / 4; object-fit: cover; border-radius: 16px; }
.promo__cinta {
  position: absolute; top: .8rem; right: -.35rem; transform: rotate(3deg);
  padding: .3rem .8rem; border-radius: 6px; background: var(--agua); color: var(--noche);
  font-weight: 900; font-size: .85rem; box-shadow: 0 3px 0 var(--agua-osc);
}
/* Nombre de la excursión debajo de la foto (no tapa nada) y el combo o la modalidad en celeste */
.promo__nombre { margin-top: .35rem; font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); }
.promo__nombre span { display: block; margin-top: .3rem; font-size: .95rem; font-weight: 800; letter-spacing: 0; line-height: 1.3; color: #5fd8dd; }
.promo__datos { list-style: none; padding: 0; margin-block: 0; display: flex; flex-wrap: wrap; align-content: flex-start; align-items: flex-start; gap: .4rem; }
.promo__datos li { padding: .2rem .65rem; border: 1px solid rgb(245 249 252 / .35); border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--niebla); }
.promo__oferta { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .7rem; margin-top: .4rem; padding: 1rem 1.1rem 1.1rem; border-radius: 16px; background: var(--agua); }
.promo > .promo__oferta { margin-inline: 0; } /* mismo ancho que la foto */
.promo__previa { font-weight: 800; font-size: 1rem; color: var(--noche); margin-bottom: -.2rem; }
.promo__oferta .pastilla--roja { background: var(--noche); color: #fff; border-color: var(--noche); }
.promo__extra { font-size: .9rem; color: var(--niebla); border-top: 1px solid var(--noche-3); padding-top: .8rem; }
.promo .btn { margin-top: auto; }
.precio { display: grid; gap: .2rem; margin-top: .3rem; }
.precio__antes { color: var(--niebla); font-weight: 600; }
.precio__antes del { text-decoration-thickness: 2px; text-decoration-color: var(--agua); }
.precio__ahora { font-weight: 900; font-size: clamp(1.6rem, 1.35rem + 1vw, 2rem); line-height: 1.15; letter-spacing: -.01em; }
.precio__ahora small { font-size: .5em; font-weight: 700; color: var(--niebla); letter-spacing: 0; }
.precio__nota { color: var(--niebla); font-weight: 600; font-size: .95rem; }
.ahorro { width: fit-content; margin-block: .3rem .1rem; padding: .2rem .7rem; border-radius: 999px; background: rgb(0 168 176 / .18); color: #7fe6e9; font-weight: 800; font-size: .9rem; }
.promo .btn { width: 100%; margin-inline: 0; } /* mismo ancho que la foto y el bloque de descuento, sin salirse de la tarjeta */

/* Detalle de las dos navegaciones */
.excursiones { padding-block: calc(var(--seccion) * .7) var(--seccion); }
.excursiones__grid { display: grid; gap: 2.5rem; margin-top: 2rem; }
.excursion h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); max-width: 22ch; }
.excursion__dato { margin-top: .4rem; color: var(--niebla); font-weight: 600; }
.incluye { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .55rem; }
.incluye li { position: relative; padding-left: 1.6rem; color: var(--niebla); }
.incluye li b { color: var(--hielo); }
.incluye li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--agua); box-shadow: 0 0 0 3px rgb(0 168 176 / .22); }

/* Pie: la página cierra con la insignia de Black Friday, como abre */
.pie { padding: calc(var(--seccion) * .8) 0 6.5rem; border-top: 1px solid var(--noche-3); background: radial-gradient(60% 70% at 50% 35%, rgb(0 168 176 / .14), transparent 70%); }
.pie__wrap { display: grid; justify-items: center; gap: 1.6rem; text-align: center; }
.pie__badge { width: clamp(240px, 64vw, 440px); filter: drop-shadow(0 10px 24px rgb(0 0 0 / .35)); }
.pie p { color: var(--niebla); font-size: .95rem; max-width: 46ch; }
.pie__logo img { width: 160px; }
.pie__logo--fun img { width: 112px; }

/* WhatsApp flotante */
.wsp {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 10;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; box-shadow: 0 6px 18px rgb(0 0 0 / .35);
  transition: transform var(--rapido) var(--suave);
}
.wsp:hover { transform: scale(1.06); }
.wsp svg { width: 32px; height: 32px; fill: #fff; }

@media (min-width: 600px) {
  .promos__grid { grid-template-columns: 1fr 1fr; }
  .promo__oferta { min-height: 9rem; } /* bloques de igual alto: alinea los precios entre tarjetas vecinas */
  /* Las 6 partes de cada tarjeta (foto, nombre, datos, descuento, precio, botón) alineadas con las tarjetas vecinas */
  @supports (grid-template-rows: subgrid) {
    .promo { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: .9rem; }
    .promo .btn { align-self: end; }
  }
  .excursiones__grid { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
}
@media (min-width: 900px) {
  .excursiones__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; } /* las 3 excursiones una al lado de la otra */
}
@media (min-width: 760px) {
  .barra { padding: 1.4rem 2rem; }
  .hero__contenido { justify-content: flex-end; min-height: min(76vh, 700px); min-height: min(76svh, 700px); padding: 7rem 0 2.5rem; }
  .hero__badge { margin-bottom: .4rem; }
  .hero__foto img { object-position: 73% 55%; } /* el barco queda a la derecha del texto */
  .hero::after { background: linear-gradient(90deg, rgb(4 25 44 / .88) 0%, rgb(4 25 44 / .55) 40%, rgb(4 25 44 / 0) 64%), linear-gradient(180deg, rgb(4 25 44 / 0) 82%, var(--noche) 100%); }
}
@media (min-width: 1000px) {
  .promos__grid { grid-template-columns: repeat(3, 1fr); }
}
/* Terminada la promo (cuenta.js agrega la clase): sin botones de compra hasta que se redirija la carpeta */
.bf-terminado .promo .btn { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .wsp { transition: none; }
}
