/* ===========================
   Hotel Hostal Del Café — STYLESHEET
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400;1,600&family=Lato:wght@300;400;700&family=Petit+Formal+Script&display=swap');

:root {
  --verde-oliva: #5a6a35;
  --verde-medio: #7a8c4a;
  --verde-claro: #a8ba72;
  --verde-palido: #d6e3b0;
  --amarillo: #d4a843;
  --amarillo-claro: #f0cc7a;
  --naranja: #c4682a;
  --naranja-claro: #e8935a;
  --cafe-oscuro: #3d2510;
  --cafe-medio: #6b3f1f;
  --cafe-claro: #a06535;
  --crema: #f5ede0;
  --crema-oscura: #e8d5b8;
  --blanco-roto: #faf6ef;
  --texto-oscuro: #2a1a08;
  --texto-medio: #5c3d1a;
  --texto-muted: #4a3922;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--blanco-roto);
  color: var(--texto-oscuro);
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--crema); }
::-webkit-scrollbar-thumb { background: var(--cafe-claro); border-radius: 2px; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='0.5' fill='%236b3f1f' opacity='0.06'/%3E%3Ccircle cx='10' cy='10' r='0.3' fill='%235a6a35' opacity='0.05'/%3E%3Ccircle cx='50' cy='50' r='0.4' fill='%236b3f1f' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   NAV
============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  transition: all 0.5s ease;
}
nav.scrolled {
  background: rgba(245, 237, 224, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 60px;
  border-bottom: 1px solid rgba(107, 63, 31, 0.15);
  box-shadow: 0 2px 20px rgba(61, 37, 16, 0.08);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo-img {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img img {
  height: 75px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--crema);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  transition: color 0.3s;
}
nav.scrolled .nav-logo { color: var(--cafe-oscuro); }
.nav-logo span {
  font-family: 'Petit Formal Script', cursive;
  font-size: 1.4rem;
  color: var(--crema);
  font-weight: 400;
  transition: color 0.3s;
}
nav.scrolled .nav-logo span { color: var(--cafe-medio); }

.nav-links {
  display: flex;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--crema);
  transition: color 0.3s;
  position: relative;
}
nav.scrolled .nav-links a { color: var(--texto-medio); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--naranja);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--naranja); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blanco-roto);
  background: var(--cafe-medio);
  padding: 10px 28px;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s;
}
.nav-cta:hover { background: var(--naranja); transform: translateY(-1px); }

/* ============================================================
   HERO
============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(30, 15, 5, 0.82) 0%,
      rgba(30, 15, 5, 0.65) 45%,
      rgba(30, 15, 5, 0.25) 100%
    ),
    url('./img/heroSection.png') center/cover no-repeat;
  transform: scale(1.06);
  transition: transform 9s ease;
}
#hero.loaded .hero-bg { transform: scale(1); }

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' opacity='0.04'%3E%3Cellipse cx='60' cy='30' rx='8' ry='20' fill='%23a8ba72' transform='rotate(-20 60 30)'/%3E%3Cellipse cx='90' cy='80' rx='6' ry='16' fill='%23a8ba72' transform='rotate(15 90 80)'/%3E%3Cellipse cx='20' cy='90' rx='5' ry='14' fill='%23a8ba72' transform='rotate(-30 20 90)'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 800px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.80rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--amarillo-claro);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(18px);
  transition: all 0.9s ease 0.3s;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--amarillo-claro);
  opacity: 0.6;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 2.8vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--crema);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(28px);
  transition: all 1s ease 0.5s;
}
.hero-title em { font-style: italic; color: var(--amarillo-claro); display: block; }
.hero-subtitle {
  font-family: 'Petit Formal Script', cursive;
  font-size: clamp(1.2rem, 1.8vw, 2rem);
  color: var(--verde-claro);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(18px);
  transition: all 0.9s ease 0.65s;
}
.hero-tagline {
  font-size: 1.06rem;
  line-height: 1.7;
  color: rgba(245, 237, 224, 0.88);
  max-width: 520px;
  margin-bottom: 50px;
  font-weight: 300;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(18px);
  transition: all 0.9s ease 0.8s;
}
.hero-desc {
  font-size: 1.06rem;
  line-height: 1.9;
  color: rgba(245, 237, 224, 0.8);
  max-width: 460px;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(18px);
  transition: all 0.9s ease 0.8s;
}
.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(18px);
  transition: all 0.9s ease 1s;
}
.hero-loaded .hero-eyebrow,
.hero-loaded .hero-title,
.hero-loaded .hero-subtitle,
.hero-loaded .hero-tagline,
.hero-loaded .hero-desc,
.hero-loaded .hero-actions { opacity: 1; transform: translateY(0); }

.btn-primary {
  display: inline-block;
  padding: 15px 38px;
  background: var(--naranja);
  color: var(--crema);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: var(--amarillo); color: var(--cafe-oscuro); transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  padding: 15px 38px;
  border: 1px solid rgba(245,237,224,0.5);
  color: var(--crema);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.3s, background 0.3s;
}
.btn-ghost:hover { border-color: var(--amarillo-claro); background: rgba(245,237,224,0.08); }

.hero-ribbon {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 90px;
  background: var(--crema);
  clip-path: polygon(0 100%, 100% 100%, 100% 60%, 0 100%);
  z-index: 2;
}
.hero-ribbon-2 {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--blanco-roto);
  z-index: 3;
}

/* ============================================================
   ABOUT
============================================================ */
#about {
  position: relative;
  z-index: 1;
  background: var(--blanco-roto);
  padding: 110px 80px 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.about-media {
  position: relative;
  padding-bottom: 36px;
}
.about-img-main {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.about-img-accent {
  position: absolute;
  width: 52%;
  aspect-ratio: 1;
  object-fit: cover;
  bottom: 0;
  right: 0;
  border: 5px solid var(--blanco-roto);
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(61,37,16,0.18);
}
.about-badge {
  position: absolute;
  top: 28px; left: 0;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--amarillo);
  border: 3px solid var(--blanco-roto);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cafe-oscuro);
  text-align: center;
  box-shadow: 0 4px 20px rgba(212,168,67,0.35);
}
.about-badge strong { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 600; line-height: 1; }
.about-badge span { font-size: 0.45rem; letter-spacing: 0.18em; text-transform: uppercase; }

/* ── Sección commons ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 22px; height: 1.5px;
  background: var(--naranja);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--cafe-oscuro);
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--verde-oliva); }
.section-rule {
  width: 50px; height: 2px;
  background: linear-gradient(to right, var(--amarillo), transparent);
  margin-bottom: 42px;
}

.section-desc {
  font-size: 1.035rem;
  line-height: 2;
  color: #4A392A;
  max-width: 520px;
}
.about-desc-2 { margin-top: 18px; }

.about-pillars {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pillar-item { display: flex; gap: 16px; align-items: flex-start; }
.pillar-icon { font-size: 1.2rem; }
.pillar-label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--naranja);
  font-weight: 700;
  margin-bottom: 4px;
}
.pillar-desc { font-size: 0.943rem; line-height: 1.8; color: #4A392A; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(107,63,31,0.12);
}
.stat-item {
  padding: 20px;
  background: var(--crema);
  border-radius: 4px;
  border-left: 3px solid var(--amarillo);
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--verde-oliva);
  line-height: 1;
}
.stat-label { font-size: 0.759rem; letter-spacing: 0.18em; text-transform: uppercase; color: #4A392A; margin-top: 5px; }

/* ============================================================
   HISTORIA (TIMELINE)
============================================================ */
#historia {
  background: var(--crema);
  padding: 100px 80px;
}
#historia .historia-inner {
  max-width: 960px;
  margin: 0 auto;
}
#historia .historia-intro {
  text-align: center;
  margin-bottom: 70px;
}
#historia .historia-intro .section-label { justify-content: center; }
#historia .historia-intro .section-label::before { display: none; }
#historia .historia-intro .section-title { text-align: center; }
#historia .historia-intro .section-rule { margin: 0 auto; }

/* ============================================================
   TIMELINE — base (compartido)
============================================================ */
.timeline {
  position: relative;
  padding-left: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--naranja), var(--amarillo), var(--verde-oliva));
  transform: translateX(-50%);
}

.tl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--naranja);
  border: 3px solid var(--blanco-roto);
  box-shadow: 0 0 0 3px var(--naranja);
  flex-shrink: 0;
  z-index: 1;
}
.timeline-item:nth-child(2) .tl-dot { background: var(--amarillo); box-shadow: 0 0 0 3px var(--amarillo); }
.timeline-item:nth-child(3) .tl-dot { background: var(--verde-oliva); box-shadow: 0 0 0 3px var(--verde-oliva); }
.timeline-item:nth-child(4) .tl-dot { background: var(--naranja); box-shadow: 0 0 0 3px var(--naranja); }

.tl-content {
  background: var(--blanco-roto);
  border-radius: 6px;
  padding: 26px 28px;
  box-shadow: 0 4px 20px rgba(61,37,16,0.08);
  border-top: 2px solid var(--naranja);
}
.timeline-item:nth-child(2) .tl-content { border-top-color: var(--amarillo); }
.timeline-item:nth-child(3) .tl-content { border-top-color: var(--verde-oliva); }
.timeline-item:nth-child(4) .tl-content { border-top-color: var(--naranja); }

.tl-content-year {
  font-size: 0.58rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 8px;
}
.timeline-item:nth-child(2) .tl-content-year { color: var(--amarillo); }
.timeline-item:nth-child(3) .tl-content-year { color: var(--verde-oliva); }
.timeline-item:nth-child(4) .tl-content-year { color: var(--naranja); }

.tl-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cafe-oscuro);
  margin-bottom: 10px;
  line-height: 1.3;
}
.tl-content p { font-size: 0.966rem; line-height: 1.9; color: #4A392A; }
.tl-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--verde-oliva);
  border: 1px solid rgba(90,106,53,0.3);
  padding: 3px 10px;
  border-radius: 2px;
}

/* Imagen dentro de la tarjeta (visible solo en móvil, oculta en desktop) */
.tl-img {
  margin-top: 18px;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  filter: saturate(0.85) brightness(0.95);
  transition: filter 0.4s ease;
}
.tl-img:hover { filter: saturate(1.05) brightness(1); }

/* ============================================================
   TIMELINE — DESKTOP (≥769px)
   5 columnas: [img-izq] [año-izq] [dot] [año-der] [img-der]
   Items impares: imagen izq · año izq · dot · vacío · tarjeta
   Items pares:   tarjeta · vacío · dot · año der · imagen der
============================================================ */
@media (min-width: 769px) {

  .timeline-item {
    display: grid;
    /* col1: contenido-izq/img | col2: año-izq | col3: dot | col4: año-der | col5: contenido-der/img */
    grid-template-columns: 1fr 90px 24px 90px 1fr;
    gap: 0 20px;
    align-items: center;
    margin-bottom: 64px;
    position: relative;
  }
  .timeline-item:last-child { margin-bottom: 0; }

  /* La línea vertical corre por el centro exacto (col 3) */
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Estilos comunes del año en desktop */
  .timeline-item:nth-child(odd) .tl-year,
  .timeline-item:nth-child(even) .tl-year {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--naranja);
    opacity: 0.22;
    line-height: 1;
    display: block;
  }

  /* ── ITEMS IMPARES (1, 3):
     col1=imagen | col2=año | col3=dot | col4=vacío | col5=tarjeta ── */
  .timeline-item:nth-child(odd) .tl-img-aside {
    grid-column: 1;
    grid-row: 1;
  }
  .timeline-item:nth-child(odd) .tl-year {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .timeline-item:nth-child(odd) .tl-dot {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
  }
  .timeline-item:nth-child(odd) .tl-content {
    grid-column: 5;
    grid-row: 1;
    text-align: left;
  }

  /* ── ITEMS PARES (2, 4):
     col1=tarjeta | col2=vacío | col3=dot | col4=año | col5=imagen ── */
  .timeline-item:nth-child(even) .tl-content {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }
  .timeline-item:nth-child(even) .tl-dot {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
  }
  .timeline-item:nth-child(even) .tl-year {
    grid-column: 4;
    grid-row: 1;
    text-align: left;
  }
  .timeline-item:nth-child(even) .tl-img-aside {
    grid-column: 5;
    grid-row: 1;
  }

  /* Ocultar .tl-img (dentro de .tl-content) en desktop */
  .tl-img { display: none; }

  /* Imagen lateral */
  .tl-img-aside {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    filter: saturate(0.85) brightness(0.95);
    box-shadow: 0 8px 32px rgba(61,37,16,0.14);
    transition: filter 0.4s ease, transform 0.4s ease;
  }
  .tl-img-aside:hover {
    filter: saturate(1.05) brightness(1);
    transform: scale(1.02);
  }
}

.historia-cierre {
  margin-top: 70px;
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.historia-cierre p { font-size: 1.104rem; line-height: 2; color: #4A392A; font-style: italic; }
.historia-firma {
  font-family: 'Petit Formal Script', cursive;
  font-size: 1.7rem;
  color: var(--naranja);
  margin-top: 20px;
  display: block;
}

/* ============================================================
   GALERIA
============================================================ */
#gallery {
  position: relative;
  background: var(--cafe-oscuro);
  padding: 100px 80px;
}
#gallery::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--verde-oliva), var(--amarillo), var(--naranja));
}
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}
.gallery-header .section-label { color: var(--amarillo-claro); }
.gallery-header .section-label::before { background: var(--amarillo-claro); }
.gallery-header .section-title { color: var(--crema); }
.gallery-header .section-title em { color: var(--verde-claro); }
.gallery-note {
  font-size: 0.897rem;
  color: rgba(245,237,224,0.65);
  max-width: 220px;
  text-align: right;
  line-height: 1.7;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
}
.gallery-item { overflow: hidden; position: relative; cursor: pointer; border-radius: 3px; }
.gallery-item:nth-child(1) { grid-column: 1 / 6; grid-row: 1; }
.gallery-item:nth-child(2) { grid-column: 6 / 9; grid-row: 1; }
.gallery-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 3; }
.gallery-item:nth-child(4) { grid-column: 1 / 4; grid-row: 2; }
.gallery-item:nth-child(5) { grid-column: 4 / 6; grid-row: 2; }
.gallery-item:nth-child(6) { grid-column: 6 / 9; grid-row: 2; }
.gallery-item img {
  width: 100%; height: 100%; min-height: 220px;
  object-fit: cover; display: block;
  transform: scale(1.06);
  transition: transform 0.8s ease, filter 0.5s ease;
  filter: brightness(0.85) saturate(0.85);
}
.gallery-item:hover img { transform: scale(1); filter: brightness(1) saturate(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(61,37,16,0.6) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 16px;
}
.gallery-overlay span {
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--amarillo-claro); opacity: 0; transition: opacity 0.4s;
}
.gallery-item:hover .gallery-overlay span { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,10,5,0.96);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 3px; transform: scale(0.94); transition: transform 0.4s ease; }
.lightbox.open img { transform: scale(1); }
.lightbox-close { position: absolute; top: 28px; right: 36px; font-size: 0.68rem; letter-spacing: 0.28em; color: rgba(245,237,224,0.5); cursor: pointer; text-transform: uppercase; transition: color 0.3s; }
.lightbox-close:hover { color: var(--amarillo); }

/* ============================================================
   SERVICIOS
============================================================ */
#services {
  background: var(--crema);
  padding: 100px 80px;
  position: relative;
}
#services::after {
  content: 'Hostal Del Café';
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 15vw; font-weight: 600;
  color: rgba(90,106,53,0.04);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap; pointer-events: none;
  max-width: 100%;
  overflow: hidden;
}
.services-header { text-align: center; margin-bottom: 70px; }
.services-header .section-label { justify-content: center; }
.services-header .section-label::before { display: none; }
.services-title { text-align: center; }
.services-rule { margin: 0 auto 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--blanco-roto);
  border-radius: 4px;
  border: 1px solid rgba(107,63,31,0.1);
  position: relative;
  overflow: hidden;
  transition: background 0.4s, transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: linear-gradient(to bottom, var(--verde-oliva), var(--amarillo));
  transition: height 0.5s ease;
  z-index: 1;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(61,37,16,0.12); }
.service-card:hover::before { height: 100%; }

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  filter: saturate(0.8) brightness(0.92);
  transition: filter 0.5s ease, transform 0.5s ease;
  transform-origin: center;
}
.service-card:hover .service-img {
  filter: saturate(1.05) brightness(1);
  transform: scale(1.03);
}

.service-card-body {
  padding: 44px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card--featured {
  grid-column: span 3;
  border-top: 3px solid var(--amarillo);
}
.service-card--featured.service-card--with-img {
  display: grid;
  grid-template-columns: 380px 1fr;
}
.service-card--featured.service-card--with-img .service-img {
  height: 100%;
  min-height: 260px;
}

.service-card--coming { border-left: 3px dashed var(--verde-oliva); }

.service-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 400;
  color: rgba(90,106,53,0.12);
  line-height: 1; margin-bottom: 24px;
  transition: color 0.4s;
}
.service-card:hover .service-number { color: rgba(90,106,53,0.22); }
.service-icon { font-size: 1.5rem; margin-bottom: 16px; display: block; }
.service-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 400; color: var(--cafe-oscuro); margin-bottom: 12px; }
.service-desc { font-size: 0.943rem; line-height: 1.9; color: #4A392A; }
.service-tag {
  display: inline-block; margin-top: 22px;
  font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--verde-oliva);
  border: 1px solid rgba(90,106,53,0.3);
  padding: 4px 12px; border-radius: 2px;
  align-self: flex-start;
}

/* ============================================================
   VALORES
============================================================ */
#valores {
  padding: 100px 80px;
  background: var(--crema);
  text-align: center;
}
#valores .section-label { justify-content: center; }
#valores .section-label::before { display: none; }
#valores .section-title { text-align: center; }
#valores .section-rule { margin: 16px auto 48px; }

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.valor-card {
  background: var(--blanco-roto);
  border-radius: 12px;
  padding: 32px 20px 28px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.valor-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,0,0,0.10); }
.valor-icon { font-size: 2rem; margin-bottom: 14px; }
.valor-name { font-size: 0.828rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--naranja); line-height: 1.5; }

/* ============================================================
   OPINIONES
============================================================ */
#opiniones {
  padding: 100px 80px;
  background: var(--blanco-roto);
  text-align: center;
}
#opiniones .section-label { justify-content: center; }
#opiniones .section-label::before { display: none; }
#opiniones .section-title { text-align: center; }
#opiniones .section-rule { margin: 16px auto 48px; }

.reviews-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.review-card {
  background: var(--crema);
  border-radius: 14px;
  padding: 32px 28px;
  border-left: 4px solid var(--naranja);
  position: relative;
}
.review-stars { color: #e8a020; font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.review-text { font-size: 1.012rem; line-height: 1.85; color: #4A392A; font-style: italic; margin-bottom: 20px; }
.review-author { font-size: 0.828rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--naranja); }
.review-origin { font-size: 0.828rem; color: #6b5640; margin-top: 2px; }
.review-quote { position: absolute; top: 20px; right: 24px; font-size: 4rem; color: var(--naranja); opacity: 0.10; line-height: 1; font-family: Georgia, serif; }
.review-source {
  display: inline-block; margin-top: 12px;
  font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--verde-oliva);
  border: 1px solid rgba(90,106,53,0.3);
  padding: 3px 10px; border-radius: 2px;
}
.review-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(107,63,31,0.1); }
.review-highlights span { font-size: 0.828rem; color: #4A392A; }

/* ============================================================
   UBICACION
============================================================ */
#location {
  background: var(--blanco-roto);
  padding: 100px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.location-map {
  position: relative; aspect-ratio: 1;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 12px 50px rgba(61,37,16,0.14);
}
.location-map iframe { width: 100%; height: 100%; border: none; filter: sepia(0.3) saturate(1.2) brightness(0.9); }
.map-frame { position: absolute; inset: 10px; border: 1px solid rgba(212,168,67,0.25); pointer-events: none; border-radius: 2px; }
.map-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--naranja); border: 2px solid var(--crema); box-shadow: 0 0 0 4px rgba(196,104,42,0.3); }
.map-dot.tl { top: 10px; left: 10px; }
.map-dot.tr { top: 10px; right: 10px; }
.map-dot.bl { bottom: 10px; left: 10px; }
.map-dot.br { bottom: 10px; right: 10px; }

.location-details { display: flex; flex-direction: column; gap: 36px; }
.location-item-label { font-size: 0.6rem; letter-spacing: 0.38em; text-transform: uppercase; color: var(--naranja); margin-bottom: 8px; }
.location-item-value { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--cafe-oscuro); line-height: 1.6; }
.location-item-sub { font-size: 0.897rem; color: #4A392A; margin-top: 4px; }
.location-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.highlight-chip {
  font-size: 0.805rem; color: #4A392A; padding: 8px 12px;
  border: 1px solid rgba(107,63,31,0.12); border-radius: 3px;
  background: var(--crema);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.highlight-chip:hover { border-color: var(--verde-oliva); color: var(--verde-oliva); background: var(--verde-palido); }

/* ============================================================
   CTA
============================================================ */
#cta {
  position: relative;
  padding: 110px 80px;
  text-align: center;
  background: var(--verde-oliva);
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' opacity='0.07'%3E%3Cellipse cx='40' cy='20' rx='10' ry='28' fill='%23d6e3b0' transform='rotate(-15 40 20)'/%3E%3Cellipse cx='70' cy='65' rx='8' ry='22' fill='%23d6e3b0' transform='rotate(20 70 65)'/%3E%3C/svg%3E");
}
.cta-eyebrow { font-family: 'Petit Formal Script', cursive; font-size: 2rem; color: var(--verde-claro); margin-bottom: 16px; position: relative; }
.cta-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 2.8vw, 3.2rem); font-weight: 400; color: var(--crema); line-height: 1.12; margin-bottom: 20px; position: relative; }
.cta-title em { font-style: italic; color: var(--amarillo-claro); }
.cta-sub { font-size: 0.9775rem; color: rgba(245,237,224,0.85); margin-bottom: 50px; position: relative; }
.btn-dark {
  display: inline-block; padding: 17px 54px;
  background: var(--cafe-oscuro); color: var(--amarillo-claro);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px; position: relative;
  transition: background 0.3s, transform 0.2s;
}
.btn-dark:hover { background: var(--naranja); color: var(--crema); transform: translateY(-2px); }

/* ============================================================
   FOOTER
============================================================ */
footer { background: var(--cafe-oscuro); padding: 70px 80px 40px; }
footer::before {
  content: ''; display: block; width: 100%; height: 3px;
  background: linear-gradient(to right, var(--verde-oliva), var(--amarillo), var(--naranja), var(--cafe-claro));
  margin-bottom: 60px;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-brand-name { font-family: 'Petit Formal Script', cursive; font-size: 2rem; color: var(--amarillo); display: block; margin-bottom: 6px; }
.footer-brand-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--verde-claro);
  margin-bottom: 16px;
  display: block;
}
.footer-brand p { font-size: 0.82rem; line-height: 1.85; color: rgba(245,237,224,0.55); max-width: 250px; }

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(245,237,224,0.55);
  line-height: 1.5;
}
.footer-contact-list li .fc-icon {
  font-style: normal;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.footer-contact-list a {
  color: rgba(245,237,224,0.55);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-contact-list a:hover { color: var(--amarillo-claro); }
.footer-contact-list .fc-wa {
  color: #4ade80;
  font-weight: 600;
}
.footer-contact-list .fc-wa:hover { color: #86efac; }

.footer-col-title { font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--verde-claro); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a { font-size: 0.8rem; color: rgba(245,237,224,0.45); text-decoration: none; transition: color 0.3s; }
.footer-col ul a:hover { color: var(--amarillo-claro); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(245,237,224,0.08);
  font-size: 0.7rem; color: rgba(245,237,224,0.3);
}
.social-links { display: flex; gap: 18px; }
.social-links a { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,237,224,0.35); text-decoration: none; transition: color 0.3s; }
.social-links a:hover { color: var(--amarillo-claro); }

/* ============================================================
   LOADER
============================================================ */
#loader {
  position: fixed; inset: 0;
  background: var(--cafe-oscuro);
  z-index: 9997;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  transition: opacity 0.8s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.loader-script {
  font-family: 'Petit Formal Script', cursive;
  font-size: 3rem;
  color: var(--amarillo);
  text-align: center;
  width: 100%;
}
.loader-name {
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(245,237,224,0.4);
  text-align: center;
  width: 100%;
}
.loader-bar {
  width: 180px; height: 1px;
  background: rgba(245,237,224,0.1);
  position: relative; overflow: hidden;
  margin: 0 auto;
}
.loader-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  background: var(--amarillo);
  animation: loaderFill 1.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes loaderFill { from { width: 0; } to { width: 100%; } }

/* ============================================================
   REVEAL
============================================================ */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.85s ease, transform 0.85s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ============================================================
   RESPONSIVE — 1024px
============================================================ */
@media (max-width: 1024px) {
  nav { padding: 20px 32px; }
  nav.scrolled { padding: 14px 32px; }
  #about, #location { padding: 80px 32px; }
  #hero .hero-content { padding: 0 40px; }
  #about { grid-template-columns: 1fr; gap: 60px; }
  .about-img-accent { right: 0; bottom: 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card--featured { grid-column: span 2; }
  .service-card--featured.service-card--with-img { grid-template-columns: 280px 1fr; }
  #location { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  #gallery, #services, #cta, #valores, #opiniones, #historia { padding: 80px 32px; }
  footer { padding: 60px 32px 36px; }
  .reviews-grid--3 { grid-template-columns: 1fr 1fr; }

  /* Timeline en tablet: simplificar a 3 columnas */
  .timeline-item {
    grid-template-columns: 60px 20px 1fr !important;
    gap: 0 20px !important;
  }
  .timeline-item:nth-child(odd) .tl-year    { grid-column: 1; font-size: 1.8rem; }
  .timeline-item:nth-child(odd) .tl-dot     { grid-column: 2; }
  .timeline-item:nth-child(odd) .tl-content { grid-column: 3; }
  .timeline-item:nth-child(odd) .tl-img-aside { display: none; }

  .timeline-item:nth-child(even) .tl-year    { grid-column: 1; font-size: 1.8rem; text-align: right; padding-left: 0; }
  .timeline-item:nth-child(even) .tl-dot     { grid-column: 2; }
  .timeline-item:nth-child(even) .tl-content { grid-column: 3; text-align: left; }
  .timeline-item:nth-child(even) .tl-img-aside { display: none; }

  /* Mostrar imagen dentro de la tarjeta en tablet */
  .tl-img { display: block; }

  .timeline::before { left: calc(60px + 10px); transform: none; }
}

/* ============================================================
   RESPONSIVE — 768px (móvil)
============================================================ */
@media (max-width: 768px) {

  * { max-width: 100%; }
  section, footer, nav { width: 100%; }

  nav { padding: 16px 20px; }
  nav:not(.scrolled) { background: transparent; box-shadow: none; }
  .nav-links { display: none; }

  #hero .hero-content { padding: 0 24px; max-width: 100%; }
  #hero { min-height: 100svh; }
  .hero-bg { background-attachment: scroll; }

  #about {
    padding: 70px 24px;
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-media { padding-bottom: 0; }
  .about-img-accent {
    position: relative;
    width: 60%;
    right: auto;
    bottom: auto;
    margin: -60px auto 0;
    display: block;
    border: 4px solid var(--blanco-roto);
  }
  .about-badge {
    left: 16px;
    top: 16px;
    width: 76px;
    height: 76px;
  }
  .about-badge strong { font-size: 1.5rem; }

  #gallery { padding: 70px 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .gallery-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .gallery-note { text-align: left; max-width: 100%; }

  #services { padding: 70px 24px; }
  #services::after { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card--featured { grid-column: span 1; }
  .service-card--featured.service-card--with-img { grid-template-columns: 1fr; }
  .service-card--featured.service-card--with-img .service-img { height: 200px; min-height: unset; }

  #cta { padding: 70px 24px; }
  #valores { padding: 70px 24px; }
  #opiniones { padding: 70px 24px; }
  .reviews-grid--3 { grid-template-columns: 1fr; max-width: 100%; }

  #location { padding: 70px 24px; grid-template-columns: 1fr; }
  .location-highlights { grid-template-columns: 1fr; }

  footer { padding: 50px 24px 30px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }

  /* ── Historia / Timeline en móvil ── */
  #historia { padding: 70px 24px; }
  .timeline::before {
    left: 20px;
    transform: none;
  }
  /* En móvil forzamos grid de 2 columnas: dot | contenido */
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    display: grid !important;
    grid-template-columns: 20px 1fr !important;
    gap: 0 20px !important;
  }
  /* Ocultar año y tl-img-aside en móvil */
  .timeline-item .tl-year,
  .timeline-item:nth-child(odd) .tl-year,
  .timeline-item:nth-child(even) .tl-year { display: none !important; }

  .timeline-item .tl-img-aside,
  .timeline-item:nth-child(odd) .tl-img-aside,
  .timeline-item:nth-child(even) .tl-img-aside { display: none !important; }

  /* dot y content: posiciones fijas en móvil */
  .timeline-item .tl-dot,
  .timeline-item:nth-child(odd) .tl-dot,
  .timeline-item:nth-child(even) .tl-dot {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    margin-top: 8px;
  }
  .timeline-item .tl-content,
  .timeline-item:nth-child(odd) .tl-content,
  .timeline-item:nth-child(even) .tl-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    text-align: left !important;
  }

  /* Mostrar imagen dentro de la tarjeta en móvil */
  .tl-img { display: block !important; height: 140px; }
}