/* =========================================================
   Baby Concierge · Grand Velas
   Tokens from the brand guide (typography + colorimetry)
   Assets base: https://images.velasresorts.com/babyconcierge/
   ========================================================= */

:root {
  /* Palette — roles preserved from the brand guide */
  --accent:   #FFAFAE; /* buttons, hover, active menu item, decorative rules */
  --surface:  #FFFFFF; /* base background; text on dark/colored backgrounds */
  --ink:      #373737; /* base text on light backgrounds */
  --info-bg:  #FAF7F3; /* info panels / section backgrounds */
  --footer:   #848484; /* footer text & elements */

  /* Typography
     --font-title  Georgia    → titles (regular; italic for service titles
                                & the second download line)
     --font-body   Montserrat → body (Regular; Bold 700 for hover/tap states) */
  --font-title: Georgia, "Times New Roman", serif;
  --font-body:  "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing (8px scale) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px;

  --maxw: 1200px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* Shared section title (Georgia caps with pink rule) */
.section-title {
  font-family: var(--font-title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--ink);
  margin: 0 0 var(--s2);
}
.section-title::after {
  content: "";
  display: block;
  width: 88px;
  height: 2px;
  background: var(--accent);
  margin-top: var(--s2);
}
.section-title--light { color: var(--surface); }

.section-head {
  max-width: var(--maxw);
  margin: 0 auto var(--s6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  align-items: start;
}
.section-intro { color: var(--ink); font-size: .95rem; align-self: center; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding-left: var(--s5);
  height: 72px;
}
.brand { display: flex; align-items: center; }
.brand__logo { height: 40px; width: auto; }

.nav { display: flex; align-items: stretch; gap: var(--s2); }
.nav__link {
  display: flex;
  align-items: center;
  padding: 0 var(--s4);
  text-decoration: none;
  color: var(--ink);
  font-size: .9rem;
  transition: font-weight .05s linear, background .2s ease, color .2s ease;
}
/* Brand guide: desktop hover → Bold */
.nav__link:hover { font-weight: 700; }
.nav__link.is-active {
  background: var(--accent);
  color: var(--surface);
  font-weight: 700;
}
.nav__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 var(--s5) 0 var(--s3);
  text-decoration: none;
  font-size: .85rem;
  color: var(--ink);
}
.nav__lang img { display: inline-block; }
.nav__lang select {
  border: 1px solid rgba(55,55,55,.18);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

}
.nav__lang select:focus {
  outline: 2px solid var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-right: var(--s2);
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform .25s ease, opacity .2s ease;
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; }
.hero__img { width: 100%; height: clamp(420px, 56vw, 720px); object-fit: cover; }
.hero__overlay {
  position: absolute;
  left: 15%;
  top: 50%;
  transform: translateY(-50%);
  color: var(--surface);
  max-width: 520px;
}
.hero__title {
  font-family: var(--font-title);
  font-style: italic;
  margin: 0;
  line-height: .9;
  color: var(--surface);
}
.hero__logo {
  display: block;
  width: min(320px, 90vw);
  max-width: 100%;
  height: auto;
}
.hero__title-main {
  display: block;
  font-size: clamp(3.4rem, 8vw, 6rem);
  font-weight: 700;
}
.hero__title-sub {
  display: block;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  margin-left: 1.4em;
  margin-top: -.28em;
}
.hero__tagline {
  margin: var(--s3) 0 0;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(.85rem, 1.6vw, 1.05rem);
  font-weight: 400;
}

/* =========================================================
   PRODUCTOS
   ========================================================= */
.productos {
  background: var(--info-bg);
  padding: var(--s7) clamp(24px, 6vw, 96px);
}
.product-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
}
.product {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(55, 55, 55, .12);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.product img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.product__caption {
  font-size: 1rem;
  text-align: center;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 18px 14px;
  color: var(--surface);
  font-weight: 700;            /* Montserrat Bold */
  /* font-size: .95rem; */
  letter-spacing: .01em;
  /* accent tint from the brand guide */
  background: linear-gradient(to top, rgba(255, 175, 174, .95) 0%, rgba(255, 175, 174, .55) 55%, rgba(255, 175, 174, 0) 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
/* Desktop / hover-capable pointers: reveal on hover or keyboard focus */
@media (hover: hover) {
  .product:hover,
  .product:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(55, 55, 55, .18); }
  .product:hover .product__caption,
  .product:focus-visible .product__caption { opacity: 1; transform: translateY(0); }
}
/* Touch pointers (no hover): reveal when tapped — JS toggles .is-revealed */
.product.is-revealed .product__caption { opacity: 1; transform: translateY(0); }
.product:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* =========================================================
   DESCARGA / HOTEL
   ========================================================= */
.download {
  background: var(--surface);
  padding: var(--s7) clamp(24px, 6vw, 96px);
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
.download__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 var(--s3);
  color: var(--ink);
}
.download__title em { font-style: italic; }
.download__text { color: var(--ink); font-size: .95rem; max-width: 46ch; }

.download__actions {
  display: flex; flex-direction: column; gap: var(--s3);
  align-items: center; justify-content: center;
  width: 100%;
}
.pill {
  display: block;
  width: min(360px, 100%);
  margin-inline: auto;
  text-align: center;
  padding: 16px var(--s4);
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .9rem;
  transition: font-weight .05s linear, transform .2s ease, filter .2s ease;
}
.pill:hover { font-weight: 700; transform: translateY(-2px); filter: brightness(.97); }
.pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* =========================================================
   SERVICIOS
   ========================================================= */
.servicios {
  background: var(--info-bg);
  margin: 0 clamp(16px, 4vw, 64px) var(--s7);
  border-radius: var(--radius);
  padding: var(--s7) clamp(24px, 5vw, 80px);
}
.service {
  max-width: var(--maxw);
  margin: 0 auto var(--s6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.service:last-child { margin-bottom: 0; }
.service__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.service__title {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 var(--s3);
  color: var(--ink);
}
.service__text { color: var(--ink); font-size: .95rem; margin: 0; }
.service__note { color: var(--footer); font-size: .8rem; margin: var(--s3) 0 0; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contacto { position: relative; }
.contacto__img { width: 100%; height: clamp(460px, 48vw, 640px); object-fit: cover; }
.contacto::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(40,34,28,.72) 0%, rgba(40,34,28,.45) 40%, rgba(40,34,28,0) 70%);
}
.contacto__video {
  position: absolute;
  right: clamp(28px, 5vw, 88px);
  top: 52%;
  transform: translateY(-50%);
  width: min(460px, 34vw);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0,0,0,.2);
  border: 4px solid rgba(255,255,255,.9);
  background: #000;
  z-index: 3;
}
.contacto__video #youtube-player,
.contacto__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.contacto__video-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 4;
}
.video-control {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f1f1f;
  font: 600 0.75rem/1 "Montserrat", sans-serif;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  transition: transform .2s ease, filter .2s ease;
}
.video-control:hover { transform: translateY(-1px); filter: brightness(.98); }
.video-control--secondary { background: rgba(255, 175, 174, .95); color: #fff; }
.contacto__overlay {
  position: absolute;
  left: clamp(24px, 6vw, 96px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--surface);
  z-index: 2;
  max-width: 460px;
}
.contacto__lead { font-size: 1rem; margin: 0 0 var(--s4); }
.contacto__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.contacto__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.contacto__info {
  min-width: 0;
}
.contacto__hotel {
  display: block;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  font-size: .9rem;
}
.contacto__mail { color: var(--surface); text-decoration: none; font-size: .92rem; }
.contacto__mail:hover { font-weight: 700; }
.contacto__social {
  display: flex;
  gap: .75rem;
  align-items: center;
}
.contacto__social-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /* background: rgba(255,255,255,.95); */
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.contacto__social-link img {
  width: 30px;
  height: auto;
  display: block;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--surface); padding: var(--s6) var(--s4) var(--s7); text-align: center; }
.site-footer__line { color: var(--footer); font-size: .9rem; margin: 0 0 var(--s6); letter-spacing: .02em; }
.site-footer__line a { color: var(--footer); text-decoration: none; }
.site-footer__line a:hover { font-weight: 700; }
.awards {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: var(--maxw);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(28px, 5vw, 64px);
}
.awards li { display: flex; align-items: center; justify-content: center; }
.awards img { height: 46px; width: auto; opacity: .75; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .product-grid { gap: 28px; }
}

@media (max-width: 767px) {
  .awards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .awards li { width: 100%; }
  .awards img { height: 38px; }

  /* Nav → hamburger */
  .site-header { padding-left: var(--s3); height: 64px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    gap: 0;
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav.is-open { max-height: 340px; }
  .nav__link { padding: 16px var(--s3); }
  .nav__link.is-active { justify-content: flex-start; }
  .nav__lang { padding: 16px var(--s3); }
  /* Brand guide: mobile tap → Bold */
  .nav__link:active, .pill:active, .contacto__mail:active { font-weight: 700; }

  /* Section heads & two-column blocks stack */
  .section-head { grid-template-columns: 1fr; gap: var(--s3); margin-bottom: var(--s5); }
  .product-grid { grid-template-columns: 1fr; }
  .download { grid-template-columns: 1fr; gap: var(--s5); }
  .download__actions { align-items: center; }
  .service, .service--reverse { grid-template-columns: 1fr; gap: var(--s3); }
  /* Keep image above text on the reversed row for reading order on mobile */
  .service--reverse .service__media { order: -1; }

  .contacto__video {
    display: none;
  }

  .contacto::after {
    background: linear-gradient(180deg, rgba(40,34,28,.35) 0%, rgba(40,34,28,.75) 100%);
  }
  .contacto__img {
    object-position: top center;
    height: clamp(560px, 72vw, 820px);
  }
  .contacto__overlay {
    position: absolute;
    top: 1%; /*clamp(24px, 8vw, 48px);*/
    left: clamp(24px, 6vw, 96px);
    right: clamp(24px, 6vw, 96px);
    transform: none;
    max-width: none;
    padding: var(--s4);
  }
  .contacto__list { gap: calc(var(--s3) / 1.25); }
  .contacto__list li {
    display: grid;
    align-items: start;
    gap: .8rem;
  }
  .contacto__info,
  .contacto__social {
    width: 100%;
  }
  .contacto__social { justify-content: flex-start; }
  .contacto__social-link { width: 36px; height: 36px; }
  .contacto__social-link img { width: 20px; }

  .awards img { height: 34px; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
