/* ============ Tokens ============ */
:root {
  --cream: #FAF6F1;
  --cream-soft: #F2ECE3;
  --ink: #2A2521;
  --ink-soft: #5C554D;
  --accent: #B1A08E;
  --accent-dark: #8B7A65;
  --line: #E4DACB;
  --radius-photo: 24px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;

  --header-h: 78px;
}

* {
  box-sizing: border-box;
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  background: var(--cream);
  color: var(--ink);
}

a:visited, a:link, a:active {
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
}

img {
  display: block;
}

/* ============ Scrollbar ============ */
*::-webkit-scrollbar { height: 10px; width: 10px; }
*::-webkit-scrollbar-track { border-radius: 5px; background-color: var(--cream-soft); border: 10px solid var(--cream); }
*::-webkit-scrollbar-thumb { border-radius: 5px; background-color: var(--accent); }
*::-webkit-scrollbar-thumb:hover { background-color: var(--accent-dark); }

/* ============ Type scale ============ */
.eyebrow {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--accent-dark);
  margin-bottom: var(--space-sm);
}

.title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-optical-sizing: auto;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.12;
  margin-bottom: var(--space-md);
}

.title-bold {
  font-weight: 600;
  font-style: italic;
}

.text {
  width: 100%;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: var(--space-lg);
}

/* ============ Top bar ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 0 var(--space-xl);
  background: rgba(250, 246, 241, .88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 18px -12px rgba(42, 37, 33, .25);
}

.brand {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.brand span {
  font-style: italic;
  color: var(--accent-dark);
}

/* ============ Nav ============ */
.nav {
  display: flex;
  gap: var(--space-lg);
}

.nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .25s ease;
}

.nav a:hover {
  color: var(--accent-dark);
}

.btn-small {
  padding: 10px 22px;
  font-size: 15px;
  margin-bottom: 0;
}

/* ============ Buttons ============ */
.btn-hero {
  display: inline-block;
  text-align: center;
  max-width: 275px;
  background-color: var(--accent);
  color: var(--cream);
  padding: 14px 26px;
  font-size: 17px;
  font-weight: 700;
  outline: none;
  border: 1px solid var(--accent);
  border-radius: 100px;
  transition: .3s;
}

.btn-hero:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-ghost {
  display: inline-block;
  text-align: center;
  padding: 14px 26px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: .3s;
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero-ctas .btn-hero,
.hero-ctas .btn-ghost {
  margin: 0;
}

/* ============ Trust row ============ */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-score {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 10px;
}

.trust-label {
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-soft);
  font-weight: 600;
}

.trust-chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
}

/* ============ Sections (generic) ============ */
.sect {
  padding-block: var(--space-xl);
}

/* ============ Hero ============ */
.hero {
  display: flex;
  position: relative;
  align-items: stretch;
  height: 80vh;
  padding-block: 0;
}

.cont-hero {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: var(--space-xl) var(--space-xl);
  width: 56%;
  background: var(--cream-soft);
}

.cont-imgs {
  display: flex;
  flex-direction: column;
  width: 44%;
  gap: 0;
  padding: 0;
}

.cont-img-hero {
  display: flex;
  flex: 1;
  overflow: hidden;
  border-radius: 0;
}

.cont-img-hero--offset {
  margin-left: 0;
}

.img-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.cont-img-hero:hover .img-hero {
  transform: scale(1.04);
}

.scroll-cue {
  cursor: pointer;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  bottom: var(--space-md);
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  padding: 0;
  opacity: 0;
  animation: pop 2.2s infinite;
}

.scroll-cue svg { width: 100%; height: 100%; }
.scroll-cue path { fill: var(--accent); }

/* Animación de entrada del hero: 100% CSS, no depende de JS ni de scroll,
   así el contenido de arriba de todo nunca puede quedar invisible. */
.hero-anim {
  animation: hero-in .8s ease both;
}

.hero-anim-1 { animation-delay: .05s; }
.hero-anim-2 { animation-delay: .2s; }
.hero-anim-3 { animation-delay: .32s; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* ============ Full image sections ============ */
.img-bg {
  min-height: 60vh;
  background: url('/assets/img/home/IMG_3828.webp') center / cover no-repeat;
}

/* ============ Quick facts strip ============ */
.facts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--ink);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.fact-num {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--cream);
}

.fact-label {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

/* ============ Equipments (text + image split) ============ */
.equipments {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0;
  min-height: 78vh;
}

.cont-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  padding: var(--space-xl);
}

.equipments .title { max-width: 500px; }

.img-equip {
  width: 50%;
  background: url('/assets/img/home/IMG_3780.webp') center / cover no-repeat;
}

.spaces .text { margin-bottom: var(--space-sm); }

.img-space {
  width: 50%;
  background: url('/assets/img/home/IMG_3832.webp') center / cover no-repeat;
}

.img-serv {
  width: 50%;
  background: url('/assets/img/home/IMG_3773.webp') center / cover no-repeat;
}

/* ============ Photo strips ============ */
.photos {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: var(--space-md);
  padding: var(--space-xl);
}

.photo {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-photo);
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}

.photo:hover { transform: translateY(-6px); }

.photo-1 { background-image: url('/assets/img/home/IMG_3808.webp'); }
.photo-2 { background-image: url('/assets/img/home/IMG_3841.webp'); }
.photo-3 { background-image: url('/assets/img/home/IMG_3844.webp'); }
.photo-4 { background-image: url('/assets/img/home/IMG_3836.webp'); }
.photo-5 { background-image: url('/assets/img/home/IMG_3729.webp'); }
.photo-6 { background-image: url('/assets/img/home/IMG_3770.webp'); }

/* ============ Services cards ============ */
.services-sect {
  background: var(--cream-soft);
}

.cont-text--center {
  width: 100%;
  align-items: center;
  text-align: center;
  padding: 0 0 var(--space-lg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 1160px;
  margin: 0 auto;
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-photo);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  min-height: 96px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -20px rgba(42, 37, 33, .35);
}

.service-card .text {
  margin: 0;
  font-size: 15px;
  max-width: none;
  color: var(--ink);
}

/* ============ Reviews carousel ============ */
.reviews {
  padding: var(--space-xl);
}

.reviews-carousel {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: 1160px;
  margin: 0 auto;
}

.reviews-track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 12px;
  scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-photo);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.review-card blockquote {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}

.review-stars {
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 2px;
}

.review-card figcaption {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 700;
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}

.carousel-btn:hover {
  background: var(--accent);
  color: var(--cream);
}

.carousel-btn svg { width: 20px; height: 20px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-md);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.dot.is-active {
  background: var(--accent-dark);
  transform: scale(1.3);
}

/* ============ Last / Contact ============ */
.last {
  min-height: 90vh;
  background: url('/assets/img/home/end-hero.webp') center / cover no-repeat;
  display: flex;
  align-items: center;
  padding: var(--space-xl);
}

.last-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.last-info {
  background: rgba(250, 246, 241, .92);
  backdrop-filter: blur(3px);
  border-radius: 24px;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.last .title { margin: 0 0 6px; font-size: 32px; }

.text-last {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-soft);
}

.text-last--social { margin-top: var(--space-md); }

.social-row {
  display: flex;
  gap: 10px;
  margin-top: var(--space-sm);
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .25s ease, color .25s ease;
}

.social-row a:hover {
  background: var(--accent);
  color: var(--cream);
}

.social-row svg { width: 19px; height: 19px; }

.last .btn-hero { margin: var(--space-md) 0; }

.last-map {
  border-radius: var(--radius-photo);
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
}

.last-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* ============ Fixed social icons ============ */
.fixed-socials {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 21;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fixed-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(42, 37, 33, .45);
  transition: transform .25s ease;
}

.fixed-icon:hover {
  transform: translateY(-3px);
}

.fixed-icon svg { width: 24px; height: 24px; }

.fixed-icon--wa { background: #25D366; }
.fixed-icon--ig {
  background: radial-gradient(circle at 30% 110%, #fdf497, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 158px;
  z-index: 20;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: 0 10px 24px -14px rgba(42, 37, 33, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--cream-soft);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

.back-to-top path {
  fill: var(--accent-dark);
}

/* ============ Scroll reveal ============ */
/* Ocultos solo si la clase .js (agregada al toque por un script inline
   en el head) confirma que el JavaScript arrancó. Si por lo que sea el
   JS no corre, el contenido queda visible de entrada, sin animación. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: 0ms;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }

/* ============ Accessibility ============ */
:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue { animation: none; opacity: .6; }
  .img-hero, .photo, .service-card, .back-to-top { transition: none; }
  .hero-anim { animation: none; opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .reviews-track { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .nav { display: none; }
  .last-inner { grid-template-columns: 1fr; }
  .last-map { min-height: 300px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 66px; }
  .topbar { padding: 0 var(--space-md); }

  .hero { flex-direction: column; height: auto; }
  .cont-hero { width: 100%; padding: var(--space-xl) var(--space-md); }
  .cont-imgs { width: 100%; flex-direction: row; height: 42vh; padding: 0; gap: 0; }
  .cont-img-hero--offset { margin-left: 0; }

  .equipments { flex-direction: column; min-height: auto; }
  .cont-text { width: 100%; padding: var(--space-xl) var(--space-md); }
  .img-equip, .img-space, .img-serv { width: 100%; height: 50vh; }

  .photos { flex-direction: column; padding: var(--space-lg) var(--space-md); align-items: center; }
  .photo { max-width: 100%; aspect-ratio: 16 / 10; }

  .services-grid { grid-template-columns: 1fr; }
  .reviews { padding: var(--space-lg) var(--space-md); }
  .review-card { flex-basis: 260px; }
  .carousel-btn { display: none; }

  .last { padding: var(--space-lg) var(--space-md); min-height: auto; }
  .last-info { padding: var(--space-lg); }

  .fixed-socials { right: 16px; bottom: 16px; }
  .fixed-icon { width: 44px; height: 44px; }
  .fixed-icon svg { width: 21px; height: 21px; }
  .back-to-top { right: 16px; bottom: 138px; }
}
