/* ─────────────────────────────────────────
   sections.css — Hero, Quote, Historia, Proceso,
                  Producto, Valores, Tepa, Contacto
   Tequila Mapelo © 2026
   Eduardo López
───────────────────────────────────────── */

section {
  position: relative;
  overflow: hidden;
}

/* ══ HERO ══════════════════════════════════ */
#hero {
  height: 100vh;
  min-height: 680px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  overflow: hidden;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 70% 60%, rgba(100, 140, 150, .07) 0%, transparent 65%),
    radial-gradient(ellipse 30% 50% at 20% 90%, rgba(201, 162, 85, .05) 0%, transparent 55%),
    var(--carbon);
  background-size: 200% 200%;
  background-position: 0% 0%;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 20, 20, .7) 0%, rgba(20, 20, 20, .3) 40%, rgba(20, 20, 20, .8) 100%),
    radial-gradient(ellipse at 60% 50%, rgba(100, 140, 150, .08) 0%, transparent 60%);
  pointer-events: none;
  will-change: transform;
}

.hero-vline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--side-pad);
  width: 1px;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(91, 143, 160, .2) 30%,
      rgba(91, 143, 160, .2) 70%,
      transparent 100%);
}

.hero-num {
  position: absolute;
  left: var(--side-pad);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(140px, 22vw, 280px);
  font-weight: 300;
  line-height: 1;
  color: rgba(250, 248, 245, .05);
  letter-spacing: -.05em;
  pointer-events: none;
  user-select: none;
}

.hero-side-text {
  position: absolute;
  right: var(--side-pad);
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center center;
  font-size: 9px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, .18);
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--side-pad) 80px;
  grid-column: 1;
  align-self: end;
}

.hero-eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--agave);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--agave);
  flex-shrink: 0;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(72px, 13vw, 180px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.02em;
  color: var(--perla);
  opacity: 0;
  transform: translateY(40px);
}

.hero-h1 em {
  font-style: italic;
  color: var(--agave);
  display: block;
  font-size: .52em;
  font-weight: 300;
}

.hero-h1 strong {
  display: block;
  font-weight: 600;
  perspective: 600px;
  transform-style: preserve-3d;
}

.hero-sub {
  margin-top: 32px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 2.4;
  max-width: 360px;
  opacity: 0;
  transform: translateY(20px);
}

/* ── Hero Right: Botella ── */
.hero-right {
  position: relative;
  z-index: 2;
  grid-column: 2;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 60px 40px;
  perspective: 800px;
}

.hero-right::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 140, 150, .12) 0%, transparent 70%);
  pointer-events: none;
  animation: heroPulse 4s ease-in-out infinite alternate;
}

.hero-bottle {
  max-height: 70vh;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  filter: drop-shadow(0 0 60px rgba(100, 140, 150, .15)) drop-shadow(0 20px 40px rgba(0, 0, 0, .4));
  animation: heroFloat 6s ease-in-out infinite;
  opacity: 0;
  transform: translateY(30px);
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes heroPulse {
  0% {
    transform: scale(1);
    opacity: .6;
  }

  100% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: var(--side-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  z-index: 3;
}

.hero-scroll span {
  font-size: 8px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: rgba(240, 234, 216, .25);
  writing-mode: vertical-rl;
}

.scroll-bar {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, rgba(91, 143, 160, .6), transparent);
}

/* ══ QUOTE ══════════════════════════════════ */
#quote {
  padding: var(--section-pad) var(--side-pad);
  background: var(--carbon2);
  border-top: 1px solid var(--border);
}

.quote-inner {
  max-width: 960px;
  margin: 0 auto;
}

.q-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--perla);
}

.q-text em {
  font-style: italic;
  color: var(--agave);
}

.q-attr {
  margin-top: 40px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 20px;
}

.q-attr::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--muted);
  flex-shrink: 0;
}

/* ══ HISTORIA ══════════════════════════════ */
#historia {
  padding: var(--section-pad) var(--side-pad);
  background: var(--carbon);
}

.hist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

.hist-right {
  padding-top: 80px;
}

.hist-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
}

.hist-title em {
  font-style: italic;
  color: var(--agave);
  display: block;
}

.hist-title strong {
  font-weight: 600;
  display: block;
}

.hist-body {
  font-size: 12px;
  line-height: 2.2;
  color: var(--muted);
  margin-top: 32px;
  max-width: 440px;
}

.hist-items {
  display: flex;
  flex-direction: column;
}

.hist-item {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
}

.hist-item:last-child {
  border-bottom: 1px solid var(--border);
}

.hist-year {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 300;
  color: var(--agave);
  line-height: 1;
  padding-top: 3px;
}

.hist-item-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--perla);
  margin-bottom: 8px;
}

.hist-item-body {
  font-size: 11px;
  line-height: 2.1;
  color: var(--muted);
}

/* ══ PROCESO ══════════════════════════════ */
#proceso {
  background: var(--carbon2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proceso-top {
  padding: 100px var(--side-pad) 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.proceso-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
}

.proceso-title em {
  font-style: italic;
  color: var(--tierra);
}

.proceso-row {
  display: flex;
  overflow-x: auto;
  gap: 0;
  padding: 0 var(--side-pad) 100px;
  scrollbar-width: none;
}

.proceso-row::-webkit-scrollbar {
  display: none;
}

.p-step {
  flex: 0 0 300px;
  padding: 48px 40px;
  border-left: 1px solid var(--border);
  position: relative;
  transition: background .3s;
}

.p-step:first-child {
  border-left: none;
}

.p-step:hover {
  background: rgba(255, 255, 255, .02);
}

.p-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
  color: rgba(140, 80, 64, .15);
  margin-bottom: 24px;
}

.p-name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--perla);
  margin-bottom: 16px;
}

.p-desc {
  font-size: 11px;
  line-height: 2.1;
  color: var(--muted);
}

.p-dot {
  position: absolute;
  top: 48px;
  right: 40px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tierra);
}

/* ══ PRODUCTO ══════════════════════════════ */
#producto {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--carbon);
}

.prod-vis {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0c0b0a 0%, #111416 60%, rgba(91, 143, 160, .08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-bg-word {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(100px, 18vw, 220px);
  font-weight: 600;
  letter-spacing: -.04em;
  color: rgba(240, 234, 216, .025);
  text-transform: uppercase;
  bottom: 40px;
  left: -10px;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.bottle-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 60px;
  width: 100%;
}

.prod-info {
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prod-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.prod-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--agave);
}

.prod-kicker-txt {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--agave);
}

.prod-name {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.prod-name em {
  font-style: italic;
  font-weight: 300;
  color: var(--agave);
  display: block;
  font-size: .55em;
}

.prod-rule {
  width: 48px;
  height: 1px;
  background: var(--agave);
  margin: 28px 0;
}

.prod-desc {
  font-size: 12px;
  line-height: 2.3;
  color: var(--muted);
  max-width: 400px;
  margin-bottom: 48px;
}

.prod-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  margin-bottom: 48px;
}

.spec-val {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  color: var(--perla);
  line-height: 1;
  margin-bottom: 6px;
}

.spec-lbl {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ══ VALORES ══════════════════════════════ */
#valores {
  padding: var(--section-pad) var(--side-pad);
  background: var(--carbon2);
  border-top: 1px solid var(--border);
}

.val-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.val-header {
  margin-bottom: 80px;
}

.val-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
}

.val-title em {
  font-style: italic;
  color: var(--gold);
}

.val-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.val-card {
  background: var(--carbon2);
  padding: 56px 44px;
  transition: background .3s;
  position: relative;
  overflow: hidden;
}

.val-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-smooth);
}

.val-card:hover {
  background: rgba(255, 255, 255, .02);
}

.val-card:hover::after {
  transform: scaleX(1);
}

.val-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 300;
  color: var(--agave);
  letter-spacing: .3em;
  margin-bottom: 28px;
}

.val-name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--perla);
  margin-bottom: 20px;
}

.val-text {
  font-size: 11px;
  line-height: 2.2;
  color: var(--muted);
}

/* ══ TEPA ══════════════════════════════════ */
#tepa {
  padding: var(--section-pad) var(--side-pad);
  background: var(--carbon);
  position: relative;
}

.tepa-ghost {
  position: absolute;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: clamp(100px, 22vw, 320px);
  font-weight: 600;
  letter-spacing: -.05em;
  color: rgba(91, 143, 160, .025);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  text-transform: uppercase;
  user-select: none;
}

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

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

.tepa-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 32px;
}

.tepa-title em {
  font-style: italic;
  color: var(--agave);
  display: block;
}

.tepa-body {
  font-size: 12px;
  line-height: 2.3;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 48px;
}

.tepa-stats {
  display: flex;
  gap: 52px;
}

.ts-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 300;
  color: var(--agave);
  line-height: 1;
  margin-bottom: 8px;
}

.ts-lbl {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--muted);
}

.tepa-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══ CONTACTO ══════════════════════════════ */
#contacto {
  padding: var(--section-pad) var(--side-pad);
  background: var(--carbon3);
  text-align: center;
}

.ct-inner {
  max-width: 760px;
  margin: 0 auto;
}

.ct-eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.ct-eyebrow::before,
.ct-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.ct-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.02em;
  margin-bottom: 40px;
}

.ct-title em {
  font-style: italic;
  color: var(--agave);
  display: block;
}

.ct-body {
  font-size: 11px;
  line-height: 2.4;
  color: var(--muted);
  margin-bottom: 56px;
}

.ct-alt {
  display: block;
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted2);
  text-decoration: none;
  margin-top: 16px;
  transition: color .3s;
}

.ct-alt:hover {
  color: var(--agave);
}

.ct-sep {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(201, 162, 85, .25), transparent);
  margin: 64px auto;
}

.ct-socials {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.ct-soc {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--muted2);
  text-decoration: none;
  transition: color .3s;
}

.ct-soc:hover {
  color: var(--agave);
}

/* ══ RESPONSIVE ══════════════════════════ */

/* ── Tablet landscape (≤1100px) ── */
@media (max-width: 1100px) {
  .hist-grid {
    gap: 60px;
  }

  .tepa-grid {
    gap: 60px;
  }

  .bottle-wrap {
    padding: 60px 30px;
  }

  .prod-info {
    padding: 80px 48px;
  }

  .hero-right {
    padding: 40px 20px;
  }

  .val-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Tablet portrait / small laptop (≤900px) ── */
@media (max-width: 900px) {

  /* Hero */
  #hero {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  .hero-right {
    display: none;
  }

  .hero-content {
    grid-column: 1;
    padding-bottom: 120px;
  }

  .hero-vline,
  .hero-side-text,
  .hero-num {
    display: none;
  }

  .hero-scroll {
    right: var(--side-pad);
  }

  /* Historia */
  .hist-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hist-right {
    padding-top: 0;
  }

  /* Proceso */
  .p-step {
    flex: 0 0 260px;
    padding: 36px 28px;
  }

  /* Producto */
  #producto {
    grid-template-columns: 1fr;
  }

  .prod-vis {
    min-height: 50vw;
  }

  .prod-info {
    padding: 60px var(--side-pad);
  }

  .bottle-wrap {
    padding: 48px 24px;
  }

  /* Valores */
  .val-grid {
    grid-template-columns: 1fr;
  }

  .val-card {
    padding: 40px 32px;
  }

  /* Tepa */
  .tepa-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .tepa-right,
  .tepa-ghost {
    display: none;
  }

  .tepa-stats {
    gap: 36px;
  }

  /* Contacto */
  .ct-socials {
    gap: 28px;
    flex-wrap: wrap;
  }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {

  /* Hero */
  .hero-content {
    padding: 0 var(--side-pad) 80px;
  }

  .hero-scroll {
    display: none;
  }

  /* Historia */
  .hist-item {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .hist-year {
    font-size: 15px;
  }

  /* Proceso */
  .p-step {
    flex: 0 0 220px;
    padding: 28px 20px;
  }

  .p-num {
    font-size: 48px;
    margin-bottom: 16px;
  }

  /* Producto */
  .prod-vis {
    min-height: 280px;
  }

  .prod-specs {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .spec-val {
    font-size: 26px;
  }

  .prod-name {
    font-size: clamp(40px, 10vw, 64px);
  }

  /* Valores */
  .val-header {
    margin-bottom: 48px;
  }

  /* Contacto */
  .ct-sep {
    height: 48px;
    margin: 40px auto;
  }

  .ct-socials {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .ct-body {
    margin-bottom: 36px;
  }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {

  /* Hero */
  .hero-h1 {
    font-size: clamp(52px, 15vw, 90px);
  }

  .hero-sub {
    font-size: 9px;
  }

  .hero-eyebrow {
    font-size: 8px;
    letter-spacing: .35em;
  }

  /* Producto */
  .prod-specs {
    grid-template-columns: 1fr 1fr;
  }

  .prod-desc {
    font-size: 11px;
  }

  .bottle-wrap {
    padding: 32px 16px;
  }

  /* Proceso */
  .proceso-top {
    padding: 60px var(--side-pad) 32px;
  }

  .p-step {
    flex: 0 0 200px;
    padding: 24px 16px;
  }

  /* Contacto */
  .ct-eyebrow::before,
  .ct-eyebrow::after {
    width: 20px;
  }

  /* Historial */
  .hist-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hist-year {
    font-size: 13px;
  }
}