@import url("fonts.css");

/* ═══════════════════════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════════════════════ */
:root {
  /* Colors */
  --c-bg: #f5f2ee;
  --c-surface: #ede9e3;
  --c-dark: #2b2621;
  --c-warm: #6d665a;
  --c-accent: #8c6e4b;
  --c-accent-lt: #b89a7a;
  --c-white: #faf8f5;
  --c-muted: #9a9189;

  /* Typography */
  --f-display: "Montserrat", sans-serif;
  --f-body: "Montserrat", sans-serif;
  --f-detail: "Archivo Expanded", sans-serif;

  /* Easing */
  --ease-in: cubic-bezier(0.64, 0, 0.78, 0);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --radius: 2px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --horizontal-speed: 300vh;
}

/* ═══════════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--c-bg);
  color: var(--c-dark);
  font-family: var(--f-body);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: 70px; /* compensa navbar fijo */
}

img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

/* ═══════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════ */
.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.text-accent {
  color: var(--c-accent);
}
.text-muted {
  color: var(--c-muted);
}

.tag {
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* Divider base (línea decorativa) */
.divider {
  width: 48px;
  height: 1px;
  background: var(--c-accent);
  display: block;
  margin: 1.25rem 0;
}
.divider--center {
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes lineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Entrada inmediata */
.anim-up {
  animation: fadeUp 0.8s var(--ease-out) both;
}
.anim-left {
  animation: fadeLeft 0.8s var(--ease-out) both;
}
.anim-in {
  animation: fadeIn 0.9s var(--ease-out) both;
}
.anim-scale {
  animation: scaleIn 0.9s var(--ease-out) both;
}

[data-delay="1"] {
  animation-delay: 0.12s;
}
[data-delay="2"] {
  animation-delay: 0.24s;
}
[data-delay="3"] {
  animation-delay: 0.36s;
}
[data-delay="4"] {
  animation-delay: 0.48s;
}
[data-delay="5"] {
  animation-delay: 0.6s;
}

/* Scroll-triggered */
.reveal {
  opacity: 0;
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
}
.reveal.from-up {
  transform: translateY(32px);
}
.reveal.from-left {
  transform: translateX(-28px);
}
.reveal.from-right {
  transform: translateX(28px);
}
.reveal.from-scale {
  transform: scale(0.96);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════
   PRELOADER
═══════════════════════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--c-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s var(--ease-out),
    visibility 0.6s;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pre-logo {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--c-white);
  letter-spacing: 0.25em;
  animation: fadeIn 0.6s ease both;
}
.pre-logo span {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--c-accent);
  margin-left: 0.1em;
  animation:
    fadeIn 0.4s 0.5s both,
    fadeIn 1s 0.8s reverse both;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
}

.navbar-nav {
  gap: 8px !important;
  flex-wrap: nowrap;
}

.navbar-nav .nav-link {
  font-size: 12px !important;
  font-weight: 400 !important;
  padding: 6px 8px !important;
  letter-spacing: 0.5px !important;
}

#navbar .nav-link {
  position: relative;
  padding-bottom: 4px;
}

#navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--c-accent);
  transition: width 0.3s ease;
}

#navbar .nav-link:hover::after,
#navbar .nav-link.active::after {
  width: 100%;
}

#navbar .nav-link.active {
  color: var(--c-accent) !important;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.hero__slide.active {
  opacity: 1;
}
.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--gap);
  max-width: 780px;
}
.hero__tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent-lt);
  margin-bottom: 1.25rem;
  display: block;
}
.hero__title {
  font-family: var(--f-display);
  font-size: 3.5rem;
  font-weight: 150;
  line-height: 1.1;
  color: var(--c-white);
  margin-bottom: 1.5rem;
}
.hero__text {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  max-width: 600px;
  margin-inline: auto;
}

.hero__slide.active .hero__tag {
  animation: fadeUp 0.7s 0.2s var(--ease-out) both;
}
.hero__slide.active .hero__title {
  animation: fadeUp 0.8s 0.35s var(--ease-out) both;
}
.hero__slide.active .hero__text {
  animation: fadeUp 0.8s 0.52s var(--ease-out) both;
}

/* Slider nav */
.hero__nav {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__dot {
  width: 28px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  border: none;
  transition:
    background 0.3s,
    width 0.3s var(--ease-out);
}
.hero__dot.active {
  background: var(--c-white);
  width: 48px;
}
.hero__counter {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gap);
  z-index: 10;
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}
.hero__counter strong {
  color: var(--c-white);
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════
   SECTION BASE & HEADERS
═══════════════════════════════════════════════════════════ */
section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header--center {
  text-align: center;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-top: 0.5rem;
}
.section-title em {
  display: block;
  font-weight: 300;
  font-style: italic;
  color: var(--c-accent);
}

/* ═══════════════════════════════════════════════════════════
   CAROUSEL (Bootstrap override)
═══════════════════════════════════════════════════════════ */
.carousel-item {
  height: 30rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  color: #ffffff !important;
}
.carousel-item h3 {
  color: #ffffff !important;
  font-weight: bold;
}
.carousel-item p {
  color: #ffffff !important;
  text-align: justify;
}

/* ═══════════════════════════════════════════════════════════
   PERSONALIDAD
═══════════════════════════════════════════════════════════ */
.personalidad {
  background: var(--c-white);
}

.personalidad__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.personalidad__img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.personalidad__img-wrap img {
  height: 100%;
  transition: transform 1.2s var(--ease-out);
}
.personalidad__img-wrap:hover img {
  transform: scale(1.04);
}
.personalidad__img-wrap::after {
  content: "";
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  height: 60%;
  border: 1px solid var(--c-accent-lt);
  z-index: -1;
}

.personalidad__body p {
  font-size: clamp(0.9rem, 1.15vw, 1rem);
  font-style: italic;
  color: var(--c-warm);
  line-height: 1.9;
}
.personalidad__body p + p {
  margin-top: 1.25rem;
}

@media (max-width: 768px) {
  .personalidad__grid {
    grid-template-columns: 1fr;
  }
  .personalidad__img-wrap::after {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   CONCEPTO
═══════════════════════════════════════════════════════════ */
.concepto {
  background: var(--c-bg);
  text-align: center;
}
.concepto__intro {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.concepto__quote {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--c-warm);
  line-height: 1.9;
  margin-top: 1.25rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  height: 100%;
  transition: transform 0.8s var(--ease-out);
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 38, 33, 0);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  transition: background 0.4s;
}
.gallery-item:hover .gallery-item__overlay {
  background: rgba(43, 38, 33, 0.55);
}
.gallery-item__label {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--c-white);
  transform: translateY(8px);
  opacity: 0;
  transition:
    transform 0.4s var(--ease-out),
    opacity 0.4s;
}
.gallery-item:hover .gallery-item__label {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════
   TONOS
═══════════════════════════════════════════════════════════ */
.tonos {
  background: var(--c-bg);
}

.tonos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.tono-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.tono-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-out);
}
.tono-card:hover .tono-card__bg {
  transform: scale(1.05);
}

.tono-card__overlay {
  position: absolute;
  inset: 0;
}
.tono-card--light .tono-card__overlay {
  background: linear-gradient(
    to top,
    rgba(245, 242, 238, 0.96) 40%,
    rgba(245, 242, 238, 0.6) 80%,
    transparent
  );
}
.tono-card--dark .tono-card__overlay {
  background: linear-gradient(
    to top,
    rgba(43, 38, 33, 0.97) 40%,
    rgba(43, 38, 33, 0.6) 80%,
    transparent
  );
}
.tono-card--white .tono-card__overlay {
  background: linear-gradient(
    to top,
    rgba(250, 248, 245, 0.97) 40%,
    rgba(250, 248, 245, 0.6) 80%,
    transparent
  );
}

.tono-card__body {
  position: relative;
  z-index: 2;
  padding: 2rem 1.75rem 2.25rem;
}
.tono-card__num {
  font-family: var(--f-display);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--c-accent-lt);
}
.tono-card__title {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.tono-card--dark .tono-card__title,
.tono-card--dark .tono-card__text,
.tono-card--dark .tono-card__example {
  color: rgba(250, 248, 245, 0.9);
}

.tono-card__divider {
  width: 32px;
  height: 1px;
  background: var(--c-accent);
  margin-bottom: 1rem;
}
.tono-card__text {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--c-warm);
  margin-bottom: 1rem;
}
.tono-card--dark .tono-card__text {
  color: rgba(250, 248, 245, 0.7);
}

.tono-card__example {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--c-muted);
  border-left: 2px solid var(--c-accent);
  padding-left: 0.85rem;
  line-height: 1.7;
}
.tono-card--dark .tono-card__example {
  color: rgba(250, 248, 245, 0.55);
}

@media (max-width: 900px) {
  .tonos__grid {
    grid-template-columns: 1fr;
  }
  .tono-card {
    min-height: 420px;
  }
}

/* ═══════════════════════════════════════════════════════════
   PÚBLICO OBJETIVO
═══════════════════════════════════════════════════════════ */
.publico {
  background: var(--c-surface);
}

.publico__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.publico-card {
  padding: 2.5rem;
  background: var(--c-white);
  border-top: 3px solid var(--c-accent);
  transition:
    box-shadow 0.3s,
    transform 0.3s var(--ease-out);
}
.publico-card:hover {
  box-shadow: 0 16px 40px rgba(43, 38, 33, 0.1);
  transform: translateY(-4px);
}
.publico-card__title {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--c-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.publico-card__section {
  margin-top: 1.5rem;
}
.publico-card__section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 0.75rem;
  display: block;
}
.publico-card__list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--c-warm);
  line-height: 1.65;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--c-surface);
}
.publico-card__list li::before {
  content: "—";
  color: var(--c-accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

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

/* ═══════════════════════════════════════════════════════════
   LADO EMOCIONAL
═══════════════════════════════════════════════════════════ */
.emocional {
  background: var(--c-white);
}

.emocional__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.emocional-card {
  padding: 2.5rem 2.5rem 2.75rem;
  border: 1px solid var(--c-surface);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.emocional-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.emocional-card:hover::before {
  transform: scaleX(1);
}
.emocional-card:hover {
  border-color: transparent;
}

.emocional-card__icon {
  font-family: var(--f-display);
  font-size: 4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--c-accent-lt);
  margin-bottom: 1rem;
}
.emocional-card__title {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.emocional-card__text {
  font-size: 0.9rem;
  color: var(--c-warm);
  line-height: 1.8;
}

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

/* ═══════════════════════════════════════════════════════════
   LADO RACIONAL
═══════════════════════════════════════════════════════════ */
.racional {
  background: var(--c-dark);
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}
.racional::before {
  content: "KAVIA";
  position: absolute;
  font-family: var(--f-display);
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.racional__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}
.racional-card__title {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 1.25rem;
}
.racional-card__divider {
  width: 32px;
  height: 1px;
  background: var(--c-accent);
  margin-bottom: 1.25rem;
}
.racional-card__text {
  font-size: 0.9rem;
  color: rgba(250, 248, 245, 0.65);
  line-height: 1.85;
}

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

/* ═══════════════════════════════════════════════════════════
   SCROLL HORIZONTAL  (desktop)
   En móvil se convierte en scroll vertical normal — ver
   el bloque @media al final de esta sección y el JS companion.
═══════════════════════════════════════════════════════════ */
.horizontal-sticky-wrapper {
  position: relative;
  width: 100%;
  height: var(--horizontal-speed); /* espacio falso para el pin */
  background-color: #000;
}

.sticky-content {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.horizontal-track {
  display: flex;
  width: 300vw; /* 3 slides × 100vw */
  height: 100%;
  will-change: transform;
  transition: transform 0.1s linear;
}

.horizontal-item {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%; /* padding simétrico → conjunto centrado */
  box-sizing: border-box;
  overflow: hidden;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.horizontal-item__content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1600px; /* ligeramente más ancho para aprovechar la pantalla */
  gap: 6vw; /* más separación entre texto e imagen */
}

/* Columna izquierda — texto (más estrecha, pegada a la izquierda) */
.content-left {
  flex: 0 0 30%; /* ocupa el 30 % fijo, no crece */
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 0; /* texto bien a la izquierda */
}

.big-number {
  font-size: clamp(6rem, 15vw, 11rem);
  line-height: 0.9;
  margin: 0;
  padding: 0;
  letter-spacing: -4px;
  opacity: 0.9;
  color: #fff !important;
}

.item-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  margin: 1.5rem 0;
  color: #fff !important;
}

.item-description {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 100%;
  color: #b0b0b0;
}

/* Columna derecha — imagen (ocupa el espacio restante ~70 %) */
.content-right {
  flex: 1; /* crece para llenar todo lo que no usa .content-left */
  display: flex;
  justify-content: center; /* imagen centrada en su columna */
  align-items: stretch;
  height: 74vh; /* ~8 % más pequeña que antes (era 80vh) */
}

.content-right .featured-image {
  width: 100%;
  height: 100%;
  aspect-ratio: unset; /* deja que el height del padre mande */
  object-fit: cover;
}

/* ── MÓVIL: layout vertical ──────────────────────────────
   A partir de 1024 px el scroll horizontal se convierte en
   una lista vertical normal.  El JS companion lee este mismo
   breakpoint para desactivar el handler de scroll.
──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* 1. El wrapper ya no necesita la altura extra de pin */
  .horizontal-sticky-wrapper {
    height: auto;
  }

  /* 2. El contenedor deja de ser sticky */
  .sticky-content {
    position: relative;
    height: auto;
    overflow: visible;
    display: block;
  }

  /* 3. El track se convierte en columna */
  .horizontal-track {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    will-change: auto;
    transform: none !important; /* anula cualquier valor inline del JS */
    transition: none;
  }

  /* 4. Cada item ocupa solo lo que necesita */
  .horizontal-item {
    width: 100%;
    height: auto;
    min-height: unset;
    flex-shrink: 1;
    padding: clamp(2rem, 5vw, 3rem) 6%;
    align-items: center;
  }

  /* 5. Texto + imagen pasan a columna */
  .horizontal-item__content {
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    max-width: 100%;
  }

  .content-left {
    align-items: flex-start;
    width: 100%;
  }
  .content-right {
    width: 100%;
    height: auto;
  }

  /* 6. Ajuste tipográfico */
  .big-number {
    font-size: clamp(4rem, 18vw, 7rem);
    letter-spacing: -2px;
  }
  .item-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    margin: 1rem 0;
  }
  .item-description {
    max-width: 100%;
    font-size: 1rem;
  }

  /* 7. Imagen se ve completa */
  .featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  /* 8. Separador visual entre items */
  .horizontal-item + .horizontal-item {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
}

.featured-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.horizontal-item__title {
  font-family: var(--f-detail);
  font-size: 2rem;
  color: #fff !important;
  text-transform: uppercase;
  margin-bottom: 2rem;
  line-height: 1;
}
.horizontal-item__title em {
  font-style: italic;
  font-weight: 400;
  color: #a7a7a7;
}

.horizontal-item__img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   STATS FOOTER
═══════════════════════════════════════════════════════════ */
#statsFooter {
  background-color: var(--c-accent);
  min-height: 200px;
  display: flex;
  align-items: center;
  color: white;
}

.counter {
  font-size: calc(2rem + 1.5vw);
  font-weight: bold;
  margin-bottom: 0;
  transition: 0.3s ease;
}

/* Divider dentro de #statsFooter (sobreescribe el utility) */
#statsFooter .divider {
  width: 50px;
  height: 3px;
  background-color: white;
  margin: 10px auto;
}

.stat-label {
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.containerFooter h1,
.containerFooter h3 {
  color: #dfddd5 !important;
}

@media (max-width: 767px) {
  .containerFooter {
    padding: 20px 0;
  }
  .counter {
    font-size: 3rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER CONTACTO
═══════════════════════════════════════════════════════════ */
#footer {
  background: #0a0a0a;
  padding: 0;
  overflow: hidden;
}

.footer-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

/* Panel izquierdo */
.footer-contact__left {
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.footer-contact__left::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  width: 1px;
  height: 80%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
}

.footer-contact__tag {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 1.5rem;
}
.footer-contact__heading {
  font-family: var(--f-detail);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin: 0 0 1.6rem;
  letter-spacing: -0.02em;
}
.footer-contact__heading em {
  font-style: italic;
  color: #c9a96e;
}
.footer-contact__desc {
  font-family: var(--f-display);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
  max-width: 380px;
  margin-bottom: 2.8rem;
}

.footer-contact__info {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.footer-contact__info-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}
.footer-contact__info-item svg {
  width: 14px;
  height: 14px;
  stroke: #c9a96e;
  flex-shrink: 0;
}

/* Panel derecho — formulario */
.footer-contact__right {
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  background: #111010;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.4rem;
  position: relative;
}
.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form__label {
  font-family: var(--f-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.5rem;
  transition: color 0.25s;
}
.contact-form__field:focus-within .contact-form__label {
  color: #c9a96e;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--f-display);
  font-size: 0.88rem;
  font-weight: 300;
  padding: 0.6rem 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  transition:
    border-color 0.3s,
    color 0.3s;
}
.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  border-color: #c9a96e;
}

.contact-form__select {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.3);
}
.contact-form__select option {
  background: #1a1a1a;
  color: #fff;
}
.contact-form__select.has-value {
  color: #fff;
}

.contact-form__select-wrap {
  position: relative;
}
.contact-form__select-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.contact-form__textarea {
  resize: none;
  min-height: 80px;
  line-height: 1.7;
}

/* Línea animada */
.contact-form__underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #c9a96e;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-form__field:focus-within .contact-form__underline {
  width: 100%;
}

/* Submit */
.contact-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
  align-self: flex-start;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-form__submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #c9a96e;
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.contact-form__submit:hover::before {
  transform: translateX(0);
}
.contact-form__submit:hover {
  border-color: #c9a96e;
  color: #0a0a0a;
}
.contact-form__submit span,
.contact-form__submit svg {
  position: relative;
  z-index: 1;
}
.contact-form__submit svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.3s;
}
.contact-form__submit:hover svg {
  transform: translateX(4px);
}

/* Estado éxito */
.contact-form__success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.5rem 0;
}
.contact-form__success.visible {
  display: flex;
  animation: fadeUp 0.5s ease forwards;
}
.contact-form__success-icon {
  width: 44px;
  height: 44px;
  border: 1px solid #c9a96e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-form__success-icon svg {
  width: 18px;
  height: 18px;
  stroke: #c9a96e;
}
.contact-form__success h4 {
  font-family: var(--f-detail);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.contact-form__success p {
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  line-height: 1.7;
}

/* Barra inferior del footer */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(2rem, 5vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0a0a;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.footer-bottom .footer-logo {
  font-family: var(--f-detail);
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.12em;
  margin: 0;
  text-align: left;
}
.footer-bottom p {
  font-family: var(--f-display);
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-contact {
    grid-template-columns: 1fr;
  }
  .footer-contact__left::after {
    display: none;
  }
  .footer-contact__left {
    padding-bottom: 2rem;
  }
  .contact-form__row {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL TO TOP
═══════════════════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  width: 44px;
  height: 44px;
  background: var(--c-accent);
  color: var(--c-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    background 0.2s;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--c-dark);
}
.scroll-top svg {
  width: 18px;
  height: 18px;
}
