/* =============================================================
   nx-experience.css — Nexo Experience
   Paleta propia (negro + dorado), a propósito distinta del resto del
   sitio: es un espacio VIP aparte, calcado de la tarjeta física real
   que se le entrega a cada cliente/concesionaria. Se carga SOLO en
   nexo-experience.html, nunca afecta al resto de las páginas.
   ============================================================= */
:root {
  --nx-black: #0b0a09; --nx-black-2: #17140f; --nx-black-3: #221d15;
  --nx-gold: #d4af6a; --nx-gold-bright: #f0d9a8; --nx-gold-dim: #8a6f3f;
  --nx-line: rgba(212,175,106,0.22); --nx-text: #e9e2d3; --nx-mute: #a89b82;
}

body.nx-body {
  background: var(--nx-black);
  background-image: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212,175,106,0.08), transparent 65%);
  color: var(--nx-text);
}
.nx-body ::selection { background: var(--nx-gold); color: var(--nx-black); }
.nx-body h1, .nx-body h2, .nx-body h3 { color: #fff; }

/* --- Nav propio, minimal --- */
.nx-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--nx-line); background: rgba(11,10,9,0.85); backdrop-filter: blur(10px); }
@media (min-width: 720px) { .nx-nav { padding: 1.4rem 2rem; } }
.nx-back { color: var(--nx-mute); font-size: 0.86rem; transition: color .25s var(--ease-out); }
.nx-back:hover { color: var(--nx-gold-bright); }
.nx-brand { font-family: var(--display); font-size: 1rem; letter-spacing: 0.12em; color: #fff; }
.nx-brand em { font-style: normal; color: var(--nx-gold); }

.nx-kicker { display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--nx-gold); margin-bottom: 1rem; }
.nx-kicker::before { content: ""; width: 22px; height: 1.5px; background: var(--nx-gold); }

/* --- Hero --- */
.nx-hero { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 1.5rem clamp(2rem, 5vw, 3rem); text-align: center; overflow: clip; }
.nx-hero-bg { position: absolute; inset: 0; background: radial-gradient(circle 700px at 50% 20%, rgba(212,175,106,0.14), transparent 70%); pointer-events: none; }
.nx-hero h1 { position: relative; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; max-width: 16ch; margin-inline: auto; }
.nx-hero h1 em { font-style: normal; color: var(--nx-gold-bright); }
.nx-hero p { position: relative; color: var(--nx-mute); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 46ch; margin: 1.2rem auto 0; }

/* --- Tarjeta 3D --- */
.nx-card-section { padding: clamp(2rem, 5vw, 3rem) 1.5rem clamp(3rem, 6vw, 5rem); }
.nx-card-layout { display: grid; gap: 3rem; align-items: center; justify-items: center; }
@media (min-width: 900px) { .nx-card-layout { grid-template-columns: 1fr 1fr; justify-items: stretch; gap: 4rem; } }
.nx-card-stage { perspective: 1400px; width: min(360px, 88vw); }
.nx-card-3d {
  --nx-rx: 0deg; --nx-ry: 0deg; --nx-flip: 0deg;
  position: relative; width: 100%; aspect-ratio: 1.586/1; transform-style: preserve-3d;
  transform: rotateX(var(--nx-rx)) rotateY(calc(var(--nx-ry) + var(--nx-flip)));
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}
.nx-card-3d.is-flipped { --nx-flip: 180deg; }
.nx-card-face {
  position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), transparent 40%),
    repeating-linear-gradient(100deg, #0d0c0a 0 2px, #131110 2px 4px);
  border: 1px solid rgba(212,175,106,0.4);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 30px 60px -20px rgba(0,0,0,0.7);
  padding: 1.4rem 1.6rem; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.nx-card-face::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(212,175,106,0.16) 48%, transparent 66%);
  background-size: 250% 100%; animation: nxCardSheen 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes nxCardSheen { 0%, 100% { background-position: 140% 0; } 50% { background-position: -40% 0; } }
.nx-card-back { transform: rotateY(180deg); }

.nx-card-logo { display: flex; align-items: baseline; gap: 2px; font-family: var(--sans); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; position: relative; z-index: 1; }
.nx-card-logo .n8 { color: var(--nx-gold-bright); }
.nx-card-logo small { font-weight: 700; color: #fff; }
.nx-card-foot { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; }
.nx-card-key { font-family: var(--mono, monospace); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--nx-gold-dim); }
.nx-card-tagline { font-family: var(--display); font-style: normal; font-size: 0.82rem; color: var(--nx-mute); text-align: right; max-width: 12ch; }

.nx-card-back-title { font-size: 0.88rem; color: var(--nx-gold-bright); max-width: 16ch; position: relative; z-index: 1; }
.nx-card-nfc { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; position: relative; z-index: 1; margin: auto; }
.nx-card-nfc-icon { font-family: var(--mono, monospace); letter-spacing: 0.3em; color: var(--nx-gold); font-size: 0.9rem; }
.nx-card-nfc-label { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nx-mute); }
.nx-card-qr {
  position: absolute; right: 1.3rem; bottom: 1.3rem; width: 52px; height: 52px; z-index: 1;
  background: repeating-conic-gradient(var(--nx-gold-dim) 0% 25%, transparent 0% 50%) 0 0/10px 10px;
  border: 2px solid var(--nx-gold); border-radius: 4px; opacity: 0.85;
}

.nx-card-hint { text-align: center; margin-top: 1rem; font-size: 0.8rem; color: var(--nx-mute); }
.nx-card-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.nx-card-copy p { color: var(--nx-mute); line-height: 1.7; }

/* --- Login --- */
.nx-login-section { padding: clamp(3rem, 6vw, 5rem) 1.5rem; border-top: 1px solid var(--nx-line); border-bottom: 1px solid var(--nx-line); background: rgba(255,255,255,0.015); }
.nx-login-layout { max-width: 1100px; margin-inline: auto; display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .nx-login-layout { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; } }
.nx-login-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.nx-login-copy p { color: var(--nx-mute); line-height: 1.7; }
.nx-login-form { display: grid; gap: 1.1rem; background: rgba(255,255,255,0.03); border: 1px solid var(--nx-line); border-radius: 16px; padding: clamp(1.6rem, 3vw, 2.2rem); }
.nx-form-row { display: grid; gap: 0.4rem; }
.nx-form-row label { font-size: 0.82rem; font-weight: 600; color: var(--nx-mute); }
.nx-form-row input { font: inherit; padding: 0.8rem 1rem; border-radius: 10px; border: 1px solid rgba(212,175,106,0.3); background: rgba(0,0,0,0.35); color: #fff; }
.nx-form-row input:focus { outline: none; border-color: var(--nx-gold); box-shadow: 0 0 0 3px rgba(212,175,106,0.15); }
.nx-btn-primary {
  padding: 0.9rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  background: linear-gradient(135deg, var(--nx-gold-bright), var(--nx-gold) 55%, var(--nx-gold-dim));
  color: var(--nx-black); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.nx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(212,175,106,0.5); }
.nx-form-note { font-size: 0.82rem; color: var(--nx-mute); text-align: center; }
.nx-form-note a { color: var(--nx-gold); font-weight: 600; }
.nx-form-result { padding: 0.9rem 1rem; border-radius: 10px; background: rgba(212,175,106,0.1); border: 1px solid rgba(212,175,106,0.3); color: var(--nx-gold-bright); font-size: 0.86rem; line-height: 1.5; }

/* --- Dashboard (post-login) --- */
.nx-dashboard { padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem; border-bottom: 1px solid var(--nx-line); background: rgba(212,175,106,0.05); }
.nx-dashboard-panel { max-width: 640px; margin-inline: auto; text-align: center; }
.nx-dashboard-panel h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.6rem; }
.nx-dashboard-email { color: var(--nx-gold-bright); font-weight: 600; margin-bottom: 1rem; }
.nx-dashboard-status { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.nx-dashboard-pill { font-size: 0.8rem; font-weight: 700; color: #6fce8f; background: rgba(46,125,79,0.18); border: 1px solid rgba(46,125,79,0.4); border-radius: 999px; padding: 0.35em 0.9em; }
.nx-dashboard-key { font-family: var(--mono, monospace); font-size: 0.8rem; color: var(--nx-mute); }
.nx-dashboard-panel p { color: var(--nx-mute); line-height: 1.7; margin-bottom: 1.4rem; }
.nx-dashboard-panel p a { color: var(--nx-gold); font-weight: 600; }
.nx-dashboard-panel .nx-btn-primary { display: inline-block; }

/* --- Beneficios --- */
.nx-benefits { padding: clamp(3rem, 6vw, 5rem) 1.5rem; max-width: 1240px; margin-inline: auto; }
.nx-benefits h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); max-width: 20ch; margin-bottom: 2.2rem; }
.nx-benefits-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .nx-benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .nx-benefits-grid { grid-template-columns: repeat(4, 1fr); } }
.nx-benefit { background: rgba(255,255,255,0.03); border: 1px solid var(--nx-line); border-radius: 14px; padding: 1.5rem; transition: transform .3s var(--ease-out), border-color .3s var(--ease-out); }
.nx-benefit:hover { transform: translateY(-4px); border-color: rgba(212,175,106,0.5); }
.nx-benefit-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--nx-gold-dim), var(--nx-gold)); color: var(--nx-black); margin-bottom: 1rem; }
.nx-benefit h3 { font-size: 1rem; margin-bottom: 0.5rem; color: #fff; }
.nx-benefit p { font-size: 0.86rem; color: var(--nx-mute); line-height: 1.55; }
.nx-notice { margin-top: 1.8rem; padding: 0.9rem 1.1rem; border: 1px dashed rgba(212,175,106,0.35); border-radius: 10px; font-size: 0.84rem; color: var(--nx-mute); max-width: fit-content; }

/* --- Footer --- */
.nx-footer { border-top: 1px solid var(--nx-line); padding: 2.5rem 1.5rem; text-align: center; color: var(--nx-mute); font-size: 0.8rem; }
.nx-footer a { color: var(--nx-gold); }
