@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&display=swap');

/* =============================================
   NOSOTROS PAGE â€” Mala Fama Design System
   ============================================= */

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Staggered reveal for value cards */
.nos-values__grid .nos-value-card:nth-child(2) { transition-delay: 0.1s; }
.nos-values__grid .nos-value-card:nth-child(3) { transition-delay: 0.2s; }
.nos-values__grid .nos-value-card:nth-child(4) { transition-delay: 0.3s; }
.nos-timeline__items .nos-timeline__item:nth-child(2) { transition-delay: 0.15s; }
.nos-timeline__items .nos-timeline__item:nth-child(3) { transition-delay: 0.30s; }

/* ===== HERO ===== */
.nos-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-bottom: 0;
  overflow: hidden;
  margin-top: 0;
}

.nos-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.04);
  animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1); }
}

.nos-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.2) 100%
  );
  z-index: 1;
}

.nos-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  width: 100%;
  /* Delay reducido: el loader ya demora 550ms antes de soltar la
     animación, no hace falta agregar otros 300ms encima. */
  animation: heroFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== DESKTOP HERO — dos columnas ===== */
@media (min-width: 901px) {
  .nos-hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0 80px;
    padding-bottom: 80px;
  }

  /* “2016” gigante en outline — elemento decorativo de fondo */
  .nos-hero__year-bg {
    position: absolute;
    right: -1vw;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: clamp(220px, 28vw, 460px);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.055);
    letter-spacing: -0.04em;
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    animation: yearFadeIn 1.6s ease 0.15s both;
  }

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

  /* Columna derecha — quote con borde azul */
  .nos-hero__right {
    display: flex;
    align-items: center;
    padding-left: 64px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideFromRight 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.1) 0.25s both;
  }

  @keyframes slideFromRight {
    from { opacity: 0; transform: translateX(36px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  .nos-hero__quote {
    font-family: var(--font-family);
    font-style: italic;
    font-size: clamp(15px, 1.5vw, 22px);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.005em;
    color: rgba(250, 250, 250, 0.86);
    padding-left: 20px;
    border-left: 2px solid #2b52b3;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
    max-width: 36ch;
  }

  .nos-hero__quote .nos-hero__line {
    display: block;
  }

  /* Barra de stats al pie del hero */
  .nos-hero__pillars {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px var(--space-8);
    animation: heroFadeUp 0.6s ease 0.45s both;
  }

  .nos-hero__pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 44px;
  }

  .nos-hero__pillar-num {
    font-family: var(--font-display);
    font-size: clamp(16px, 1.6vw, 26px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
  }

  .nos-hero__pillar-label {
    font-family: var(--font-family);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin-top: 5px;
  }

  .nos-hero__pillar-sep {
    color: rgba(255, 255, 255, 0.15);
    font-size: 22px;
    line-height: 1;
    margin-bottom: 14px;
  }
}

/* Tablets (641–900px): ocultar todo lo nuevo */
@media (max-width: 900px) {
  .nos-hero__right,
  .nos-hero__pillars,
  .nos-hero__year-bg { display: none; }
}


.nos-hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 16px;
}

.nos-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 9rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 24px;
  transform: rotate(-1.2deg);
  filter: drop-shadow(2px 4px 0 rgba(0, 0, 0, 0.4));
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Fila MALA + FAMA */
.nos-hero__title-row {
  display: flex;
  align-items: baseline;
  line-height: 0.88;
}

.nos-hero__title-mala {
  color: #ffffff;
  display: inline-block;
}

.nos-hero__title-fama {
  color: #2b52b3;
  display: inline-block;
  margin-left: 0.07em;
  transform: rotate(2deg) translateY(-0.03em);
  text-shadow:
    -1px 1px 0 rgba(20, 30, 100, 0.6),
    3px 3px 0 rgba(0, 0, 0, 0.35);
}

/* "historia" — tipografía rústica de cartel de época */
.nos-hero__title-historia {
  font-family: 'Rye', Georgia, serif;
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  font-size: 0.38em;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.18em;
  display: block;
  margin-top: 14px;
  padding-left: 0.2em;
  position: relative;
  text-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 0, 0, 0.3);
}

.nos-hero__title-historia::before,
.nos-hero__title-historia::after {
  content: '—';
  font-family: Georgia, serif;
  font-size: 0.85em;
  opacity: 0.45;
  letter-spacing: 0;
}
.nos-hero__title-historia::before { margin-right: 0.5em; }
.nos-hero__title-historia::after  { margin-left: 0.5em; }

.nos-hero__sub {
  font-family: var(--font-family);
  font-style: italic;
  font-size: clamp(15px, 1.45vw, 22px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.005em;
  color: rgba(250, 250, 250, 0.86);
  margin: 18px 0 28px 2px;
  max-width: 42ch;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  position: relative;
  padding-left: 18px;
  border-left: 2px solid #2b52b3;
}

.nos-hero__line {
  display: block;
  position: relative;
}

.nos-hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.4);
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== SECTION BASE ===== */
.nos-section {
  padding: 80px var(--space-8);
  background: var(--color-bg);
}

.nos-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== SHARED TYPOGRAPHY ===== */
.nos-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2b52b3;
  margin-bottom: 12px;
}
.nos-label--light { color: rgba(43, 82, 179,0.85); }

.nos-heading {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color-black);
  margin-bottom: 32px;
}
.nos-heading--light { color: var(--color-white); }

/* Split MALAFAMA â€” mitad negro, "fama" en rojo sangre (igual que el home hero) */
.nos-heading--split {
  display: inline-flex;
  align-items: baseline;
  line-height: 0.88;
}
.nos-heading__mala {
  color: var(--color-black);
}
.nos-heading__fama {
  color: #2b52b3;
  margin-left: 0.04em;
  transform: rotate(1.5deg) translateY(-0.02em);
  display: inline-block;
  text-shadow:
    -1px 1px 0 rgba(20, 30, 100, 0.5),
    2px 2px 0 rgba(0, 0, 0, 0.12);
}

.nos-body {
  font-size: 17px;
  color: var(--color-gray-600);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 20px;
}
.nos-body strong { color: var(--color-black); font-weight: 700; }
.nos-body em     { font-style: italic; color: var(--color-black); }

/* ===== ORIGIN SECTION ===== */
.nos-origin .nos-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.nos-origin__text { display: flex; flex-direction: column; }

.nos-cards-hint {
  font-size: 13px;
  color: var(--color-gray-400);
  font-style: italic;
  margin-top: 8px;
}

/* ===================================
   TRUCO CARD FAN
   =================================== */
.nos-cards-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  height: 600px; /* mÃ¡s alto para llenar la columna del texto */
}

/* Base card */
.nos-card {
  position: absolute;
  bottom: 70px;
  left: 50%;
  width: 290px;
  height: 450px;
  background: #fdf6e3;
  border-radius: 14px;
  border: none;
  padding: 0;
  cursor: pointer;
  transform-origin: 50% 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
  will-change: transform;
}

/* Double-border inset like a real naipe */
.nos-card__inner {
  position: absolute;
  inset: 6px;
  border: 1.5px solid #2a1a0a; /* Darker border for classic naipe look */
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  overflow: hidden;
  pointer-events: none;
}

.nos-card--left {
  transform: translateX(-50%) rotate(-18deg) translateY(10px);
  z-index: 1;
}
.nos-card--center {
  transform: translateX(-50%) rotate(0deg);
  z-index: 3;
}
.nos-card--right {
  transform: translateX(-50%) rotate(18deg) translateY(10px);
  z-index: 2;
}

/* Hover lifts each card */
.nos-card--left:hover  { transform: translateX(-50%) rotate(-18deg) translateY(-20px); box-shadow: 0 20px 60px rgba(0,0,0,0.35); z-index: 10; }
.nos-card--center:hover{ transform: translateX(-50%) rotate(0deg)   translateY(-20px); box-shadow: 0 20px 60px rgba(0,0,0,0.35); z-index: 10; }
.nos-card--right:hover { transform: translateX(-50%) rotate(18deg)  translateY(-20px); box-shadow: 0 20px 60px rgba(0,0,0,0.35); z-index: 10; }

/* Corners â€” roman numeral + suit */
.nos-card__corner {
  position: absolute;
  font-family: 'IM Fell English', serif;
  font-size: 14px;
  font-weight: 700;
  color: #2a1a0a;
  line-height: 1;
}
.nos-card__corner--tl { top: 4px;  left: 7px; }
.nos-card__corner--br { bottom: 4px; right: 7px; transform: rotate(180deg); }

/* Spanish Card Breaks (Pintas) */
.nos-card__breaks {
  position: absolute;
  top: -2px; bottom: -2px; left: 0; right: 0;
  pointer-events: none;
}
.nos-card__breaks::before, .nos-card__breaks::after {
  content: "";
  position: absolute;
  height: 4px;
  background: #fdf6e3; /* card body color to hide the border */
}

/* Card 1: 1 gap (Copas) */
.nos-card__breaks--1::before { top: 0; left: 50%; transform: translateX(-50%); width: 18px; }
.nos-card__breaks--1::after  { bottom: 0; left: 50%; transform: translateX(-50%); width: 18px; }

/* Card 2: 2 gaps (Espadas) */
.nos-card__breaks--2::before { top: 0; left: 50%; transform: translateX(-50%); width: 44px; background: transparent; border-left: 14px solid #fdf6e3; border-right: 14px solid #fdf6e3; }
.nos-card__breaks--2::after  { bottom: 0; left: 50%; transform: translateX(-50%); width: 44px; background: transparent; border-left: 14px solid #fdf6e3; border-right: 14px solid #fdf6e3; }

/* Card 3: 3 gaps (Bastos) */
.nos-card__breaks--3::before { 
  top: 0; left: 50%; transform: translateX(-50%); width: 70px; 
  background: linear-gradient(90deg, #fdf6e3 0%, #fdf6e3 14px, transparent 14px, transparent 28px, #fdf6e3 28px, #fdf6e3 42px, transparent 42px, transparent 56px, #fdf6e3 56px, #fdf6e3 70px); 
}
.nos-card__breaks--3::after  {
  bottom: 0; left: 50%; transform: translateX(-50%); width: 70px; 
  background: linear-gradient(90deg, #fdf6e3 0%, #fdf6e3 14px, transparent 14px, transparent 28px, #fdf6e3 28px, #fdf6e3 42px, transparent 42px, transparent 56px, #fdf6e3 56px, #fdf6e3 70px); 
}

/* Card body (center artwork) */
.nos-card__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  width: 100%;
}

.nos-card__img-logo {
  width: 125px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.nos-card__img-cacique {
  width: 140px;
  object-fit: contain;
  border-radius: 4px;
  filter: sepia(0.15);
}

/* Poem card body */
.nos-card__body--poem {
  flex-direction: column;
  text-align: center;
  gap: 6px;
}

.nos-card__poem-title {
  font-family: 'IM Fell English', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #2a1a0a;
  margin-bottom: 4px;
}

.nos-card__poem-text {
  font-family: 'IM Fell English', serif;
  font-size: 9.5px;
  font-style: italic;
  color: #3a2a1a;
  line-height: 1.7;
}

/* Card label at top (visible above the card) */
.nos-card__label {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.nos-card:hover .nos-card__label { opacity: 1; }

/* ===================================
   CARD MODAL
   =================================== */
.nos-modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nos-modal--open {
  pointer-events: auto;
  opacity: 1;
}

.nos-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
}

.nos-modal__card {
  position: relative;
  z-index: 1;
  background: #fdf6e3;
  border-radius: 20px;
  border: 2px solid #c8ab6e;
  width: min(480px, 90vw);
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 40px 120px rgba(0,0,0,0.35);
}
.nos-modal--open .nos-modal__card {
  transform: translateY(0) scale(1);
}

/* Inner double border */
.nos-modal__card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(200,171,110,0.5);
  border-radius: 14px;
  pointer-events: none;
}

.nos-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3a2a1a;
  transition: background 0.2s ease;
}
.nos-modal__close:hover { background: rgba(0,0,0,0.15); }

.nos-modal__suit {
  font-size: 28px;
  color: #2a1a0a;
  line-height: 1;
}
.nos-modal__suit--bottom { transform: rotate(180deg); }

.nos-modal__title {
  font-family: 'IM Fell English', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2a1a0a;
  text-align: center;
  text-transform: uppercase;
}

.nos-modal__divider {
  width: 60px;
  height: 1px;
  background: #c8ab6e;
}

.nos-modal__body {
  width: 100%;
  text-align: center;
}

/* ===================================
   TIMELINE â€” Bottle Label Unfurled
   =================================== */
.nos-bottle-timeline {
  background: #0f0a04;
  padding: 100px var(--space-8) 120px;
  position: relative;
  overflow: hidden;
}

/* Subtle horizontal wood grain lines */
.nos-bottle-timeline::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 28px,
    rgba(255,255,255,0.018) 28px,
    rgba(255,255,255,0.018) 29px
  );
  pointer-events: none;
}

.nos-bottle-timeline__inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.nos-bt-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 20px;
  min-height: 800px;
}

/* --- THE REAL BOTTLE IMAGE --- */
.nos-bt-real-bottle {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  height: 900px; /* Increased drastically to match the huge layout */
  width: auto;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,1));
}

/* --- THE WIDE UNFURLED LABEL --- */
.nos-bt-label {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1240px;
  background: #150f0a; /* Dark espresso brown */
  /* subtle vertical texture */
  background-image: repeating-linear-gradient(
    90deg,
    rgba(200,171,110,0.015) 0px,
    rgba(200,171,110,0.015) 1px,
    transparent 1px,
    transparent 20px
  );
  border: 1px solid rgba(200,171,110,0.2);
  border-radius: 4px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  display: flex;
  color: #fff;
  font-family: var(--font-body);
  padding: 40px 0;
  /* The label is centered vertically over the bottle */
  margin-top: 140px;
}

/* Decorative top/bottom accent lines across the entire label */
.nos-bt-label::before,
.nos-bt-label::after {
  content: '';
  position: absolute;
  left: 32px; right: 32px;
  height: 1.5px;
  background: #c8ab6e;
}
.nos-bt-label::before { top: 24px; }
.nos-bt-label::after  { bottom: 24px; }

/* 3 main columns */
.nos-bt-label__wing {
  flex: 0 0 280px;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nos-bt-label__wing--left { border-right: 1px solid rgba(200,171,110,0.15); }
.nos-bt-label__wing--right{ border-left:  1px solid rgba(200,171,110,0.15); }

.nos-bt-label__center {
  flex: 1;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* --- Metadata (Wings) --- */
.nos-bt-meta,
.nos-bt-stats {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(253,240,216,0.7);
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  letter-spacing: 0.02em;
}
.nos-bt-meta h4,
.nos-bt-stats h4 {
  font-family: 'IM Fell English', serif;
  font-size: 24px;
  color: #c8ab6e;
  font-weight: normal;
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.nos-bt-meta__warnings {
  margin: 32px 0;
}
.nos-bt-meta__warnings svg {
  margin-bottom: 8px;
  color: #2b52b3;
}
.nos-bt-meta__warnings p {
  margin-bottom: 12px;
  font-size: 10px;
}

.nos-bt-barcode {
  margin-top: auto;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0;
}
.nos-bt-barcode span { font-size: 14px; font-family: 'IM Fell English', serif; font-weight: normal; color: #c8ab6e;}
.nos-bt-barcode__bars {
  width: 120px;
  height: 32px;
  background: repeating-linear-gradient(90deg, #fdf0d8, #fdf0d8 2px, transparent 2px, transparent 4px, #fdf0d8 4px, #fdf0d8 5px, transparent 5px, transparent 8px);
  margin-top: 8px;
  opacity: 0.8;
}

/* Specs Table */
.nos-bt-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  border: 1px solid rgba(200,171,110,0.3);
}
.nos-bt-table td {
  padding: 8px 12px;
  border: 1px solid rgba(200,171,110,0.3);
  font-size: 11px;
}
.nos-bt-table tr td:first-child { font-weight: normal; color: #c8ab6e; width: 45%; }
.nos-bt-table tr td:last-child  { font-weight: bold; color: #fdf0d8; text-align: center; }

.nos-bt-domain {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #c8ab6e;
}

/* --- Center Timeline grid --- */
.nos-bt-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 24px;
}

.nos-bt-step {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* the timeline track line */
.nos-bt-step::before {
  content: '';
  position: absolute;
  top: 14px; left: 0; right: -24px;
  height: 1px;
  background: rgba(200,171,110,0.3);
  z-index: 0;
}
.nos-bt-timeline-grid .nos-bt-step:last-child::before { display: none; }

.nos-bt-step__year {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: #c8ab6e;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  display: inline-flex;
  background: #150f0a;
  padding-right: 12px;
}
.nos-bt-step__year::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2b52b3;
}
.nos-bt-step__year { padding-left: 16px; }

.nos-bt-step__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fdf0d8;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.nos-bt-step__desc {
  font-size: 12px;
  color: rgba(253,240,216,0.6);
  line-height: 1.5;
}

/* Center Bottom Brand block & Background Art */
.nos-bt-label__brand {
  margin-top: 100px; /* Increased to avoid overlap with grid */
  text-align: center;
  margin-bottom: -10px;
  position: relative;
  width: 100%;
}
.nos-bt-label__bg-art {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: auto;
  opacity: 0.15;
  mix-blend-mode: color-dodge;
  pointer-events: none;
  z-index: 0;
}
.nos-bt-label__brand-content {
  position: relative;
  z-index: 1;
}
.nos-bt-label__abv {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #c8ab6e;
  margin-bottom: 4px;
}
.nos-bt-label__name {
  font-family: 'IM Fell English', serif;
  font-size: clamp(36px, 4vw, 64px);
  font-weight: normal;
  color: #2b52b3;
  line-height: 0.85;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
.nos-bt-label__style {
  font-size: 12px;
  letter-spacing: 0.4em;
  font-weight: 700;
  color: #c8ab6e;
}

/* Responsive */
@media (max-width: 1200px) {
  .nos-bt-label {
    flex-direction: column;
    padding: 60px 40px;
    margin-top: 200px; /* lower so bottle remains visible at top */
  }
  .nos-bt-label__wing { flex: none; width: 100%; border: none; padding: 0; margin-bottom: 40px; }
  .nos-bt-label__wing--right { margin-bottom: 0; margin-top: 40px; }
  .nos-bt-label__center { padding: 0; border-top: 1px solid rgba(200,171,110,0.15); border-bottom: 1px solid rgba(200,171,110,0.15); padding: 40px 0; }
  .nos-bt-container { min-height: auto; }
  .nos-bt-real-bottle { display: none; } /* Hide bottle on mobile to save space */
}
@media (max-width: 800px) {
  .nos-bt-timeline-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nos-bt-step::before { display: none; }
}
@media (max-width: 500px) {
  .nos-bt-timeline-grid { grid-template-columns: 1fr; }
  .nos-bottle-timeline { padding: 60px var(--space-4); }
  .nos-bt-label__name { font-size: 44px; }
}



/* ===================================
   VALORES / FILOSOFÃA â€” Artisanal Labels
   =================================== */
.nos-values {
  background: var(--color-bg); /* Dark background */
  padding: 120px var(--space-4) 140px;
  position: relative;
}

.nos-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1400px;
  margin: 60px auto 0;
}

.nos-value-card {
  /* Artisanal Paper / Label look */
  background-color: #fdf0d8; /* Creamy paper */
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.04"/%3E%3C/svg%3E');
  padding: 60px 40px 50px;
  text-align: center;
  position: relative;
  color: #110b07;
  /* Deckled edge (rough cut paper) effect via clip-path */
  clip-path: polygon(
    0% 2%, 2% 0%, 98% 1%, 100% 3%, 
    99% 98%, 97% 100%, 3% 99%, 0% 97%, 
    1% 50%
  );
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 2px;
}

/* Simulated stamp border inner */
.nos-value-card::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(43, 82, 179, 0.25); /* Faint red border */
  pointer-events: none;
}

.nos-value-card:hover {
  transform: translateY(-12px) rotate(1deg);
}

.nos-value-card__ribbon {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  background: #2b52b3;
  color: #fdf0d8;
  font-family: 'IM Fell English', serif;
  font-size: 11px;
  padding: 6px 20px;
  letter-spacing: 0.15em;
  border-radius: 0 0 4px 4px;
}

.nos-value-card__icon-wrap {
  width: 80px;
  height: 80px;
  background: #110b07;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  margin-top: 16px;
  color: #c8ab6e;
  position: relative;
  /* Stamp effect */
  -webkit-mask-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="1.5" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.4"/%3E%3C/svg%3E');
}

.nos-value-card__icon-wrap svg {
  width: 40px;
  height: 40px;
}

.nos-value-card__divider {
  width: 60px;
  height: 2px;
  background: #c8ab6e;
  margin: 0 auto 24px;
  opacity: 0.5;
}

.nos-value-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  color: #110b07;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-shadow: 0 0 1px rgba(17, 11, 7, 0.4);
}

.nos-value-card__text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(17, 11, 7, 0.85);
  font-weight: 500;
  margin-bottom: 24px;
}

/* Faded batch number at bottom like a real label */
.nos-value-card__batch {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2b52b3;
  font-family: 'Courier New', Courier, monospace;
}


/* ===== MANIFESTO ===== */
.nos-manifesto {
  background: #2b52b3;
  padding: 100px var(--space-8);
}
.nos-manifesto__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.nos-manifesto__quote {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 28px;
}
.nos-manifesto__quote em {
  font-style: normal;
  color: rgba(0,0,0,0.3);
}
.nos-manifesto__attribution {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

/* ===== SOCIAL CTA ===== */
.nos-social-cta { padding: 80px var(--space-8); }
.nos-social-cta__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nos-social-cta__inner .nos-heading  { text-align: center; }
.nos-social-cta__inner .nos-body     { max-width: 100%; text-align: center; }

.nos-social-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nos-social-cta__btn:hover {
  background: #2b52b3;
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .nos-origin .nos-section__inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .nos-cards-fan { margin: 0 auto; }
  .nos-values__grid { grid-template-columns: repeat(2, 1fr); }
  .nos-timeline__items { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  /* ── Hero mobile ── */
  .nos-hero {
    height: 72vh;
    min-height: 480px;
    align-items: center;
  }
  .nos-hero__content {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }
  .nos-hero__title {
    font-size: clamp(4.5rem, 22vw, 7.5rem);
    margin-bottom: 12px;
    align-items: center;
  }
  /* "2016" fill tenue detrás del overlay */
  .nos-hero__year-bg {
    display: block !important;
    position: absolute;
    left: 50%;
    top: 42%;
    right: auto;
    transform: translate(-50%, -50%);
    font-size: 58vw;
    color: rgba(255,255,255,0.05);
    -webkit-text-stroke: none;
    z-index: 0;
    pointer-events: none;
    animation: yearFadeIn 2.5s ease 0.6s both;
  }
  /* Ocultar quote en mobile — demasiado texto para el espacio */
  .nos-hero__right { display: none !important; }
  /* Stats — fila limpia al pie, sin cajones */
  .nos-hero__pillars {
    display: flex !important;
    flex-direction: row;
    position: absolute !important;
    bottom: 0; left: 0; right: 0;
    z-index: 3;
    padding: 14px 24px;
    animation: none;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    justify-content: space-around;
    align-items: center;
  }
  .nos-hero__pillar-sep { display: none !important; }
  .nos-hero__pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
  }
  .nos-hero__pillar-num   { font-size: 17px; font-family: var(--font-display); font-weight: 900; color: #fff; letter-spacing: -0.01em; line-height: 1; display: block; }
  .nos-hero__pillar-label { font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.45); display: block; }
  .nos-section { padding: 60px var(--space-4); }
  .nos-timeline  { padding: 60px var(--space-4); }
  .nos-manifesto { padding: 60px var(--space-4); }
  .nos-values__grid  { grid-template-columns: 1fr; }
  .nos-timeline__items { grid-template-columns: 1fr; }
  .nos-cards-fan { height: 420px; margin-top: -20px; }
  /* margin-top negativo reduce el aire sobre las cartas en mÃ³vil */
  .nos-card { width: 200px; height: 312px; }
}


/* ─────────────────────────────────────────────────────────────────
   ANIMATION GATE — Hero animations paused until loader exits
   (.mf-page-ready is added to body by loader.js after slide-out)
   ───────────────────────────────────────────────────────────────── */
.nos-hero__bg,
.nos-hero__content {
  animation-play-state: paused;
}

@media (min-width: 901px) {
  .nos-hero__year-bg,
  .nos-hero__right,
  .nos-hero__pillars {
    animation-play-state: paused;
  }
}

body.mf-page-ready .nos-hero__bg,
body.mf-page-ready .nos-hero__content {
  animation-play-state: running;
}

@media (min-width: 901px) {
  body.mf-page-ready .nos-hero__year-bg,
  body.mf-page-ready .nos-hero__right,
  body.mf-page-ready .nos-hero__pillars {
    animation-play-state: running;
  }
}
