/* =========================================================
   MOMENTO CAFÉ DE ESPECIALIDAD
   1. Variables
   2. Reset
   3. Global / utilidades
   4. Header
   5. Hero
   6. Story (De la rutina al ritual)
   7. Differentiators
   8. Products + slider
   9. Modal
   10. Process
   11. Gallery
   12. CTA
   13. Footer
   14. Animaciones
   15. Responsive
   ========================================================= */

/* ---------------- 1. VARIABLES ---------------- */
:root {
  --green-dark: #0f2014;
  --green-deep: #08170d;
  --green-mid: #17301d;
  --green-olive: #22412a;
  --sage: #dde3d6;
  --sage-soft: #e9ede2;
  --cream: #f1ede2;
  --warm-white: #faf7f0;
  --gold: #b9935b;
  --gold-soft: #d3b183;
  --text-dark: #23231e;
  --text-muted: #63635a;
  --white: #ffffff;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-label: "Bebas Neue", "Inter", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(3, 28, 21, 0.14);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------- 2. RESET ---------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--warm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------------- 3. GLOBAL / UTILIDADES ---------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section-cream { background: var(--cream); }
.section-sage { background: var(--sage); }
.section-olive { background: var(--green-olive); }

/* separador editorial entre secciones */
.section-break {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(320px, 60%);
  margin: 0 auto 54px;
}
.section-break::before,
.section-break::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 147, 91, 0.55), transparent);
}
.section-break span {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.section-green { background: var(--green-dark); }
.section-green-deep { background: var(--green-deep); }

/* secciones oscuras con fotografía de fondo */
.has-bg { position: relative; overflow: hidden; }
.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 23, 13, 0.93) 0%,
    rgba(10, 26, 15, 0.88) 50%,
    rgba(8, 23, 13, 0.95) 100%
  );
}
.has-bg > .container { position: relative; z-index: 1; }

/* cada sección oscura con su propio verde para dar ritmo a la página */
.diff .section-bg-overlay {
  background: linear-gradient(
    180deg,
    rgba(8, 23, 13, 0.94) 0%,
    rgba(16, 32, 20, 0.86) 55%,
    rgba(8, 23, 13, 0.96) 100%
  );
}

/* texto sobre fondos verdes */
.section-green .label,
.section-green-deep .label { color: var(--gold); }

.section-green .section-title,
.section-green-deep .section-title { color: var(--cream); }

.section-green .text-link,
.section-green-deep .text-link { color: rgba(241, 237, 226, 0.75); }
.section-green .text-link:hover,
.section-green-deep .text-link:hover { color: var(--gold); }
.section-green .text-link img,
.section-green-deep .text-link img,
.section-green-deep .gallery-action img { filter: invert(1) brightness(1.6); }

.section-green .btn-outline,
.section-green-deep .btn-outline {
  border-color: rgba(241, 237, 226, 0.35);
  color: var(--cream);
}
.section-green .btn-outline:hover,
.section-green-deep .btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.section-green .gallery-lead,
.section-green-deep .gallery-lead,
.section-green .products-lead,
.section-green-deep .products-lead { color: rgba(241, 237, 226, 0.72); }

.label {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.label-gold { color: var(--gold); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0.005em;
  color: var(--text-dark);
}

.section-title--light { color: var(--cream); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform var(--transition), background-color var(--transition),
    color var(--transition), border-color var(--transition);
}

.btn img { width: 18px; height: 18px; }

.btn-primary {
  background: var(--gold);
  color: var(--green-deep);
}
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid rgba(243, 239, 232, 0.7);
  color: var(--cream);
}
.btn-ghost:hover { background: rgba(243, 239, 232, 0.12); transform: translateY(-2px); }

.btn-outline {
  border: 1px solid rgba(27, 27, 24, 0.25);
  color: var(--text-dark);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.text-link img { width: 16px; height: 16px; }
.text-link:hover { color: var(--gold); }

/* ---------------- 4. HEADER ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background-color var(--transition), box-shadow var(--transition),
    padding var(--transition);
  padding: 14px 0;
}

.site-header.is-scrolled {
  background: rgba(3, 28, 21, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 6px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 108px;
  height: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-link {
  position: relative;
  font-size: 14px;
  color: rgba(243, 239, 232, 0.88);
  padding: 6px 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right var(--transition);
}

.nav-link:hover,
.nav-link.is-active { color: var(--gold); }
.nav-link:hover::after,
.nav-link.is-active::after { right: 0; }

.nav-social { display: none; }

.header-social {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-social img {
  width: 20px;
  height: 20px;
  opacity: 0.85;
  transition: opacity var(--transition), transform var(--transition);
}
.header-social a:hover img { opacity: 1; transform: translateY(-2px); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 34px;
  padding: 7px 4px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--cream);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------------- 5. HERO ---------------- */
.hero {
  position: relative;
  min-height: 650px;
  height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-deep);
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 6s ease;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(3, 20, 15, 0.9) 0%,
      rgba(3, 20, 15, 0.66) 38%,
      rgba(3, 20, 15, 0.28) 70%,
      rgba(3, 20, 15, 0.45) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  padding-top: 40px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.08;
  color: var(--cream);
  letter-spacing: 0.005em;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-text {
  margin-top: 26px;
  max-width: 430px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(243, 239, 232, 0.85);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background-color var(--transition);
}
.hero-arrow img { width: 22px; height: 22px; opacity: 0.85; }
.hero-arrow:hover { background: rgba(243, 239, 232, 0.12); }
.hero-arrow--prev { left: 18px; }
.hero-arrow--next { right: 18px; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 74px;
  transform: translateX(-50%);
  z-index: 3;
  animation: floatY 2.6s ease-in-out infinite;
}
.hero-scroll img { width: 26px; height: 26px; opacity: 0.75; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 26px;
  height: 2px;
  background: rgba(243, 239, 232, 0.35);
  transition: background-color var(--transition);
}
.hero-dots button.is-active { background: var(--gold); }

/* ---------------- 5b. DE LA RUTINA AL RITUAL ---------------- */
.rituals {
  padding: 92px 0 84px;
  border-top: 1px solid rgba(18, 53, 40, 0.08);
  border-bottom: 1px solid rgba(18, 53, 40, 0.08);
}

.rituals-head {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}
.rituals-head .section-title { margin-bottom: 20px; }
.rituals-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* las tres tarjetas de ritual son fijas: no hay carrusel */
.rituals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.ritual-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--green-dark);
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ritual-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.ritual-card__media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; }
.ritual-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.ritual-card:hover .ritual-card__media img { transform: scale(1.03); }

.ritual-card__body {
  padding: 24px 22px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 178px;
}
.ritual-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.25;
  color: var(--cream);
}
.ritual-card__claim {
  margin-top: 8px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.ritual-card__link,
.product-card__link {
  display: inline-block;
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(200, 154, 88, 0.45);
  padding-bottom: 2px;
}
.ritual-card:hover .ritual-card__link,
.product-card:hover .product-card__link { color: var(--gold); }

/* ---------------- 6. STORY ---------------- */
.section-warm { background: var(--warm-white); }
.story { padding: 96px 0; }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.story-media { margin: 0; }
.story-media img {
  width: 100%;
  aspect-ratio: 7 / 6;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.story-content p + p { margin-top: 16px; }
.story-content .section-title { margin-bottom: 26px; }
.story-content > p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
}

.story-features {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.story-features li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}
.story-features li + li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(27, 27, 24, 0.14);
}
.story-features img { width: 30px; height: 30px; }
.story-features span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------------- 7. DIFFERENTIATORS ---------------- */
.diff { padding: 66px 0; }

.diff-grid {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) 1.9fr;
  gap: 44px;
  align-items: center;
}

.diff-intro .section-title,
.process-intro .section-title,
.gallery-intro .section-title {
  font-size: clamp(26px, 2.5vw, 33px);
}

.diff-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  text-align: center;
}

.diff-item {
  position: relative;
  padding: 4px 18px;
}
.diff-item + .diff-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(243, 239, 232, 0.16);
}
.diff-item img {
  width: 30px;
  height: 30px;
  margin: 0 auto 12px;
}
.diff-value {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--cream);
  line-height: 1.1;
}
.diff-name {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}
.diff-detail {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(243, 239, 232, 0.72);
}

/* ---------------- 8. PRODUCTS ---------------- */
.products { padding: 90px 0 84px; }

.products-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 42px;
}

.slider-wrap { position: relative; }

.slider-viewport { overflow: hidden; }

.slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.product-card {
  position: relative;
  flex: 0 0 auto;
  width: calc((100% - 48px) / 3);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--green-deep);
  text-align: left;
  border: 1px solid rgba(185, 147, 91, 0.18);
  box-shadow: 0 18px 44px rgba(12, 36, 25, 0.14);
  opacity: 0.55;
  transform: scale(0.965);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--transition),
    opacity 0.55s ease, border-color var(--transition);
}

.section-green .product-card {
  background: #0a190f;
  border-color: rgba(185, 147, 91, 0.3);
}

/* solo las tarjetas visibles se resaltan */
.product-card.is-inview { opacity: 1; transform: none; }
.product-card.is-inview:hover {
  transform: translateY(-8px);
  border-color: rgba(185, 147, 91, 0.55);
  box-shadow: 0 30px 60px rgba(12, 36, 25, 0.28);
}

.product-card__media { aspect-ratio: 4 / 3.4; overflow: hidden; }
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.03); }

.product-card__body {
  padding: 22px 20px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 196px;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--cream);
  line-height: 1.25;
}
.product-card__desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(243, 239, 232, 0.66);
}
.product-card__meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-card__price {
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.product-card__tag {
  margin-top: 12px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(185, 147, 91, 0.4);
  border-radius: 999px;
  padding: 3px 12px;
}

.slider-arrow {
  position: absolute;
  top: 42%;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(27, 27, 24, 0.18);
  border-radius: 50%;
  background: var(--warm-white);
  transition: border-color var(--transition), transform var(--transition);
}
.slider-arrow img { width: 18px; height: 18px; }
.slider-arrow:hover { border-color: var(--gold); transform: scale(1.05); }
.slider-arrow[disabled] { opacity: 0.35; cursor: default; transform: none; }
.slider-arrow--prev { left: -12px; }
.slider-arrow--next { right: -12px; }

.slider-dots {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(27, 27, 24, 0.2);
  transition: background-color var(--transition), transform var(--transition);
}
.slider-dots button.is-active { background: var(--gold); transform: scale(1.25); }

/* ---------------- 9. MODAL ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 20, 15, 0.72);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease;
}

.modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(880px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--green-dark);
  border: 1px solid rgba(200, 154, 88, 0.28);
  border-radius: var(--radius-lg);
  animation: modalIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(3, 20, 15, 0.55);
  transition: background-color var(--transition);
}
.modal-close img { width: 16px; height: 16px; }
.modal-close:hover { background: rgba(3, 20, 15, 0.85); }

.modal-media { margin: 0; }
.modal-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }

.modal-body { padding: 42px 40px; }
.modal-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  color: var(--cream);
}
.modal-claim {
  margin-top: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--gold);
}
.modal-description {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(243, 239, 232, 0.75);
}
.modal-presentation {
  margin-top: 18px;
  display: inline-block;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(185, 147, 91, 0.4);
  border-radius: 999px;
  padding: 5px 14px;
}
.modal-presentation[hidden] { display: none; }
.modal-body .btn[hidden] { display: none; }

.modal-body .btn { margin-top: 28px; }

/* ---------------- 10. PROCESS ---------------- */
.process { padding: 74px 0; }

.process-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 2fr;
  gap: 44px;
  align-items: center;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: start;
  text-align: center;
}

.process-step {
  position: relative;
  padding: 0 6px;
}
/* conector horizontal punteado entre etapas */
.process-step + .process-step::before {
  content: "";
  position: absolute;
  top: 29px;
  left: -50%;
  width: 100%;
  border-top: 1px dashed rgba(200, 154, 88, 0.45);
}

.process-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border: 1px solid rgba(200, 154, 88, 0.45);
  border-radius: 50%;
  background: var(--green-deep);
}
.process-icon img { width: 26px; height: 26px; }

.process-name {
  font-size: 13px;
  color: var(--cream);
}
.process-detail {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(243, 239, 232, 0.6);
}

.process-score {
  position: relative;
  z-index: 1;
  display: grid;
  place-content: center;
  width: 82px;
  height: 82px;
  margin: 0 auto;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--gold);
}
.process-score strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}
.process-score small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
}
.process-step--score::before { top: 41px !important; }

/* ---------------- 11. GALLERY ---------------- */
.gallery { padding: 74px 0 84px; }

.gallery-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}
.gallery-lead {
  margin: 18px auto 0;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* mosaico editorial: cuatro fotos verticales con alturas y alturas escalonadas */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 20px;
  padding-bottom: 56px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.gallery-item:nth-child(even) { margin-top: 56px; }
.gallery-item--tall img { aspect-ratio: 3 / 4.35; }
.gallery-item--wide img { aspect-ratio: 3 / 3.7; }

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0, 0.1, 1), filter var(--transition);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 36, 25, 0) 45%, rgba(12, 36, 25, 0.72) 100%);
  opacity: 0.5;
  transition: opacity var(--transition);
}
.gallery-item figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  z-index: 1;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cream);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.gallery-caption__label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover figcaption { opacity: 1; transform: none; }

.gallery-action {
  margin-top: 42px;
  text-align: center;
}

/* ---------------- 12. CTA ---------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
}
.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* efecto parallax: la foto es más alta que la sección y se desplaza con el scroll */
.cta--parallax { min-height: 420px; }
.cta--parallax .cta-bg {
  top: -18%;
  height: 136%;
  will-change: transform;
}
.cta--parallax .cta-inner { min-height: 420px; }
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 20, 15, 0.94) 0%,
    rgba(3, 20, 15, 0.8) 55%,
    rgba(3, 20, 15, 0.55) 100%
  );
}
.cta-inner {
  position: relative;
  z-index: 1;
  min-height: 220px;
  padding-top: 54px;
  padding-bottom: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  color: var(--cream);
}

/* ---------------- 13. FOOTER ---------------- */
.site-footer {
  background: var(--green-deep);
  padding: 58px 0 26px;
  color: rgba(243, 239, 232, 0.72);
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 0.8fr 1.1fr 1.4fr;
  gap: 40px;
}

/* formulario de contacto */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.contact-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(243, 239, 232, 0.2);
  background: rgba(243, 239, 232, 0.06);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 13.5px;
  transition: border-color var(--transition), background-color var(--transition);
}
.contact-form textarea { resize: vertical; min-height: 84px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(243, 239, 232, 0.45); }
.contact-form select { color: var(--cream); }
.contact-form select option { color: var(--text-dark); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(243, 239, 232, 0.1);
}
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.contact-form__status {
  min-height: 16px;
  font-size: 12.5px;
  color: var(--gold-soft);
}
.contact-form__status.is-error { color: #e8a48c; }

.footer-brand img { width: 150px; }

.footer-title {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 16px;
}

.footer-col li + li { margin-top: 9px; }
.footer-col a { transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact img { width: 16px; height: 16px; flex: 0 0 auto; }

.footer-note { line-height: 1.7; }

.footer-bottom {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid rgba(243, 239, 232, 0.12);
  text-align: center;
  font-size: 12.5px;
  color: rgba(243, 239, 232, 0.55);
}

/* ---------------- 14. ANIMACIONES ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes floatY {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------------- 15. RESPONSIVE ---------------- */
@media (max-width: 1200px) {
  .container { padding: 0 26px; }
  .slider-arrow--prev { left: -6px; }
  .slider-arrow--next { right: -6px; }
  .main-nav ul { gap: 26px; }
}

@media (max-width: 992px) {
  .story { padding: 72px 0; }
  .story-grid,
  .diff-grid,
  .process-grid { grid-template-columns: 1fr; gap: 36px; }

  .diff-list { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .diff-item:nth-child(4)::before { display: none; }

  .process-steps { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .process-step:nth-child(4)::before { display: none; }

  .gallery-mosaic { gap: 16px; padding-bottom: 44px; }
  .gallery-item:nth-child(even) { margin-top: 40px; }

  .product-card { width: calc((100% - 24px) / 2); }
  .rituals-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-form-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .header-social { display: none; }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    padding: 96px 32px 40px;
    background: var(--green-deep);
    transform: translateX(100%);
    transition: transform var(--transition);
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .main-nav.is-open { transform: none; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .nav-link { font-size: 16px; }

  .nav-social { display: flex; gap: 20px; margin-top: 8px; }
  .nav-social img { width: 22px; height: 22px; }

  .hero { height: auto; min-height: 88vh; padding: 140px 0 96px; }
  .hero-arrow { display: none; }
  .hero-scroll { display: none; }
  .hero-text { max-width: none; }

  .story-media img { aspect-ratio: 4 / 3; }
  .story-features { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .story-features li:nth-child(3)::before { display: none; }

  .diff-list { grid-template-columns: repeat(2, 1fr); }
  .diff-item:nth-child(odd)::before { display: none; }
  .diff-item:nth-child(even)::before { display: block; }

  .products { padding: 70px 0 64px; }
  .products-head { gap: 14px; }
  .product-card { width: calc(100% / 1.12); }
  .rituals-grid { grid-template-columns: 1fr; gap: 18px; }
  .slider-arrow { display: none; }

  .rituals { padding: 68px 0 62px; }

  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step::before { display: none !important; }

  .modal { padding: 14px; }
  .modal-dialog { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-media img { min-height: 220px; max-height: 260px; }
  .modal-body { padding: 28px 24px 32px; }

  .gallery { padding: 70px 0 62px; }
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); padding-bottom: 32px; }
  .gallery-item:nth-child(even) { margin-top: 28px; }
  .gallery-item figcaption { opacity: 1; transform: none; }
  .gallery-item::after { opacity: 0.9; }

  .cta--parallax,
  .cta--parallax .cta-inner { min-height: 340px; }

  .cta-inner { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .brand img { width: 92px; }
  .hero { padding: 128px 0 84px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .story { padding: 58px 0; }
  .diff { padding: 52px 0; }
  .diff-list { grid-template-columns: 1fr; }
  .diff-item::before { display: none !important; }
  .story-features { grid-template-columns: 1fr 1fr; }
  .gallery-photos { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; row-gap: 28px; }
  .cta-inner { padding-top: 44px; padding-bottom: 44px; }
}
