:root {
  --mc-red: #e8372f;
  --mc-red-dark: #b92c25;
  --mc-bg: #000000;
  --mc-text: #ffffff;
}

/* =========================================
   RESET Y BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; overflow-x: hidden; /* Vital para evitar scroll horizontal */ }

.mc-body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--mc-bg);
  color: var(--mc-text);
  min-height: 100vh;
  padding-bottom: calc(80px + env(safe-area-inset-bottom)); 
}

/* =========================================
   FONDO FIJO
   ========================================= */
.mc-hero-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  background-image: 
    linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 60%, #000 100%),
    url("hero.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* =========================================
   LAYOUT GENERAL
   ========================================= */
.mc-page {
  width: 100%;
  max-width: 600px; /* El contenido (menú) respeta esto */
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Espaciador */
.mc-spacer-top {
  padding-top: calc(42vh + env(safe-area-inset-top));
  transition: padding-top 0.3s ease;
}
@media (min-height: 800px) {
  .mc-spacer-top { padding-top: calc(50vh + env(safe-area-inset-top)); }
}

/* Títulos internos */
.mc-page-title {
  font-size: 13px; color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase; letter-spacing: 0.2em;
  margin-bottom: 30px; margin-top: 10px;
}

/* =========================================
   HEADER DE MARCA (CORRECCIÓN FINAL)
   ========================================= */
.mc-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  /* TÉCNICA BREAK-OUT: Romper el ancho del contenedor padre */
  width: 100vw; 
  margin-left: calc(50% - 50vw);
  
  margin-bottom: 4vh;
  position: relative;
  z-index: 10;
  padding-top: calc(30px + env(safe-area-inset-top));
}

/* Texto Superior */
.mc-top-tag {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--mc-red-dark);
  letter-spacing: 0em;
  margin-bottom: -0vw; /* Se acerca proporcionalmente */
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  z-index: 2;
}

.mc-kanji { font-weight: 400; opacity: 0.9; font-size: 10px; margin-left: 6px; }

/* Logo Principal */
.mc-main-logo {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  
  /* TAMAÑO PERFECTO: 10% del ancho de la pantalla completa.
     Nunca se cortará porque es relativo al viewport. */
  font-size: 16vw; 
  
  line-height: 1;
  margin: 0;
  text-align: center;
  width: 100%;
  
  /* Estilo Visual */
  color: #000; /* Negro sólido para tapar líneas traseras */
  
  /* Grosor del borde aumentado a 1.8px */
  -webkit-text-stroke: 2.0px var(--mc-red);
  text-shadow: 2.0px var(--mc-red);
  
  letter-spacing: -0.18em;
  
  filter: drop-shadow(0 0 25px rgba(232, 55, 47, 0.25));
  paint-order: stroke fill;
}

/* Ajuste para monitores muy grandes (para que no sea monstruoso) */
@media (min-width: px) {
  .mc-main-logo {
    font-size: 140px; /* Tamaño máximo fijo */
    -webkit-text-stroke: 3px var(--mc-red);
    text-shadow: 3px var(--mc-red);
  }
}

/* =========================================
   MENU (HOME)
   ========================================= */
.mc-menu-list {
  display: flex; flex-direction: column; gap: 20px;
  width: 100%; /* Asegura centrado dentro de la página */
  align-items: center;
}

.mc-menu-link {
  font-size: 32px;
  font-weight: 800;
  color: var(--mc-red);
  text-decoration: none; text-transform: uppercase;
  line-height: 1.1; letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.9);
  text-align: center;
}
.mc-menu-link:active { color: #fff; }

/* =========================================
   ELEMENTOS COMUNES
   ========================================= */
.mc-item-row { margin-bottom: 30px; border-bottom: 1px solid rgba(232, 55, 47, 0.3); padding-bottom: 15px; width: 100%; }
.mc-item-link { text-decoration: none; display: block; cursor: pointer; }
.mc-item-title { font-size: 32px; font-weight: 800; color: var(--mc-red); margin: 0 0 8px 0; text-transform: uppercase; letter-spacing: -0.03em; }
.mc-item-details { font-size: 14px; color: rgba(255, 255, 255, 0.7); display: flex; gap: 10px; }
.mc-separator { opacity: 0.3; }

.mc-label-editorial { display: block; font-size: 13px; color: #fff; margin-bottom: 8px; margin-top: 24px; opacity: 0.8; text-align: left; width: 100%;}
.mc-input-editorial { background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.3); color: #fff; width: 100%; padding: 10px 0; font-size: 16px; outline: none; }
.mc-input-editorial:focus { border-bottom-color: var(--mc-red); }
.mc-btn-editorial { background: var(--mc-red); color: #fff; border: none; width: 100%; padding: 18px; font-size: 16px; font-weight: 800; text-transform: uppercase; margin-top: 40px; cursor: pointer; }

/* =========================================
   NAVEGACIÓN INFERIOR
   ========================================= */
.mc-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: #000; border-top: 1px solid rgba(255,255,255,0.15); padding-bottom: env(safe-area-inset-bottom); z-index: 100; }
.mc-nav-list { display: flex; height: 60px; list-style: none; margin: 0; padding: 0; }
.mc-nav-item { flex: 1; }
.mc-nav-link { display: flex; justify-content: center; align-items: center; height: 100%; text-decoration: none; color: rgba(255,255,255,0.5); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.mc-nav-link.active { color: var(--mc-red); }

/* =========================================
   LOGIN / GATE POPUP (DISEÑO EDITORIAL)
   ========================================= */
#mc-login-gate {
  display: none; 
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999;
  align-items: center; justify-content: center;
  /* Fondo más oscuro y con más desenfoque */
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(15px); 
  -webkit-backdrop-filter: blur(15px);
}

#mc-login-card {
  width: min(85vw, 360px);
  background: #000; /* Negro puro */
  border: 1px solid var(--mc-red);
  padding: 40px 30px;
  text-align: center;
  position: relative;
  
  /* EFECTO NEÓN ROJO */
  box-shadow: 0 0 40px rgba(232, 55, 47, 0.15);
}

.mc-gate-title {
  /* Usamos la fuente del Logo para identidad */
  font-family: "Outfit", sans-serif; 
  font-size: 26px; 
  font-weight: 900; 
  color: #fff; 
  letter-spacing: -0.02em; 
  text-transform: uppercase; 
  margin-bottom: 30px;
  line-height: 1;
}

.mc-gate-input {
  width: 100%; 
  padding: 12px 0;
  background: transparent;
  
  /* Estilo Editorial: Solo línea abajo */
  border: none;
  border-bottom: 1px solid #333;
  
  color: #fff; 
  font-size: 16px;
  text-align: center; 
  text-transform: uppercase;
  letter-spacing: 0.1em; 
  font-weight: 600;
  outline: none; 
  margin-bottom: 20px;
  border-radius: 0; /* Importante para móviles */
  transition: border-color 0.3s ease;
}

.mc-gate-input:focus { 
  border-bottom-color: var(--mc-red); 
}

.mc-gate-input::placeholder { 
  color: #444; 
  font-size: 12px;
}

.mc-gate-error {
  min-height: 20px; 
  font-size: 11px; 
  color: var(--mc-red);
  margin-bottom: 15px; 
  font-weight: 700; 
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: none;
}

.mc-gate-btn {
  width: 100%; 
  padding: 18px;
  background: var(--mc-red); 
  color: #fff;
  border: none; 
  font-weight: 800;
  text-transform: uppercase; 
  letter-spacing: 0.1em;
  cursor: pointer; 
  margin-top: 10px;
  transition: transform 0.1s, opacity 0.2s;
}

.mc-gate-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.mc-gate-close {
  margin-top: 25px; 
  background: none; 
  border: none;
  color: #666; 
  font-size: 10px; 
  text-decoration: underline; 
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.mc-gate-close:hover { color: #fff; }
/* ... (Tus estilos anteriores) ... */

/* FOOTER DE SOLICITUD */
.mc-footer-cta {
  text-align: center;
  padding: 20px 0;
  margin-top: auto; /* Empuja hacia abajo */
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%;
}

.mc-footer-link {
  color: #666;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: color 0.3s;
}
.mc-footer-link span {
  color: var(--mc-red);
  font-weight: 700;
  text-decoration: underline;
}
.mc-footer-link:hover { color: #fff; }

/* === LOGIN GATE MEJORADO (UX) === */
#mc-login-gate {
  display: none; 
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  opacity: 0; transition: opacity 0.3s ease; /* Transición suave */
}
#mc-login-gate.show { opacity: 1; }

#mc-login-card {
  width: min(85vw, 360px);
  background: #0a0a0a; border: 1px solid var(--mc-red);
  padding: 40px 30px; text-align: center; position: relative;
  box-shadow: 0 0 50px rgba(232, 55, 47, 0.15);
  transform: scale(0.95); transition: transform 0.3s ease;
}
#mc-login-gate.show #mc-login-card { transform: scale(1); }

/* Animación de Vibración (Error) */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.mc-shake { animation: shake 0.4s ease-in-out; border-color: #ff3333 !important; }

/* Inputs y Grupo Password */
.password-group { position: relative; width: 100%; }
.toggle-password {
  position: absolute; right: 0; top: 10px;
  background: none; border: none; color: #666; cursor: pointer; font-size: 18px;
}
.toggle-password:hover { color: #fff; }

.mc-gate-title { font-family: "Outfit", sans-serif; font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 30px; letter-spacing: -0.02em; }
.mc-gate-input {
  width: 100%; padding: 12px 0; background: transparent;
  border: none; border-bottom: 1px solid #333;
  color: #fff; font-size: 18px; text-align: center;
  font-weight: 700; outline: none; margin-bottom: 25px;
  border-radius: 0; text-transform: uppercase; letter-spacing: 0.1em;
}
.mc-gate-input:focus { border-bottom-color: var(--mc-red); }
.mc-gate-input::placeholder { color: #444; font-size: 12px; letter-spacing: normal; }

.mc-gate-btn {
  width: 100%; padding: 16px; background: var(--mc-red); color: #fff;
  border: none; font-weight: 800; letter-spacing: 0.1em; cursor: pointer; margin-top: 10px;
}
.mc-gate-close { margin-top: 20px; background: none; border: none; color: #666; text-decoration: underline; cursor: pointer; font-size: 11px; }
.mc-gate-error { color: var(--mc-red); font-size: 11px; margin-bottom: 15px; display: none; font-weight: 700; }

/* === ESTILOS DE RECUPERACIÓN === */
.mc-link-recovery {
  display: block;
  margin-top: 15px;
  color: #666;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s;
}
.mc-link-recovery:hover { color: var(--mc-red); }

/* Vistas del Popup (Login vs Recovery) */
.gate-view { transition: opacity 0.3s ease; }
.hidden-view { display: none; opacity: 0; }