/* =====================
   HEADER
===================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid #00ff9c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  box-sizing: border-box;
}

/* LOGO NO DEBE SER MÁS GRANDE QUE EL HEADER */
.logo-gif {
  width: 150px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 255, 156, 0.4));
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: #00ff9c;
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;
  white-space: nowrap;
}

/* ===== FOOTER ===== */

.footer {
  border-top: 1px solid #00ff9c;
  background: linear-gradient(#0b0b0b, #111);
  color: #7affc1;
  text-align: center;
  padding: 12px 0;   /* controlado */
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin: 0;
}


.footer span {
  color: #00ff9c;
  margin: 0 6px;
}

.footer .muted {
  color: #6e8b87;
}

main {
  flex: 1;
  padding-top: 70px; /* EXACTAMENTE la altura del header */
}

.app-main {               /* 🔥 ESTO ES LA CLAVE */      /* espacio para el header */
  display: flex;
  align-items: center;
  justify-content: center;
}


/* =====================
   RESET & VARIABLES
===================== */
html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--terminal-font);
  background-color: #050505;
  color: #00ff9c;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

:root {
  --neon-green: #00ff9c;
  --dark-bg: #050505;
  --terminal-font: 'Fira Code', 'Courier New', Courier, monospace;
  --glow: 0 0 10px rgba(0, 255, 156, 0.4);
}



/* EFECTO SCANLINES (Monitor antiguo) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg, rgba(255,0,0,.03), rgba(0,255,0,.01), rgba(0,0,255,.03));
  background-size: 100% 4px, 3px 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* =====================
   BACKGROUND GRAPHICS
===================== */
.bg-graphics {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

.octagon {
  position: absolute;
  top: 15%;
  left: 55%;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(0, 255, 156, 0.15);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  animation: floatOctagon 30s infinite linear;
}

@keyframes floatOctagon {
  0% { transform: rotate(0deg) translate(0, 0); opacity: 0.2; }
  50% { transform: rotate(180deg) translate(30px, 50px); opacity: 0.4; }
  100% { transform: rotate(360deg) translate(0, 0); opacity: 0.2; }
}

/* =====================
   INDEX & MANIFESTO
===================== */
.manifesto {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  z-index: 2;
}

.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  background: rgba(0, 255, 156, 0.1);
  padding: 8px 15px;
  border: 1px solid var(--neon-green);
  margin-bottom: 30px;
  color: var(--neon-green);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.headline {
  font-size: 3.5rem;
  color: var(--neon-green);
  line-height: 1;
  text-transform: uppercase;
  margin: 20px 0;
  font-weight: 900;
  text-shadow: 2px 2px 0px rgba(0, 255, 156, 0.2);
}

.prompt {
  border-right: 8px solid var(--neon-green);
  width: fit-content;
  padding-right: 5px;
  animation: blink 0.8s infinite;
}

@keyframes blink { 50% { border-color: transparent; } }

.highlight {
  border-left: 3px solid var(--neon-green);
  padding-left: 15px;
  font-style: italic;
  color: #fff;
}

/* TIMER */
.drop-timer {
  margin: 40px 0;
  padding: 20px 40px;
  border: 1px solid rgba(0, 255, 156, 0.3);
  background: rgba(0, 255, 156, 0.02);
  position: relative;
  display: inline-block;
}

.drop-timer::before {
  content: "SYSTEM_TERMINATION_CLOCK";
  position: absolute;
  top: -10px;
  left: 10px;
  background: #050505;
  padding: 0 10px;
  font-size: 0.6rem;
  letter-spacing: 1px;
}

#countdown {
  font-size: 3rem;
  font-weight: bold;
  color: var(--neon-green);
  text-shadow: 0 0 20px rgba(0, 255, 156, 0.4);
  letter-spacing: 2px;
}

/* =====================
   SHOP PAGE
===================== */
.shop-header {
  margin-bottom: 50px;
  border-left: 2px solid var(--neon-green);
  padding-left: 20px;
}

.products-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.product-card {
  width: 380px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 156, 0.2);
  position: relative;
  transition: all 0.4s ease;
  display: block;
  text-decoration: none;
}

.card-status {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--neon-green);
  color: #000;
  font-size: 0.6rem;
  padding: 2px 8px;
  font-weight: bold;
  z-index: 10;
}

.image-wrapper {
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 255, 156, 0.2);
  height: 480px;
}

.product-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(40%) contrast(110%);
}

.product-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 25px rgba(0, 255, 156, 0.2);
  transform: translateY(-10px);
}

.product-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* =====================
   PRODUCT DETAIL (tshirt1)
===================== */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  align-items: start;
}

main {
  padding-top: 70px;   /* EXACTAMENTE la altura del header */
}

.main-media-frame {
  border: 2px solid var(--neon-green);
  background: #000;
  box-shadow: var(--glow);
  width: 100%;
}

.frame-header {
  background: var(--neon-green);
  color: #000;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: bold;
}

.main-media {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.main-media img, .main-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  justify-content: flex-start;
}

.thumbnails img, .thumbnails video {
  width: 70px; height: 70px;
  object-fit: cover;
  border: 1px solid rgba(0, 255, 156, 0.3);
  filter: grayscale(100%) opacity(0.6);
  cursor: pointer;
  transition: 0.3s;
}

.thumbnails .active, .thumbnails *:hover {
  filter: grayscale(0%) opacity(1);
  border-color: var(--neon-green);
}

/* INFO & ALERTS */
.stock-alert {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid #ff4444;
  color: #ff4444;
  padding: 10px;
  font-size: 0.8rem;
  margin: 15px 0;
}

.blink { animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

/* BUTTONS & SELECTS */
.btn.primary, .add-btn {
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: 0.3s;
  cursor: pointer;
}

.btn.primary:hover, .add-btn:hover {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 20px var(--neon-green);
}
/* =====================
   CART UI (SYSTEM LIST)
===================== */

.cart-container-wrapper {
  margin: 30px 0;
  border-top: 1px solid rgba(0, 255, 156, 0.2);
}

.cart-item-geek {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 255, 156, 0.1);
  background: rgba(0, 255, 156, 0.02);
  margin-bottom: 10px;
  transition: 0.3s;
}

.cart-item-geek:hover {
  background: rgba(0, 255, 156, 0.05);
}

.item-visual img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid var(--neon-green);
  margin-right: 25px;
}

.item-data {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.item-id {
  font-size: 0.7rem;
  opacity: 0.5;
}

.item-name {
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 1px;
}

.item-meta {
  font-size: 0.8rem;
  margin: 5px 0;
  display: flex;
  gap: 15px;
}

.item-subtotal {
  color: var(--neon-green);
  font-weight: bold;
}

.remove-btn-geek {
  background: transparent;
  border: none;
  color: #ff4444;
  font-family: var(--terminal-font);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 10px;
  transition: 0.3s;
}

.remove-btn-geek:hover {
  text-shadow: 0 0 10px #ff4444;
  transform: scale(1.1);
}

.terminal-summary {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid var(--neon-green);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-highlight {
  font-size: 1.8rem;
  font-weight: bold;
}

.total-highlight .label {
  font-size: 0.8rem;
  opacity: 0.6;
  display: block;
}

.empty-msg {
  padding: 50px;
  text-align: center;
  color: #ff4444;
  font-style: italic;
}

/* Estilo para la nota del repositorio */
.repo-note {
    margin-top: 25px;
    padding: 15px;
    background: rgba(0, 255, 156, 0.05);
    border-left: 3px solid #ff4444; /* Rojo para advertir que es limitado */
    font-size: 0.9rem;
    color: #fff;
}

.typewriter-text {
    font-size: 1.1rem;
    color: var(--neon-green);
    margin-bottom: 20px;
}

.cursor {
    font-weight: bold;
    animation: blink 1s infinite;
}

/* Mejora la legibilidad de los párrafos generales */
.content-text p {
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 650px; /* Evita que las líneas sean demasiado largas */
}


/* Layout de dos columnas para evitar scroll */
.home-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Reducción sutil de textos para compactar */
.headline {
    font-size: 2.8rem; /* Un poco más pequeña para ahorrar espacio */
    margin: 10px 0;
}

.nano-text p {
    font-size: 0.9rem; /* Fuente técnica más compacta */
    margin-bottom: 12px;
    line-height: 1.4;
}

.repo-note {
    font-size: 0.8rem;
    padding: 10px;
    border: 1px dashed rgba(0, 255, 156, 0.3);
}

/* Caja de comando derecha */
.terminal-box {
    background: rgba(0, 255, 156, 0.03);
    border: 1px solid rgba(0, 255, 156, 0.2);
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

#countdown {
    font-size: 2.2rem; /* Compactado para el box */
    margin: 20px 0;
}

/* Responsivo: Si la pantalla es muy pequeña, vuelve a una columna */
@media (max-width: 900px) {
    .home-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .manifesto-side, .action-side {
        padding: 0;
    }
}

@media (max-width: 768px) {
  .header {
    height: 60px;
    padding: 0 12px;
  }

  .logo-gif {
    width: 90px;
    height: auto;
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 0.8rem;
  }
}

@media (max-width: 900px) {
  .shop-dashboard {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .shop-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(0,255,156,.2);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .headline {
    font-size: 2rem;
  }

  .terminal-summary {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

.product-card {
  width: 100%;
  max-width: 380px;
}

/* Layout del Dashboard para la tienda */
.shop-dashboard {
    display: grid;
    grid-template-columns: 250px 1fr; /* Sidebar fija y contenido flexible */
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px;
}

/* Sidebar para metadatos */
.shop-sidebar {
    border-right: 1px solid rgba(0, 255, 156, 0.2);
    padding-right: 20px;
}
/* CART SPECIFIC GEEK UI */
.cart-container-wrapper {
  margin-top: 20px;
  border-top: 1px solid rgba(0, 255, 156, 0.1);
}

.cart-item-geek {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid rgba(0, 255, 156, 0.1);
  background: rgba(0, 255, 156, 0.02);
  margin-bottom: 10px;
}

.cart-item-geek .item-visual {
  position: relative;
  width: 80px;
  height: 80px;
  margin-right: 20px;
  border: 1px solid var(--neon-green);
}

.cart-item-geek .item-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-data .item-id {
  font-size: 0.6rem;
  color: var(--neon-green);
  opacity: 0.5;
}

.item-name {
  font-size: 1.1rem;
  display: block;
}

.item-meta {
  font-size: 0.8rem;
  opacity: 0.8;
  margin: 5px 0;
}

.item-subtotal {
  color: var(--neon-green);
  font-weight: bold;
  font-size: 0.9rem;
}

.remove-btn-geek {
  background: transparent;
  border: 1px solid #ff4444;
  color: #ff4444;
  font-family: var(--terminal-font);
  padding: 5px 10px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: 0.3s;
  margin-left: auto;
}

.remove-btn-geek:hover {
  background: #ff4444;
  color: #000;
}

.terminal-summary {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid var(--neon-green);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 255, 156, 0.05);
}

.total-highlight {
  font-size: 1.5rem;
  font-weight: bold;
}

.total-highlight .label {
  font-size: 0.7rem;
  display: block;
  opacity: 0.6;
}

.empty-msg {
  padding: 40px;
  color: #ff4444;
  text-align: center;
}

/* FORMULARIO GEEK */
.checkout-form-geek {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(0, 255, 156, 0.02);
  padding: 30px;
  border: 1px solid rgba(0, 255, 156, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-wrapper label {
  font-size: 0.65rem;
  color: var(--neon-green);
  letter-spacing: 1px;
}

.input-wrapper input, 
.input-wrapper textarea {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 156, 0.3);
  padding: 12px;
  color: #fff;
  font-family: var(--terminal-font);
  outline: none;
}

.input-wrapper input:focus {
  border-color: var(--neon-green);
  box-shadow: var(--glow);
}

.full-btn {
  width: 100%;
  margin: 20px 0;
  font-size: 1.1rem;
}

.alt-payment-geek {
  margin-top: 40px;
  padding: 20px;
  border: 1px dashed rgba(0, 255, 156, 0.3);
  text-align: center;
}

.legal-notice {
  font-size: 0.6rem;
  text-align: center;
  margin-top: 20px;
  opacity: 0.5;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Centrado de página de resultado */
.center-terminal {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
}

.result-box {
    max-width: 600px;
    padding: 40px;
    border: 1px solid var(--neon-green);
    background: rgba(0, 20, 10, 0.8);
    backdrop-filter: blur(10px);
    text-align: left;
    box-shadow: var(--glow);
}

.result-content {
    margin: 30px 0;
    border-left: 2px solid var(--neon-green);
    padding-left: 20px;
}

.data-log {
    margin-top: 20px;
    color: #fff;
    opacity: 0.7;
    font-size: 0.8rem;
    line-height: 1.6;
}

.cta-finish {
    margin-top: 40px;
    text-align: center;
}

#size {
  width: 100%;
  background: #000;
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  padding: 12px;
  font-family: var(--terminal-font);
  margin-top: 5px;
}

.path-nav { font-size: 0.7rem; opacity: 0.5; margin-bottom: 10px; }

/* =====================
   CHECKOUT SPECIAL UI
===================== */

/* Bloque de aviso para el disclaimer */
.protocol-disclaimer {
  background: rgba(255, 165, 0, 0.05); 
  border: 1px dashed #ffa500;
  padding: 20px;
  margin-bottom: 25px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #fff;
}

/* Etiqueta de advertencia parpadeante */
.protocol-disclaimer .warning-label {
  color: #ffa500;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
  text-transform: uppercase;
}

/* Texto pequeño en el disclaimer */
.protocol-disclaimer .muted {
  margin-top: 10px;
  opacity: 0.6;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 165, 0, 0.1);
  padding-top: 10px;
}

/* Caja que contiene el botón de validación y pago */
.payment-trigger-box {
  border: 1px solid var(--neon-green);
  padding: 15px;
  background: rgba(0, 255, 156, 0.02);
  text-align: center;
}

/* Forzar que los inputs del checkout siempre sean blancos */
.checkout-form-geek input, 
.checkout-form-geek textarea {
  color: #ffffff !important;
}

/* Estilo para el botón de Instagram en el checkout */
.alt-payment-btn {
  color: var(--neon-green) !important;
  text-decoration: none !important;
  border: 1px solid var(--neon-green) !important;
  padding: 10px 20px;
  display: inline-block;
  transition: 0.3s;
  margin-top: 10px;
}
