/* ============================================================
   TROVADOR SQUASH — styles.css
   Mobile-first · Barlow + Barlow Condensed
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --font-body:   'Barlow', system-ui, -apple-system, sans-serif;
  --font-display:'Barlow Condensed', system-ui, sans-serif;

  /* palette */
  --white:   #FFFFFF;
  --off:     #F5F3F0;     /* warm near-white for surfaces */
  --ph:      #E8E3DC;     /* placeholder warm gray */
  --ph-icon: #B8B0A6;     /* placeholder icon color */
  --ink:     #111111;
  --ink-mid: #444444;
  --ink-low: #787878;
  --border:  #E4E1DC;

  --red:     #E5192D;
  --red-dk:  #C91525;
  --red-lt:  #FDEAEC;

  --yellow:  #FFCD00;
  --yel-lt:  #FFF9DC;
  --yel-dk:  #8B6E00;

  --blue:    #3A9FE8;
  --blu-lt:  #E6F3FC;
  --blu-dk:  #1A6FAD;

  --dark-bg: #0D0D0D;
  --dark-s:  #1C1C1C;
  --dark-bd: #2C2C2C;

  /* spacing */
  --sp-1:  4px;  --sp-2:  8px;  --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10:40px;
  --sp-12:48px;  --sp-16:64px;  --sp-20:80px;  --sp-24:96px;

  --r-sm:   6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-full:9999px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 48px rgba(0,0,0,0.10);
  --shadow-red:0 4px 24px rgba(229,25,45,0.28);

  --nav-h:  80px;
  --max-w: 1180px;
}

/* ── RESET ───────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img,svg,video { display:block; max-width:100%; }
a { color:inherit; text-decoration:none; }
ul { list-style:none; }
button { font-family:inherit; cursor:pointer; border:none; background:none; }
iframe { display:block; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1,h2,h3 {
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink);
}

h2 { font-size: clamp(28px, 5vw, 44px); }
h3 { font-size: clamp(20px, 3vw, 26px); }

p {
  line-height: 1.65;
  color: var(--ink-mid);
}

/* ── UTILITIES ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.section {
  padding: var(--sp-16) 0;
}

@media (min-width:768px) {
  .section { padding: var(--sp-24) 0; }
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  transition: background .18s, border-color .18s, color .18s, transform .15s, box-shadow .18s;
  cursor: pointer;
  white-space: nowrap;
}
.btn--lg  { font-size: 16px; padding: 15px 28px; }
.btn--xl  { font-size: 17px; padding: 17px 34px; }
.btn--full{ width: 100%; justify-content: center; }

.btn--red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn--red:hover,
.btn--red:focus-visible {
  background: var(--red-dk);
  border-color: var(--red-dk);
  box-shadow: var(--shadow-red);
  transform: translateY(-1px);
}
.btn--red:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--ink);
}

/* ── TAGS & BADGES ───────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.tag--red    { background: var(--red-lt);  color: var(--red); }
.tag--blue   { background: var(--blu-lt);  color: var(--blu-dk); }
.tag--yellow { background: var(--yel-lt);  color: var(--yel-dk); }

.badge-green {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: #E8F5E9;
  color: #2E7D32;
}

/* ── STARS ───────────────────────────────────────────────────── */
.stars      { color: var(--yellow); font-size: 18px; line-height:1; }
.stars--sm  { color: var(--yellow); font-size: 13px; line-height:1; }
.stars-inline { color: var(--yellow); font-size: inherit; }

/* ── IMAGE PLACEHOLDERS ──────────────────────────────────────── */
.card__ph-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  color: var(--ph-icon);
}
.card__ph-inner p,
.card__ph-inner span {
  font-size: 12px;
  color: var(--ph-icon);
  line-height: 1.4;
}

/* ── SECTION HEADER ──────────────────────────────────────────── */
.section-head {
  text-align: center;
  margin-bottom: var(--sp-10);
}
.section-head > * + * { margin-top: var(--sp-3); }
.section-head p { max-width: 52ch; margin-inline: auto; }

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
}

/* ── REVEAL ANIMATIONS ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .52s ease, transform .52s ease;
}
.reveal.visible      { opacity: 1; transform: translateY(0); }
.reveal--d1.visible  { transition-delay: .10s; }
.reveal--d2.visible  { transition-delay: .20s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; transition:none; }
  .carousel__track { transition:none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
}

.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav__links {
  display: none;
  flex: 1;
  gap: var(--sp-8);
}
.nav__links a {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-mid);
  transition: color .15s;
}
.nav__links a:hover { color: var(--ink); }

.nav__cta { display: none; }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__cta   { display: inline-flex; }
  .hamburger  { display: none; }
}

/* ── Logo ─── */
.nav-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo { height: 72px; width: auto; display: block; }

/* ── Hamburger ─── */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* ── Mobile menu ─── */
.mobile-menu[hidden] { display: none; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
}
.mobile-menu nav a:not(.btn) {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  transition: color .15s;
}
.mobile-menu nav a:not(.btn):hover { color: var(--red); }
.mobile-menu__close {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  padding: var(--sp-2);
  color: var(--ink-mid);
  display: flex;
  align-items: center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  background: var(--white);
}

/* ── Content (mobile: full width, stacks first) ─── */
.hero__content {
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-low);
}
.eyebrow-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.hero__heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(68px, 14vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.hero__body {
  font-size: 16px;
  color: var(--ink-mid);
  max-width: 44ch;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.trust-item strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.trust-item span {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-low);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.trust-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Access info (below CTA buttons) ─── */
.hero__access {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
}
.access-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.access-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.access-item p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.55;
}
.access-item p strong {
  color: var(--ink);
}

/* ── Visual (mobile: below content) ─── */
.hero__visual {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ph);
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Desktop hero: side by side ─── */
@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    min-height: calc(100vh - var(--nav-h));
    align-items: stretch;
  }

  .hero__content {
    flex: 0 0 46%;
    padding: var(--sp-12) var(--sp-12) var(--sp-16) max(var(--sp-8), calc((100vw - var(--max-w)) / 2 + var(--sp-6)));
    justify-content: center;
  }

  .hero__visual {
    flex: 1;
    aspect-ratio: unset;
    height: 100%;
  }
}

/* ============================================================
   INSTALACIONES
   ============================================================ */
.instalaciones { background: var(--white); }

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 560px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Regular card ─── */
.card {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__photo {
  aspect-ratio: 3 / 2;
  background: var(--ph);
  overflow: hidden;
}
.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.card:hover .card__photo img { transform: scale(1.04); }

.card__photo--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.card__photo--duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.card__body h3 { color: var(--ink); }
.card__body p  { font-size: 14px; }

/* ── Featured card (restaurant) ─── */
.card--featured {
  background: var(--off);
  border-color: transparent;
  display: flex;
  flex-direction: column;
}

@media (min-width: 560px) {
  .card--featured { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .card--featured {
    flex-direction: row;
    min-height: 380px;
  }
  .card--featured__content,
  .card--featured__carousel {
    flex: 1;
  }
}

.card--featured__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card__body--featured {
  padding: var(--sp-8) var(--sp-8) var(--sp-6);
  gap: var(--sp-5);
}
.card__body--featured .tag {
  font-size: 13px;
}
.card__body--featured h3 {
  font-size: clamp(28px, 4.5vw, 40px);
}

.card--featured__carousel {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  aspect-ratio: 4/3;
}

@media (min-width: 900px) {
  .card--featured__carousel {
    border-top: none;
    border-left: 1px solid var(--border);
    aspect-ratio: unset;
  }
}

/* ── Carousel ─── */
.carousel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.carousel__viewport {
  flex: 1;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  height: 100%;
  background: var(--ph);
  overflow: hidden;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--white);
  border-top: 1px solid var(--border);
}

.carousel__btn {
  display: flex;
  align-items: center;
  color: var(--ink-low);
  padding: var(--sp-1);
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.carousel__btn:hover {
  color: var(--ink);
  background: var(--off);
}

.carousel__dots {
  display: flex;
  gap: var(--sp-2);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background .2s, transform .2s;
}
.dot--active {
  background: var(--red);
  transform: scale(1.3);
}

/* ============================================================
   HORARIOS Y TARIFAS
   ============================================================ */
.horarios { background: var(--off); }

.horarios__inner {
  display: grid;
  gap: var(--sp-10);
}

@media (min-width: 768px) {
  .horarios__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: center;
  }
}

.horarios__info { display: flex; flex-direction: column; gap: var(--sp-5); }
.horarios__info h2 { color: var(--ink); }

.schedule {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.schedule__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  gap: var(--sp-4);
}
.schedule__row span:first-child { color: var(--ink-mid); }
.schedule__hs {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.horarios__note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: 14px;
  color: var(--ink-mid);
}

/* ── CTA Box ─── */
.cta-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.cta-box__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
}

.cta-box h3 {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--ink);
}

.cta-box p { font-size: 15px; }

.cta-box__note {
  font-size: 12px;
  color: var(--ink-low);
  text-align: center;
}

/* ============================================================
   UBICACIÓN Y RESEÑAS
   ============================================================ */
.ubicacion { background: var(--white); }

.ubicacion__grid {
  display: grid;
  gap: var(--sp-8);
}

@media (min-width: 900px) {
  .ubicacion__grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }
}

.ubicacion__map {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}

@media (min-width: 900px) {
  .ubicacion__map {
    aspect-ratio: unset;
    height: 480px;
  }
}

.ubicacion__map iframe {
  width: 100%;
  height: 100%;
}

.ubicacion__addr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  font-size: 14px;
  color: var(--ink-low);
}
.ubicacion__addr svg { flex-shrink: 0; }

/* ── Reviews ─── */
.reviews { display: flex; flex-direction: column; gap: var(--sp-5); }

.reviews__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}

.reviews__score {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.reviews__score strong {
  font-size: 48px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
}
.reviews__score small {
  display: block;
  font-size: 11px;
  color: var(--ink-low);
  margin-top: 2px;
}

.reviews__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}
.reviews__link:hover { text-decoration: underline; }

.reviews__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.review {
  background: var(--off);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.review__hd {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.review__av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--av-bg, var(--red));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review__hd strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.review p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark-bg); }

.footer__inner {
  display: grid;
  gap: var(--sp-8);
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-12);
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: var(--sp-8);
  }
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
}
.footer__nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color .15s;
}
.footer__nav a:hover { color: rgba(255,255,255,0.9); }

.footer__ig {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: color .15s;
}
.footer__ig:hover { color: rgba(255,255,255,0.95); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer__contact a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color .15s;
}
.footer__contact a:hover { color: rgba(255,255,255,0.85); }

.footer__bottom {
  border-top: 1px solid var(--dark-bd);
  padding: var(--sp-4) 0;
  text-align: center;
}
.footer__bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   WhatsApp FAB
   ============================================================ */
.fab-wa {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.40);
  z-index: 900;
  transition: transform .2s, box-shadow .2s;
}
.fab-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.50);
}

/* ── Focus styles (a11y) ─────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 3px;
}
