/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: #0e0e0c;
  color: #f5f3ee;
  font-family: 'IBM Plex Mono', monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}
a, button { cursor: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Variables ── */
:root {
  --gold:    #8B6A1A;
  --dark:    #1c1c1a;
  --olive:   #4a5530;
  --orange:  #c4501e;
  --black:   #0e0e0c;
  --white:   #f5f3ee;
  --muted:   rgba(245,243,238,0.45);
  --ease:    cubic-bezier(.16,1,.3,1);
  --pad:     clamp(24px, 5vw, 80px);
  --section: clamp(80px, 10vw, 140px);
  --max-w:   1200px;
}

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 1px; height: 1px;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  will-change: left, top;
}
.cursor::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 28px; height: 1px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease);
}
.cursor::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 1px; height: 28px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease);
}
.cursor--expanded::before { transform: translate(-50%, -50%) scaleX(1.8) scaleY(3); }
.cursor--expanded::after  { transform: translate(-50%, -50%) scaleY(1.8) scaleX(3); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.9s var(--ease), transform 1.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal--fast {
  transition-duration: 1.1s;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--pad);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(14,14,12,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(245,243,238,0.06);
}

.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: opacity 0.2s ease;
}
.nav-logo:hover { opacity: 0.65; }
.nav-logo span { font-style: italic; }

.nav-links {
  display: flex;
  gap: 2.2rem;
}
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--white);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 1; }

.nav-cta {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--black);
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  font-weight: 700;
  transition: transform 0.35s var(--ease), opacity 0.35s ease, translateY 0.45s ease;
  will-change: transform, opacity;
}
.nav-cta.is-hidden {
  transform: translateY(-160%);
  opacity: 0;
  pointer-events: none;
}
.nav-cta:hover { transform: scale(1.05); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--section) + 60px) var(--pad) var(--section);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/hero.jpg');
  background-size: cover;
  background-position: center center;
  will-change: transform;
  filter: brightness(0.65) contrast(1.1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(14,14,12,0.38) 0%, rgba(14,14,12,0.05) 35%, rgba(14,14,12,0.62) 100%),
    radial-gradient(ellipse at 65% 50%, transparent 40%, rgba(14,14,12,0.4) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 6rem);
}

.hero__top { max-width: 460px; }

.hero__logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
  line-height: 1;
}
.hero__logo span { font-style: italic; }

.hero__desc { font-size: clamp(0.8rem, 1.4vw, 0.95rem); line-height: 1.7; }

.hero__claim {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-align: right;
  align-self: flex-end;
  max-width: 900px;
}
.hero__claim span {
  display: block;
  will-change: transform;
}

/* ── Ticker ── */
.ticker {
  overflow: hidden;
  background: var(--gold);
  padding: 0.9rem 0;
  border-top: 1px solid rgba(245,243,238,0.1);
  border-bottom: 1px solid rgba(245,243,238,0.1);
}
.ticker__track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  width: max-content;
}
.ticker__track span {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}
.ticker__dot { opacity: 0.4 !important; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Sections Base ── */
.section {
  position: relative;
  padding: var(--section) var(--pad);
  overflow: hidden;
}
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.3) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: 0;
}

.section--gold    { background: var(--gold); }
.section--dark    { background: var(--dark); }
.section--olive   { background: var(--olive); }
.section--orange  { background: var(--orange); }
.section--black   { background: var(--black); }

.container {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-logo {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  right: var(--pad);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  font-weight: 800;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

/* ── Typography ── */
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.78rem, 1.3vw, 0.9rem);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.text-block { max-width: 680px; }
.mt-xl { margin-top: clamp(3rem, 6vw, 5rem); }

/* ── Lists ── */
.list-clean li { margin-bottom: 0.3rem; }
.list-dot li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.2rem;
}
.list-dot li::before {
  content: '·';
  position: absolute;
  left: 0;
  opacity: 0.6;
}

/* ── Planes ── */
.plan {
  position: relative;
  border-top: 1px solid rgba(245,243,238,0.2);
  padding: clamp(2rem, 4vw, 3.5rem) 0 1rem;
  overflow: hidden;
}
.plan:first-of-type { border-top: none; }

.plan__watermark {
  position: absolute;
  top: 1rem; right: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

.plan__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.plan__includes { margin-top: 1.5rem; }
.plan__ideal { font-size: 0.75rem; opacity: 0.55; margin-top: 1rem; }

.plan__price {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: rgba(0,0,0,0.28);
  padding: 1.2rem 1.5rem;
  margin-top: 1.8rem;
  border-left: 2px solid rgba(245,243,238,0.3);
}
.plan__label { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.5; }
.plan__amount {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.plan__iva { font-size: 0.7rem; opacity: 0.5; }

/* ── Metodología ── */
.metodologia__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: var(--max-w);
  margin: 0 auto;
}
.metodologia__left {
  position: sticky;
  top: clamp(80px, 10vw, 120px);
  height: fit-content;
}
.metodologia__steps {
  display: flex;
  flex-direction: column;
}
.metodologia__step {
  border-top: 1px solid rgba(245,243,238,0.25);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.step__badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 4px;
}
.step__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.step__sub {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 0.6rem;
}

.metodologia__claim {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  line-height: 1.6;
  border-top: 1px solid rgba(245,243,238,0.25);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* ── Complementos ── */
.complementos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.complemento {
  border-top: 1px solid rgba(245,243,238,0.1);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: background 0.3s ease;
}
.complemento:nth-child(odd)  { border-right: 1px solid rgba(245,243,238,0.1); }
.complemento:hover { background: rgba(245,243,238,0.03); }

.complemento__name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.complemento__price {
  font-size: 1rem;
  margin-top: 1rem;
  opacity: 0.9;
}

/* ── Photo Break ── */
.photo-break {
  position: relative;
  height: 65vh;
  min-height: 440px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad);
}
.photo-break__img {
  position: absolute;
  inset: -20% -5%;
  background-image: url('assets/img/break.jpg');
  background-size: cover;
  background-position: center 35%;
  will-change: transform;
  filter: grayscale(10%) contrast(1.05) brightness(0.75);
}
.photo-break__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(14,14,12,0.35) 0%, rgba(14,14,12,0.05) 45%, rgba(14,14,12,0.75) 100%);
  pointer-events: none;
}
.photo-break__caption {
  position: relative;
  z-index: 1;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin: 0;
  max-width: 540px;
}

/* ── Section photo bg (subtle, reusable) ── */
.section__photo-bg {
  position: absolute;
  inset: 0;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center 40%;
  opacity: 0.10;
  filter: grayscale(30%) brightness(0.85);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* ── Contacto ── */
.contact__cta {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin: 2.5rem 0 1rem;
}
.contact__list { margin-top: 0.5rem; }
.contact__list a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(245,243,238,0.4);
  transition: text-decoration-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.75;
}
.contact__list a:hover {
  opacity: 1;
  text-decoration-color: rgba(245,243,238,1);
}

/* ── WhatsApp Button ── */
.wa-btn {
  position: fixed;
  bottom: clamp(1.5rem, 3vw, 2.5rem);
  right: clamp(1.5rem, 3vw, 2.5rem);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(14,14,12,0.92);
  border: 1px solid rgba(37,211,102,0.2);
  color: var(--white);
  padding: 0.85rem;
  border-radius: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  overflow: hidden;
  transition: padding 0.45s var(--ease), gap 0.45s var(--ease),
              background 0.3s ease, border-color 0.3s ease;
  animation: wa-enter 0.7s var(--ease) 2.5s both;
}
.wa-btn:hover {
  padding: 0.85rem 1.1rem 0.85rem 0.85rem;
  gap: 0.65rem;
  background: rgba(18,32,18,0.96);
  border-color: rgba(37,211,102,0.45);
}
.wa-btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.wa-btn:hover .wa-btn__icon { transform: scale(1.1); }

.wa-btn__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.45s var(--ease), opacity 0.3s ease 0.1s;
}
.wa-btn:hover .wa-btn__label {
  max-width: 120px;
  opacity: 0.85;
}

.wa-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: wa-pulse 3.5s ease-out 3.2s infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@keyframes wa-enter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ── Footer ── */
.footer {
  background: #0a0a08;
  padding: clamp(3rem, 6vw, 5rem) var(--pad) clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(245,243,238,0.06);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(245,243,238,0.06);
}
.footer__logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.8rem;
}
.footer__logo em { font-style: italic; }
.footer__tagline { font-size: 0.78rem; opacity: 0.45; line-height: 1.6; }

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__col-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.22;
  margin-bottom: 0.4rem;
}
.footer__col a {
  font-size: 0.78rem;
  opacity: 0.45;
  transition: opacity 0.2s ease;
  line-height: 1.6;
}
.footer__col a:hover { opacity: 0.85; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer__bottom span {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.25;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .complementos__grid { grid-template-columns: 1fr; }
  .complemento:nth-child(odd) { border-right: none; }
  .complemento { border-top: 1px solid rgba(245,243,238,0.1); border-right: none; padding: 1.5rem 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  body { cursor: auto; }
  a, button { cursor: auto; }
  .cursor { display: none; }
  .metodologia__grid { grid-template-columns: 1fr; }
  .metodologia__left { position: static; }
  .nav-cta { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    cursor: pointer;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: rgba(14,14,12,0.97);
    backdrop-filter: blur(20px);
    padding: 2rem var(--pad);
    gap: 1.4rem;
    border-bottom: 1px solid rgba(245,243,238,0.06);
    z-index: 99;
  }
  .nav-links.open a { font-size: 0.9rem; opacity: 1; }
  .hero__claim { font-size: clamp(3rem, 16vw, 5rem); }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .complementos__grid { grid-template-columns: 1fr; }
}
