/* ==========================================================================
   Components
   ========================================================================== */

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease-spring), box-shadow .35s, background .35s, color .35s, border-color .35s;
  white-space: nowrap;
}
.btn--solid {
  background: var(--fd-grad-warm);
  color: #1a0a02;
  box-shadow: 0 8px 24px -8px rgba(232,53,58,0.55);
}
.btn--solid:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 32px -10px rgba(232,53,58,0.7); }
.btn--outline {
  border-color: var(--fd-line);
  color: var(--fd-ink);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
}
.btn--outline:hover { border-color: var(--fd-yellow); color: var(--fd-yellow); transform: translateY(-3px); }
.btn--ghost {
  background: transparent; border-color: var(--fd-line); color: var(--fd-ink-dim);
  padding: 10px 16px; font-size: 12px;
}
.btn--ghost:hover { border-color: var(--fd-ink); color: var(--fd-ink); }
.btn--lg { padding: 17px 34px; font-size: 15px; }
.btn--full { width: 100%; padding: 16px; }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
  transition: padding .4s var(--ease-out), background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-block: 12px;
  background: rgba(10,10,12,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--fd-line-soft);
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { width: 38px; height: 38px; transition: transform .5s var(--ease-spring); }
.nav__brand:hover .nav__logo { transform: rotate(-14deg) scale(1.08); }
.nav__word { font-family: var(--font-display); font-size: 22px; letter-spacing: .01em; }

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--fd-ink-dim);
  display: flex; align-items: center; gap: 6px;
  transition: color .3s;
  position: relative;
}
.nav__links a span {
  font-family: var(--font-mono); font-size: 10px; color: var(--fd-ink-faint);
}
.nav__links a:hover { color: var(--fd-ink); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--fd-yellow); transition: width .3s var(--ease-out);
}
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__burger span { width: 22px; height: 2px; background: var(--fd-ink); transition: transform .3s, opacity .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 480;
  background: var(--fd-black-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a { font-size: 22px; font-weight: 800; }

/* ============ Filters ============ */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter {
  padding: 10px 18px; border-radius: var(--radius-full);
  background: var(--fd-black-3); border: 1px solid var(--fd-line);
  color: var(--fd-ink-dim); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .3s var(--ease-out);
}
.filter:hover { border-color: var(--fd-yellow); color: var(--fd-ink); }
.filter.is-active { background: var(--fd-grad-warm); color: #1a0a02; border-color: transparent; }

/* ============ Product Card ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4.1;
  background: var(--fd-black-3);
  border: 1px solid var(--fd-line-soft);
  transition: transform .6s var(--ease-out), border-color .4s;
  opacity: 0; transform: translateY(40px);
}
.product-card.is-visible { opacity: 1; transform: translateY(0); }
.product-card.is-filtered-out { display: none; }
.product-card:hover { border-color: rgba(255,255,255,0.22); }

.product-card__img-wrap { position: absolute; inset: 0; overflow: hidden; }
.product-card__img-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  transition: transform 1s var(--ease-out), filter .6s;
}
.product-card:hover .product-card__img-wrap img { transform: scale(1.08); }

.product-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0) 40%, rgba(10,10,12,0.92) 100%);
}
.product-card__flag {
  position: absolute; top: 18px; left: 18px;
  font-size: 26px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.5));
}
.product-card__tag {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(6px);
  border: 1px solid var(--fd-line);
  padding: 6px 10px; border-radius: var(--radius-full);
  text-transform: uppercase; color: var(--fd-ink-dim);
}
.product-card__body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px;
}
.product-card__body h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 26px; margin-bottom: 4px;
}
.product-card__body p { font-size: 13px; color: var(--fd-ink-dim); max-width: 32ch; }
.product-card__arrow {
  position: absolute; bottom: 20px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--fd-ink); color: var(--fd-black);
  display: flex; align-items: center; justify-content: center;
  transform: scale(0) rotate(-45deg);
  transition: transform .45s var(--ease-spring);
}
.product-card:hover .product-card__arrow { transform: scale(1) rotate(0deg); }

/* Featured (first) card spans 2 rows on desktop */
.product-card--feature { grid-row: span 2; aspect-ratio: auto; }

/* ============ Prop cards (bento) ============ */
.props__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.prop-card {
  background: var(--fd-black-2);
  border: 1px solid var(--fd-line-soft);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform .4s var(--ease-out), border-color .4s, background .4s;
}
.prop-card:hover { transform: translateY(-6px); border-color: var(--fd-line); background: var(--fd-black-3); }
.prop-card h3 { font-size: 19px; margin-bottom: 10px; }
.prop-card p { font-size: 14px; color: var(--fd-ink-dim); line-height: 1.55; }
.prop-card__icon {
  width: 46px; height: 46px; border-radius: 14px;
  margin-bottom: 20px;
  background: var(--fd-grad-brand);
  position: relative;
}
.prop-card__icon::after {
  content: ''; position: absolute; inset: 3px; border-radius: 11px;
  background: var(--fd-black-2);
}
.prop-card__icon::before {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px; z-index: 2;
  background: var(--fd-ink);
}
.prop-card__icon[data-icon="shape"]::before { clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); }
.prop-card__icon[data-icon="flag"]::before { clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%); width:16px; }
.prop-card__icon[data-icon="drop"]::before { clip-path: path('M9 0C9 0 0 11 0 16a9 9 0 0018 0C18 11 9 0 9 0Z'); width:16px; height:20px; }
.prop-card__icon[data-icon="hand"]::before { border-radius: 50%; width: 16px; height: 16px; }

/* ============ Timeline ============ */
.timeline {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 40px; position: relative;
}
.timeline__item {
  text-align: center; padding: 30px 20px;
  border: 1px solid var(--fd-line-soft); border-radius: var(--radius-md);
  background: var(--fd-black-2);
}
.timeline__mark { width: 72px; height: 72px; margin: 0 auto 18px; opacity: .75; }
.timeline__mark img { width: 100%; height: 100%; object-fit: contain; }
.timeline__mark--current { opacity: 1; filter: drop-shadow(0 8px 24px rgba(245,194,51,.35)); width: 88px; height: 88px; }
.timeline__year { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fd-yellow); display:block; margin-bottom: 8px; }
.timeline__item p { font-size: 14px; color: var(--fd-ink-dim); }

/* ============ Voz cards ============ */
.voz__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.voz-card {
  padding: 28px 22px; border-radius: var(--radius-md);
  border: 1px solid var(--fd-line-soft);
  background: linear-gradient(160deg, var(--fd-black-2), var(--fd-black-3));
  transition: transform .4s var(--ease-out);
}
.voz-card:hover { transform: translateY(-8px) rotate(-1deg); }
.voz-card__num {
  font-family: var(--font-mono); font-size: 12px; color: var(--fd-ink-faint);
  display: block; margin-bottom: 20px;
}
.voz-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin-bottom: 10px; }
.voz-card p { font-size: 14px; color: var(--fd-ink-dim); }

/* ============ Palette ============ */
.palette { display: flex; gap: 14px; flex-wrap: wrap; }
.palette__swatch {
  flex: 1; min-width: 140px;
  height: 110px; border-radius: 16px;
  background: var(--c);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px;
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease-spring), height .4s var(--ease-out);
}
.palette__swatch:hover { transform: translateY(-6px); height: 128px; }
.palette__swatch span { font-weight: 800; font-size: 13px; color: rgba(0,0,0,.75); }
.palette__swatch em { font-family: var(--font-mono); font-style: normal; font-size: 11px; color: rgba(0,0,0,.55); }

/* ============ Mundo (map + list) ============ */
.mundo__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.mundo__map { aspect-ratio: 1/0.87; position: relative; }
.europe-svg { width: 100%; height: 100%; }
.orbit { fill: none; stroke: var(--fd-line); stroke-dasharray: 3 6; }
.orbit--mid { animation: rotate-slow 40s linear infinite; transform-origin: 300px 260px; }
.orbit--outer { animation: rotate-slow-rev 60s linear infinite; transform-origin: 300px 260px; }
.orbit__core { fill: var(--fd-yellow); filter: drop-shadow(0 0 18px var(--fd-yellow)); }
@keyframes rotate-slow { to { transform: rotate(360deg); } }
@keyframes rotate-slow-rev { to { transform: rotate(-360deg); } }
.pin {
  fill: var(--fd-red);
  stroke: var(--fd-black); stroke-width: 2;
  cursor: pointer;
  transition: r .3s var(--ease-spring), fill .3s;
}
.pin:hover, .pin.is-active { fill: var(--fd-yellow); r: 11; }

.mundo__list { display: flex; flex-direction: column; gap: 10px; }
.market {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 16px;
  background: var(--fd-black-2); border: 1px solid var(--fd-line-soft);
  cursor: pointer; text-align: left;
  transition: all .3s var(--ease-out);
  width: 100%;
}
.market:hover { border-color: var(--fd-line); transform: translateX(6px); }
.market.is-active { background: var(--fd-black-3); border-color: var(--fd-yellow); }
.market__flag { font-size: 22px; }
.market__body { display: flex; flex-direction: column; flex: 1; }
.market__body strong { font-size: 15px; }
.market__body small { color: var(--fd-ink-dim); font-size: 12px; }
.market__tag {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  background: var(--fd-grad-legado); padding: 5px 10px; border-radius: var(--radius-full);
}

/* ============ Form ============ */
.cta-final__form {
  background: var(--fd-black-2);
  border: 1px solid var(--fd-line);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex; flex-direction: column; gap: 16px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 12px; color: var(--fd-ink-dim); font-weight: 700; }
.form-row input, .form-row select {
  background: var(--fd-black); border: 1px solid var(--fd-line);
  border-radius: 12px; padding: 13px 14px; font-size: 14px; color: var(--fd-ink);
  transition: border-color .3s;
}
.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--fd-yellow); }
.form-note { text-align: center; font-size: 12px; color: var(--fd-ink-faint); }
.cta-final__form.is-success .form-row,
.cta-final__form.is-success button { display: none; }
.cta-final__form .success-msg { display: none; text-align: center; padding: 20px 0; }
.cta-final__form.is-success .success-msg { display: block; }
.success-msg strong { font-family: var(--font-display); font-size: 22px; display:block; margin-bottom: 8px; }
