/* ===================================================================
   Sopla's Resort Beach Club — La Dolce Vita
   =================================================================== */

:root {
  --teal:        #1c4177;   /* brand navy (del logo) — texto y footer */
  --teal-dark:   #14315a;
  --gold:        #bf9b54;   /* signature gold */
  --gold-dark:   #a8853f;
  --cream:       #f5efe2;   /* page background */
  --cream-soft:  #faf5ec;
  --paper:       #fffdf8;
  --line:        #e3d9c5;
  --ink:         #1c3640;
  --muted:       #5d6f74;

  --serif:   "Cormorant Garamond", Georgia, serif;
  --display: "Playfair Display", Georgia, serif;
  --script:  "Parisienne", cursive;
  --caps:    "Cormorant SC", serif;

  --maxw: 1180px;
  --r: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: var(--r);
  transition: all .25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(191,155,84,.7);
}
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-2px); }

/* ---------- Shared headings ---------- */
.kicker {
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .8rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 600;
  color: var(--teal);
  line-height: 1.1;
  margin-bottom: 22px;
}
.section-title--center { text-align: center; }
.section-title--center::after {
  content: "✦";
  display: block;
  color: var(--gold);
  font-size: 1rem;
  margin: 14px auto 0;
}

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(245,239,226,0);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  background: var(--cream-soft);
  box-shadow: 0 2px 24px -12px rgba(21,51,61,.5);
  padding: 10px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: .95;
  color: var(--teal);
}
.scrolled .brand, .hero ~ * .brand { color: var(--teal); }
.brand__name { font-family: var(--script); font-size: 1.9rem; color: var(--gold); }
.brand__sub  { font-family: var(--caps); letter-spacing: .35em; font-size: .62rem; text-transform: uppercase; margin-top: -2px; }
.brand__tag  { font-family: var(--caps); letter-spacing: .3em; font-size: .52rem; text-transform: uppercase; color: var(--muted); }
.brand__logo { display: block; height: 58px; width: auto; transition: height .3s ease; }
.scrolled .brand__logo { height: 46px; }
.brand--footer .brand__logo { height: 74px; }

.nav { display: flex; gap: 30px; }
.nav a {
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  text-decoration: none;
  color: var(--teal);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--gold); transition: width .25s;
}
.nav a:hover::after { width: 100%; }

/* menú en azul marino sobre el hero (como el diseño) */
.site-header:not(.scrolled) .nav a { color: var(--teal); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: currentColor; display: block; }
.nav-toggle { color: var(--teal); }

/* ===================================================================
   HERO
   =================================================================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0;
  background: url("../assets/img/hero.jpg") center/cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: none;
}
.hero__content { position: relative; padding-top: 90px; max-width: 780px; margin: 0 auto; text-align: center; }
.hero__eyebrow {
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .3em;
  font-size: .8rem; color: var(--gold); margin-bottom: 10px;
}
.hero__title { line-height: .82; margin-bottom: 18px; }
.hero__title-la {
  display: block; font-family: var(--script); color: var(--gold);
  font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: -.15em;
}
.hero__title-main {
  display: block; font-family: var(--display); font-weight: 700; font-style: italic;
  color: var(--teal); font-size: clamp(3.6rem, 11vw, 7.5rem);
}
.hero__logo { display: block; width: min(460px, 84%); height: auto; margin: 0 auto 8px; }
.hero__lead {
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .22em;
  font-size: 1rem; color: var(--teal); margin: 10px 0 4px;
}
.hero__sub { font-family: var(--display); font-style: italic; font-size: 1.35rem; color: var(--teal); margin-bottom: 22px; }
.hero__text { font-family: var(--serif); font-style: italic; font-size: 1.18rem; color: var(--teal); }
.hero__text em { font-style: normal; color: var(--gold-dark); }

/* ===================================================================
   INTRO / FEATURES
   =================================================================== */
.intro { background: var(--cream); padding: 80px 0; }
.intro__grid { display: grid; grid-template-columns: 0.85fr 2.7fr; gap: 50px; align-items: center; }
.intro__heading {
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .16em;
  font-weight: 600; color: var(--teal); font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  line-height: 1.15; margin-bottom: 14px;
}
.intro__heading::after { content: "✦"; display: block; color: var(--gold); font-size: .8rem; margin-top: 12px; }
.intro__text p { color: var(--muted); margin-bottom: 24px; }

.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feature { text-align: center; }
.feature__icon { display: flex; justify-content: center; margin-bottom: 12px; }
.feature__icon svg {
  width: 42px; height: 42px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}
.feature:hover .feature__icon svg { transform: translateY(-3px); }
.feature h3 { font-family: var(--caps); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; color: var(--teal); font-weight: 600; line-height: 1.3; }

/* marco decorativo dorado */
.framed { position: relative; border: 1px solid rgba(191,155,84,.5); border-radius: 16px; padding: clamp(30px, 4vw, 54px); }
.framed::before, .framed::after {
  content: "✦"; position: absolute; left: 50%; transform: translateX(-50%);
  color: var(--gold); font-size: .85rem; line-height: 1;
  background: var(--frame-bg, var(--cream)); padding: 0 12px;
}
.framed::before { top: -8px; }
.framed::after { bottom: -8px; }

/* ===================================================================
   CHECK-IN
   =================================================================== */
.checkin { background: var(--cream-soft); padding: 70px 0; --frame-bg: var(--cream-soft); }
.checkin__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.checkin__media {
  aspect-ratio: 3 / 2; width: 100%; max-width: 100%; border-radius: var(--r);
  background: #fbfaf6 url("../assets/img/checkin-desk.jpg") center/cover no-repeat;
  box-shadow: 0 20px 50px -28px rgba(21,51,61,.7);
}
.checkin__text p { color: var(--muted); margin-bottom: 28px; }

/* ===================================================================
   SCHEDULE
   =================================================================== */
.schedule { background: var(--cream); padding: 80px 0; --frame-bg: var(--cream); }
.schedule__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.schedule__list ul { list-style: none; }
.schedule__list li {
  display: grid; grid-template-columns: 64px 30px 1fr;
  align-items: center; gap: 10px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.schedule__time { font-family: var(--caps); color: var(--gold-dark); font-weight: 600; letter-spacing: .05em; }
.schedule__icon { display: flex; justify-content: center; }
.schedule__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.schedule__name { font-family: var(--caps); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: var(--teal); }

.schedule__gallery { min-height: 440px; }
.schedule__img { height: 100%; min-height: 440px; border-radius: var(--r); background-size: cover; background-position: center; box-shadow: 0 16px 40px -26px rgba(21,51,61,.7); }
.schedule__img--lounge { background-image: url("../assets/img/horario-lounge.jpg"); }

/* ===================================================================
   SAPORI D'ITALIA
   =================================================================== */
.sapori { background: var(--cream-soft); padding: 90px 0; }
.sapori__lead { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 46px; }
.sapori__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.dish { text-align: center; }
.dish__img {
  height: 180px; border-radius: var(--r); background-size: cover; background-position: center;
  margin-bottom: 14px; box-shadow: 0 14px 34px -24px rgba(21,51,61,.7);
  transition: transform .3s ease;
}
.dish:hover .dish__img { transform: scale(1.03); }
.dish h3 { font-family: var(--caps); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--teal); }
.dish__img--spritz  { background-image: url("https://images.unsplash.com/photo-1560512823-829485b8bf24?auto=format&fit=crop&w=700&q=80"); }
.dish__img--pasta   { background-image: url("https://images.unsplash.com/photo-1551892374-ecf8754cf8b0?auto=format&fit=crop&w=700&q=80"); }
.dish__img--pizza   { background-image: url("https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=700&q=80"); }
.dish__img--gelato  { background-image: url("https://images.unsplash.com/photo-1567206563064-6f60f40a2b57?auto=format&fit=crop&w=700&q=80"); }
.dish__img--dessert { background-image: url("../assets/img/dessert.jpg"); }

/* ===================================================================
   CTA BAND
   =================================================================== */
.cta-band {
  position: relative; padding: 90px 0; text-align: center; color: #fff; overflow: hidden;
  background: url("https://images.unsplash.com/photo-1470337458703-46ad1756a187?auto=format&fit=crop&w=1900&q=80") center/cover fixed;
}
.cta-band__overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,39,48,.85), rgba(191,155,84,.55)); }
.cta-band__content { position: relative; }
.cta-band__line { font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; }
.cta-band__sub { font-family: var(--caps); text-transform: uppercase; letter-spacing: .3em; font-size: .85rem; margin-top: 18px; color: rgba(255,255,255,.9); }

/* ===================================================================
   CHECK-IN PAGE
   =================================================================== */
.hero--short { min-height: 82vh; }

.checkin-form { background: var(--cream); padding: 80px 0 70px; }
.checkin-card {
  max-width: 780px; margin: 0 auto;
  background: var(--cream-soft);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 54px clamp(24px, 5vw, 64px);
  box-shadow: 0 24px 60px -38px rgba(21,51,61,.6);
  text-align: center;
}
.checkin-welcome { font-family: var(--display); font-style: italic; color: var(--gold-dark); font-size: 1.45rem; margin-bottom: 14px; }
.checkin-intro { color: var(--muted); max-width: 540px; margin: 0 auto 38px; }
.checkin-intro strong { color: var(--teal); }

.checkin-form form { text-align: left; }
.field { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start; margin-bottom: 26px; }
.field__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.field__label { display: block; font-family: var(--caps); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--teal); margin-bottom: 4px; }
.field__help { font-style: italic; color: var(--muted); font-size: .95rem; margin: 0 0 10px; }
.field input {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 5px;
  background: #fff; font-family: var(--serif); font-size: 1.02rem; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: #a9a9a0; font-style: italic; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(191,155,84,.15); }

.checkin-submit { display: block; width: 100%; margin-top: 8px; padding: 16px; font-size: .8rem; border: none; }

.checkin-success { text-align: center; padding: 10px 0; }

.checkin-outro { text-align: center; margin-top: 52px; }
.checkin-outro__icon svg { width: 70px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.checkin-outro h3 { font-family: var(--display); font-weight: 600; color: var(--teal); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.checkin-outro p { color: var(--muted); }
.checkin-outro em { color: var(--gold-dark); }

@media (max-width: 560px) {
  .field { grid-template-columns: 32px 1fr; gap: 12px; }
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: var(--teal); color: #e9e2d2; padding: 58px 0 26px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.footer__contact { display: flex; gap: 44px; flex-wrap: wrap; }
.footer__col { display: flex; align-items: center; gap: 13px; }
.footer__svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.footer__col p { font-size: 1rem; line-height: 1.35; }
.footer__col a { color: #e9e2d2; text-decoration: none; transition: color .2s; }
.footer__col a:hover { color: var(--gold); }
.footer__col small { display: block; color: rgba(233,226,210,.55); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.footer__label { font-family: var(--caps); text-transform: uppercase; letter-spacing: .14em; font-size: .92rem; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(233,226,210,.3);
  display: grid; place-items: center;
  color: #e9e2d2; text-decoration: none; transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.footer__social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-2px); }
.footer__social svg { width: 19px; height: 19px; }
.footer__legal { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(233,226,210,.15); }
.footer__legal p { font-family: var(--caps); letter-spacing: .08em; font-size: .72rem; color: rgba(233,226,210,.55); text-align: center; }

@media (max-width: 760px) {
  .footer { padding: 46px 0 24px; }
  .footer__inner { flex-direction: column; text-align: center; gap: 28px; }
  .footer__contact { flex-direction: column; gap: 18px; align-items: center; }
  .footer__col { justify-content: center; }
  .brand--footer .brand__logo { height: 64px; }
}

/* ===================================================================
   ANIMATIONS
   =================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 900px) {
  body { font-size: 18px; }
  .intro__grid, .checkin__grid, .schedule__grid { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .sapori__grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { background-attachment: scroll; }
  .header__cta { display: none; }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--cream-soft); flex-direction: column; gap: 0;
    padding: 90px 30px; transform: translateX(100%); transition: transform .3s ease;
    box-shadow: -10px 0 40px -20px rgba(21,51,61,.6);
  }
  .nav.open { transform: none; }
  .nav a { color: var(--teal) !important; padding: 16px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-toggle { display: flex; z-index: 110; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .sapori__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { flex-direction: column; text-align: center; align-items: center; }
}
