/* ==========================================
   1. VARIABLES Y TEMA GENERAL (DARK GAMER)
   ========================================== */
:root {
  --bg-primary: #0b0e14;       /* Fondo principal oscuro */
  --bg-secondary: #161b22;     /* Tarjetas y módulos */
  --bg-card: #1f242d;          /* Elevación de contenido */
  --accent-color: #ff4757;     /* Rojo Escorpión Neón */
  --accent-hover: #ff6b81;     /* Rojo brillante hover */
  --text-main: #f1f2f6;        /* Texto blanco tenue */
  --text-muted: #a4b0be;       /* Texto secundario gris */
  --border-color: #2ed573;     /* Verde neón para acentos/estado */
  --shadow-neon: 0 4px 20px rgba(255, 71, 87, 0.25);
  --font-family: 'Parkinsans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
}

/* ==========================================
   2. NAVEGACIÓN PRINCIPAL & BRANDING
   ========================================== */
#barra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--bg-secondary);
  border-bottom: 2px solid rgba(255, 71, 87, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

#brand-logo {
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

#boton {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-neon);
}

#boton:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* Sub-navegación y Búsqueda */
.articulos-nav {
  background-color: var(--bg-primary);
  border-bottom: 1px solid #21262d;
  padding: 0.8rem 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.nav-search {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 0.2rem 0.6rem;
}

.nav-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  padding: 0.5rem;
  width: 250px;
}

.btn-search {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ==========================================
   3. CONTENEDOR PRINCIPAL & HERO HEADER
   ========================================== */
.main-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.inv-badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.inv-badge-box {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: rgba(46, 213, 115, 0.1);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
}

.inv-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--border-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--border-color);
}

.inv-badge-text {
  font-size: 0.9rem;
  color: var(--border-color);
  font-weight: 700;
}

header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.header-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #ffffff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
}

h2 {
  text-align: center;
  margin: 2.5rem 0 1.5rem;
  font-size: 1.8rem;
  color: var(--text-main);
}

/* ==========================================
   4. TARJETAS DE SERVICIO (SECCIÓN INTRO)
   ========================================== */
.intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.description {
  background-color: var(--bg-secondary);
  border: 1px solid #21262d;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.description:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-neon);
}

.img-wrapper {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  background-color: var(--bg-card);
}

.img-wrapper img,
.img-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.description h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.description p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================
   5. FOOTER & WIDGETS FLOTANTES
   ========================================== */
footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid #21262d;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-icon {
  width: 30px;
  height: 30px;
  fill: white;
}

#google_translate_element {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 1000;
}

/* ==========================================
   6. RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
  header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav-container {
    flex-direction: column;
  }

  .nav-search input {
    width: 100%;
  }
}



.scorpion-nav-menu {
    position: relative;
    display: inline-block;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.scorpion-profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #11131a;
    border: 1px solid rgba(255, 42, 95, 0.3);
    padding: 5px 12px 5px 6px;
    border-radius: 25px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scorpion-profile-trigger:hover {
    border-color: #ff2a5f;
}

.scorpion-user-avatar {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #ff2a5f, #ff758c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    color: #fff;
}

.scorpion-user-pseudo {
    font-size: 13px;
    font-weight: 500;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scorpion-caret {
    opacity: 0.7;
    transition: transform 0.2s ease;
}

/* Menú Desplegable */
.scorpion-flyout-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 230px;
    background: #13151f;
    border: 1px solid #23283b;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 99999;
    overflow: hidden;
}

.scorpion-nav-menu:hover .scorpion-flyout-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scorpion-nav-menu:hover .scorpion-caret {
    transform: rotate(180deg);
}

.scorpion-flyout-top {
    padding: 12px 14px;
    background: #171a26;
}

.scorpion-f-name {
    margin: 0;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scorpion-f-mail {
    margin: 2px 0 0 0;
    font-size: 11px;
    color: #8a99ad;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scorpion-f-separator {
    height: 1px;
    background: #23283b;
}

.scorpion-f-links {
    padding: 6px 0;
}

.scorpion-f-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    color: #cbd5e1;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.scorpion-f-item:hover {
    background: #1a1e2b;
    color: #fff;
}

.scorpion-f-icon {
    font-size: 14px;
}

.scorpion-flyout-bottom {
    padding: 8px 10px;
    background: #151822;
}

.scorpion-f-logout {
    display: block;
    text-align: center;
    padding: 7px;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s;
}

.scorpion-f-logout:hover {
    background: rgba(255, 77, 77, 0.2);
    color: #ff6b6b;
}


.oculto{
  display: none;
}

a {
    text-decoration: none;
}



/* Fondo oscuro translúcido que cubre la pantalla cuando se abre el modal */
#authModalOverlay {
    position: fixed;
    top: 0;
    left: 0;
   
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px); /* Efecto difuminado moderno */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Asegura que flote por encima de todo */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Tarjeta principal del modal */
#authModalOverlay .auth-modal-card {
    background-color: #111622; /* Tono oscuro idéntico al de tu tienda */
    border: 1px solid #1e2638;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    box-sizing: border-box;
}

/* Botón de cierre (X) */
#authModalOverlay .auth-close-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 24px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

#authModalOverlay .auth-close-btn:hover {
    color: #ffffff;
}

/* Cabecera del modal */
#authModalOverlay .auth-header {
    margin-bottom: 24px;
}

#authModalOverlay .auth-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

#authModalOverlay .auth-header p {
    font-size: 13px;
    color: #94a3b8;
}

/* Contenedor de botones de autenticación */
#authModalOverlay .auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

#authModalOverlay .auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px;
    background-color: #182030;
    border: 1px solid #283548;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

#authModalOverlay .auth-btn:hover {
    background-color: #222d44;
    border-color: #3b4d6c;
}

/* Texto de registro inferior */
#authModalOverlay .auth-signup-text {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

#authModalOverlay .auth-signup-text a {
    color: #10b981; /* Verde brillante característico */
    text-decoration: none;
    font-weight: 600;
}

#authModalOverlay .auth-signup-text a:hover {
    text-decoration: underline;
}

/* Línea divisoria */
#authModalOverlay .auth-divider {
    border: none;
    border-top: 1px solid #1e2638;
    margin-bottom: 20px;
}

/* Enlace de soporte */
#authModalOverlay .auth-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}

#authModalOverlay .auth-support:hover {
    color: #ffffff;
}
