/* ==========================================================
   Puerto Los Mástiles — estilos de la landing
   Paleta y tipografías según Manual Normativo de Marca
   ========================================================== */

:root {
  /* Paleta de marca */
  --azul: #19234D;
  --turquesa: #25A7CC;      /* el manual indica #e17480 por error; se usa el color real del swatch */
  --rosa: #EA5D54;
  --verde-oscuro: #035F6D;
  --verde: #1A909C;
  --naranja: #EF8844;
  --naranja-2: #EFA336;
  --amarillo: #FBD644;

  /* Neutros de apoyo */
  --crema: #FBF7F0;
  --arena: #F3EADB;
  --dorado-1: #E9D8B8;
  --dorado-2: #B99A6B;
  --texto: #2A3050;
  --texto-suave: #5B6180;
  --blanco: #fff;

  --font-display: "Jomhuria", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 12px 30px -12px rgba(25, 35, 77, .28);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--azul); }
p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--azul); color: #fff; padding: .6rem 1rem; z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .7;
  letter-spacing: .005em;
}
.h2 { font-size: clamp(3.2rem, 7vw, 5.2rem); margin-bottom: 1.2rem; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: .8rem;
}
.eyebrow--light { color: var(--amarillo); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 .95rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--sm { padding: .65rem 1.2rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn--rosa { background: var(--rosa); color: #fff; }
.btn--rosa:hover { background: #dc4d44; }
.btn--amarillo { background: var(--amarillo); color: var(--azul); }
.btn--azul { background: var(--azul); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow .3s, height .3s;
}
.header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(25,35,77,.45); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header__logo img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--azul);
  position: relative; padding-block: .3rem; white-space: nowrap;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--rosa); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 1200px) {
  .nav-toggle {
    display: grid; gap: 5px; place-content: center;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--azul); transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: .5rem 1.25rem 1.5rem;
    box-shadow: 0 20px 30px -20px rgba(25,35,77,.4);
    transform: translateY(-120%); visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--arena); font-size: 1rem; }
  .nav .btn { margin-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 8rem;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero picture, .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__bg { object-fit: cover; object-position: 60% 50%; animation: heroZoom 18s var(--ease) both; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(25,35,77,.82) 0%, rgba(25,35,77,.55) 45%, rgba(25,35,77,.05) 80%),
    linear-gradient(0deg, rgba(3,95,109,.45) 0%, transparent 40%);
}
.hero__content { max-width: 1200px; }
.hero__title {
  color: #fff;
  font-size: clamp(4.4rem, 11vw, 8.6rem);
  margin-bottom: 1.4rem;
  text-shadow: 0 4px 30px rgba(0,0,0,.25);
}
.hero__lead { max-width: 34rem; font-size: clamp(1rem, 1.6vw, 1.15rem); opacity: .95; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }

@media (max-width: 600px) {
  .hero__eyebrow-sep { display: none; }
  .hero__eyebrow-lugar { display: block; margin-top: .35rem; }
}

@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.wave { position: absolute; left: 0; width: 100%; height: clamp(50px, 8vw, 120px); display: block; }
.wave--bottom { bottom: -1px; }

/* ---------- Stats ---------- */
.stats { background: var(--crema); padding: 1rem 0 3rem; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1rem .5rem;
  border-right: 1px solid var(--dorado-1);
}
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.6rem, 4.5vw, 3.4rem); line-height: .9; color: var(--rosa); }
.stat:nth-child(2) .stat__num { color: var(--verde); }
.stat:nth-child(3) .stat__num { color: var(--naranja); }
.stat:nth-child(4) .stat__num { color: var(--azul); }
.stat__label { font-size: .85rem; color: var(--texto-suave); max-width: 14rem; }

@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section--sand { background: var(--arena); }
.section--dark { background: var(--azul); color: #dfe3f2; }
.section--dark h2 { color: #fff; }
.section--turquesa { background: linear-gradient(135deg, var(--verde-oscuro), var(--verde)); color: #eaf7f8; }
.section--turquesa h2 { color: #fff; }

.section__head { max-width: 44rem; margin-bottom: 3rem; }
.section__head p:last-child { color: var(--texto-suave); }
.section__head--light p:last-child { color: inherit; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split--center { align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.checks li { padding-left: 2rem; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.checks strong { color: var(--azul); }

/* Collage El Puerto */
.collage { position: relative; min-height: 460px; }
.collage img { height: auto; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.collage__a { position: absolute; top: 0; right: 0; width: 82%; aspect-ratio: 3 / 2; }
.collage__b { position: absolute; bottom: 0; left: 0; width: 60%; aspect-ratio: 4 / 3; border: 6px solid var(--crema); }
.collage__iso {
  position: absolute; right: 4%; bottom: 6%; width: 120px; height: 120px;
  box-shadow: none !important; border-radius: 0 !important;
  filter: drop-shadow(0 10px 20px rgba(25,35,77,.3));
}
@media (max-width: 560px) { .collage { min-height: 340px; } .collage__iso { width: 84px; height: 84px; } }

/* ---------- Servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 0 rgba(25,35,77,.04);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover img { transform: scale(1.05); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; position: relative; background: #fff; }
.card__tag {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c); margin-bottom: .35rem;
}
.card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .35rem; }
.card p { margin: 0; color: var(--texto-suave); font-size: .93rem; }

.amenities {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.8rem;
  color: var(--verde-oscuro); font-weight: 500; font-size: .93rem;
}
.amenities li::before { content: "✿"; color: var(--rosa); margin-right: .5rem; }

/* Actividades según calendario */
.actividades {
  margin-top: 3rem;
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: stretch;
  background: var(--azul); color: #dfe3f2;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.actividades img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.actividades__body { padding: clamp(1.6rem, 4vw, 3rem); }
.actividades__body .eyebrow { color: var(--amarillo); }
.actividades h3 { color: #fff; font-size: clamp(3rem, 5vw, 4.2rem); margin-bottom: 1.2rem; }
.actividades__list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .9rem; }
.actividades__list li { padding-left: 1.8rem; position: relative; }
.actividades__list li::before { content: "✿"; position: absolute; left: 0; color: var(--rosa); }
.actividades__list strong { color: #fff; }
@media (max-width: 760px) { .actividades { grid-template-columns: 1fr; } .actividades img { aspect-ratio: 16 / 10; min-height: 0; } }

/* ---------- Tu visita ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 960px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; } }
.info {
  background: #fff; border-radius: var(--radius); padding: 1.5rem 1.6rem;
  border-top: 5px solid var(--c);
  box-shadow: 0 2px 0 rgba(25,35,77,.04);
}
.info__label { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--c); }
.info__value { font-size: clamp(2.6rem, 4vw, 3.2rem); color: var(--azul); margin: .5rem 0 .6rem; }
.info p:last-child { margin: 0; color: var(--texto-suave); font-size: .93rem; }
#tu-visita .precios { background: #fff; }

/* ---------- Cabañas ---------- */
.cabanas__main img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.gallery.gallery--cabanas { margin-top: 2.5rem; grid-auto-rows: auto; }
.gallery--cabanas .gallery__item { aspect-ratio: 4 / 3; }

.precios {
  margin-top: 2.5rem; padding: 1.4rem 1.6rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  background: #fff; border-radius: var(--radius); border-left: 5px solid #25D366;
}
.precios p { margin: 0; max-width: 38rem; }
.precios strong { color: var(--azul); }

.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1ebe5b; }
.btn--wa svg { width: 20px; height: 20px; fill: currentColor; }

.wa-float {
  position: fixed; z-index: 90;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: calc(clamp(1rem, 3vw, 1.6rem) + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; box-shadow: 0 10px 25px -8px rgba(0,0,0,.45);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Franja de video con el slogan ---------- */
.reel {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(380px, 72vh, 680px);
  display: flex; align-items: flex-end;
  background: var(--azul);
}
.reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.reel__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(25,35,77,.85) 0%, rgba(25,35,77,.35) 45%, rgba(25,35,77,0) 70%),
    linear-gradient(90deg, rgba(25,35,77,.45) 0%, transparent 60%);
}
.reel__content { padding-block: clamp(2.5rem, 7vw, 5rem); color: #fff; }
.reel__text {
  font-size: clamp(3.8rem, 10vw, 8.5rem);
  line-height: .78;
  color: #fff; margin: 0 0 1.6rem;
  text-shadow: 0 6px 30px rgba(0,0,0,.35);
}
.reel__text span { display: block; color: var(--amarillo); }
.reel__btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Temporada ---------- */
.season { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5rem; margin-bottom: 3rem; }
@media (max-width: 760px) { .season { grid-template-columns: 1fr; } }
.season__item {
  border-radius: var(--radius); padding: 2rem;
  background: #fff; border: 1px solid var(--arena);
}
.season__item--alta {
  background: linear-gradient(135deg, var(--naranja) 0%, var(--naranja-2) 55%, var(--amarillo) 100%);
  border: 0; color: var(--azul);
}
.season__label { font-size: .75rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.season__value { display: block; font-size: clamp(3.2rem, 6vw, 4.6rem); color: var(--azul); margin: .6rem 0 .8rem; }
.season__item p { margin: 0; }
.season__item a { color: var(--azul); font-weight: 600; }

.agenda h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.chips { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  padding: .5rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: #fff; border: 1.5px solid var(--verde); color: var(--verde-oscuro);
}
.chips li:nth-child(3n+2) { border-color: var(--rosa); color: #b8403a; }
.chips li:nth-child(3n) { border-color: var(--naranja); color: #a8521a; }
.agenda__note { color: var(--texto-suave); font-size: .93rem; }
.agenda__note a { color: var(--rosa); font-weight: 600; }

/* ---------- Galería ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: .8rem;
}
.gallery__item { overflow: hidden; border-radius: var(--radius-sm); display: block; position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.gallery__item:hover img { transform: scale(1.06); filter: brightness(1.08); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15, 20, 45, .92);
  display: grid; place-items: center; padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 85vh; width: auto; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox video { width: min(100%, 1280px); max-height: 85vh; border-radius: var(--radius-sm); background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__close {
  position: absolute; top: 1rem; right: 1.2rem;
  font-size: 2.4rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer;
}

/* ---------- Mapa ---------- */
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--arena); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Contacto ---------- */
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amarillo); font-weight: 600; }
.contact-list a { color: #fff; font-weight: 500; font-size: 1.05rem; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }

.wa-card {
  align-self: center;
  background: #fff; color: var(--texto); text-align: center;
  padding: clamp(1.8rem, 4vw, 2.8rem); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}
.wa-card__icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1rem;
  border-radius: 50%; background: #25D366;
}
.wa-card__icon svg { width: 34px; height: 34px; fill: #fff; }
.wa-card h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: .5rem; }
.wa-card p { color: var(--texto-suave); margin-bottom: 1.4rem; }
.wa-card .btn--wa { font-size: 1.05rem; padding-block: 1.05rem; }
.wa-card__num { margin: 1rem 0 0 !important; font-weight: 600; color: var(--azul) !important; letter-spacing: .02em; }

/* ---------- Footer ---------- */
.footer { background: #111836; color: #c9cee3; padding: 3.5rem 0 1.5rem; }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__brand img { width: 72px; height: 72px; }
.footer__puerto { margin: 0; letter-spacing: .5em; font-weight: 500; font-size: .85rem; color: #fff; }
.footer__name { margin: 0; font-size: 3rem; color: #fff; }
.footer__claim { margin: 0; font-size: 2.6rem; color: var(--amarillo); }
.footer__links { display: flex; gap: .7rem; }
.footer__links a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background-color .2s;
}
.footer__links a:hover { background: var(--rosa); }
.footer__links svg { width: 20px; height: 20px; fill: #fff; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1.2rem; font-size: .82rem; opacity: .75; }
.footer__legal p { margin: 0; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
