/* =============================================================
   TIERSTYLE — styles.css
   Diseño: dark luxury editorial — Cormorant + Outfit
   ============================================================= */

/* ── Variables de marca ── */
:root {
  --purple:        #601e60;
  --purple-dark:   #3d1240;
  --purple-light:  #7a2a7a;
  --gold:          #d29f00;
  --gold-light:    #e8b800;
  --gold-dim:      #a07b00;
  --black:         #000000;
  --surface:       #0a0a0f;
  --surface-2:     #111118;
  --surface-3:     #18181f;
  --white:         #ffffff;
  --text-primary:  #f0eee8;
  --text-secondary:#b0a898;
  --text-muted:    #6b6560;
  --border:        rgba(210,159,0,0.15);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --trans:         0.3s cubic-bezier(0.4,0,0.2,1);
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Outfit', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans), border-color var(--trans);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { font-size: 0.95rem; padding: 0.85rem 1.75rem; }

.btn--gold {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(210,159,0,0);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 4px 24px rgba(210,159,0,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.25);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 4px 20px rgba(210,159,0,0.15);
}

.btn--ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border-color: rgba(255,255,255,0.1);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
}

.btn--nav {
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  font-weight: 600;
}
.btn--nav:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ── Section shared ── */
.section { padding-block: clamp(5rem, 10vw, 8rem); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-label--light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.section-title--light { color: var(--white); }

/* ── JS Reveal ── */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--card-delay, 0s);
}
.js-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Animate on load (hero) ── */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.75s ease forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--trans), backdrop-filter var(--trans), border-color var(--trans);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  max-width: 1160px;
  margin-inline: auto;
}
.header-logo { height: 36px; width: auto; }
.header-logo-link { display: flex; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header-nav a:not(.btn) {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color var(--trans);
}
.header-nav a:not(.btn):hover { color: var(--text-primary); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: var(--trans);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(10,10,15,0.97);
  border-top: 1px solid var(--border);
  padding: 1rem clamp(1.25rem, 5vw, 3rem) 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) {
  padding-block: 0.75rem;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--trans);
}
.mobile-menu a:not(.btn):hover { color: var(--text-primary); }
.mobile-menu .btn { margin-top: 1rem; width: 100%; justify-content: center; }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay multicapa: deja respirar la galaxia en el centro,
   añade tinte morado de marca y funde suave hacia el surface en la base */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.52) 0%,
      rgba(20,5,28,0.42) 35%,
      rgba(10,2,18,0.55) 65%,
      var(--surface) 100%
    );
}

/* Grain texture para profundidad */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 7rem 1.5rem 4rem;
  max-width: 780px;
}

.hero-logo-wrap { line-height: 0; }
.hero-logo {
  height: clamp(80px, 14vw, 140px);
  width: auto;
  filter: drop-shadow(0 4px 32px rgba(210,159,0,0.25));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  color: var(--white);
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(210,159,0,0.12);
  border: 1px solid rgba(210,159,0,0.3);
  border-radius: 100px;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 400;
  text-align: left;
}
.badge-icon { font-size: 1rem; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin-inline: auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* =============================================================
   QUÉ ES TIERSTYLE
   ============================================================= */
.que-es { background: var(--surface); }

.que-es-text {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 3.5rem;
  line-height: 1.75;
}
.que-es-text strong { color: var(--gold); font-weight: 500; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--surface-2);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background var(--trans);
}
.feature-card:hover { background: var(--surface-3); }

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(210,159,0,0.25);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--gold);
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================================
   B2B — NEGOCIOS
   ============================================================= */
.b2b {
  position: relative;
  background: var(--purple-dark);
  overflow: hidden;
}
.b2b-bg-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(96,30,96,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(210,159,0,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.b2b::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.b2b::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.b2b-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.b2b-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.b2b-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.b2b-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.b2b-check {
  color: var(--gold);
  font-size: 0.7rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

/* Tiers visual */
.b2b-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tiers-display {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
}
.tier-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: transform var(--trans);
  position: relative;
  overflow: hidden;
}
.tier-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.tier-item:hover { transform: translateX(6px); }

.tier-label {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  width: 36px;
  text-align: center;
}
.tier-name {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.tier-s {
  background: rgba(210,159,0,0.12);
  border-color: rgba(210,159,0,0.4);
}
.tier-s::before { background: var(--gold); }
.tier-s .tier-label { color: var(--gold); }
.tier-s .tier-name { color: rgba(210,159,0,0.85); }

.tier-a {
  background: rgba(210,159,0,0.07);
  border-color: rgba(210,159,0,0.2);
}
.tier-a::before { background: rgba(210,159,0,0.6); }
.tier-a .tier-label { color: rgba(210,159,0,0.85); }
.tier-a .tier-name { color: rgba(255,255,255,0.6); }

.tier-b {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
.tier-b::before { background: rgba(255,255,255,0.35); }
.tier-b .tier-label { color: rgba(255,255,255,0.7); }
.tier-b .tier-name { color: rgba(255,255,255,0.45); }

.tier-c {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.06);
}
.tier-c::before { background: rgba(255,255,255,0.15); }
.tier-c .tier-label { color: rgba(255,255,255,0.45); }
.tier-c .tier-name { color: rgba(255,255,255,0.3); }

/* =============================================================
   TIENDA EN CONSTRUCCIÓN
   ============================================================= */
.construccion {
  background: var(--surface-2);
  text-align: center;
  position: relative;
}
.construccion-inner {
  max-width: 680px;
}
.construccion-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: grayscale(0.3);
}
.construccion-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-inline: auto;
}
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.legal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.6;
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.footer-logo { height: 40px; width: auto; margin-inline: auto; }
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-dim);
  margin-top: 0.4rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
}
.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--trans);
}
.footer-links a:hover { color: var(--gold); }
.footer-links svg { width: 14px; height: 14px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-legal { color: var(--text-muted); }

/* =============================================================
   RESPONSIVE — TABLET
   ============================================================= */
@media (max-width: 900px) {
  .b2b-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .b2b-visual { order: -1; }
  .tiers-display { max-width: 420px; }
}

/* =============================================================
   RESPONSIVE — MÓVIL
   ============================================================= */
@media (max-width: 640px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }

  .hero-content { padding: 6rem 1rem 3rem; }
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.9rem;
    text-align: center;
  }
  .hero-ctas { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .features-grid { background: transparent; border: none; gap: 1rem; }
  .feature-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
  }

  .contact-buttons { flex-direction: column; width: 100%; max-width: 320px; margin-inline: auto; }
  .contact-buttons .btn { width: 100%; justify-content: center; }

  .tiers-display { max-width: 100%; }
}

/* =============================================================
   UTILIDADES
   ============================================================= */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
