/* ═══════════════════════════════════════════════════════
   ARCADIA NEXUS IA — Login Page (Atlantis Identity)
   Cool, clean, premium. Soft celeste left panel.
   ═══════════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100vh; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: #EEF5FA;
  color: #1a2a3a;
}
::selection { background: rgba(77,180,240,0.18); }

/* ─── PAGE LAYOUT ─── */
.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ─── LEFT COLUMN ─── */
.login-left {
  display: flex;
  flex-direction: column;
  padding: 2rem 3rem;
  background: linear-gradient(180deg, #EEF5FA 0%, #E4F0F9 50%, #DDEAF5 100%);
}

.login-nav { margin-bottom: 2rem; }

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #0d2440;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-title::before {
  content: '';
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #2e86c1, #48c9b0);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(46,134,193,0.4), 0 0 20px rgba(72,201,176,0.15);
  animation: brand-pulse 3s ease-in-out infinite;
}
.brand-accent {
  font-weight: 300;
  letter-spacing: 0.28em;
  color: #2e86c1;
  text-shadow: 0 0 18px rgba(46,134,193,0.15);
}
@keyframes brand-pulse {
  0%, 100% { opacity: 0.6; width: 28px; }
  50% { opacity: 1; width: 36px; }
}
@keyframes brand-diamond {
  0%, 100% { opacity: 0.4; transform: rotate(0deg); }
  50% { opacity: 1; transform: rotate(90deg); }
}

/* ─── CONTENT ─── */
.login-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 400px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.18;
  font-weight: 500;
  color: #0d2440;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.login-subtitle {
  font-size: 0.92rem;
  color: #5a7a95;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* ─── FORM ─── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(77, 180, 230, 0.3);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #0d2440;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(77, 180, 240, 0.05);
}
.btn-google:hover {
  background: #ffffff;
  border-color: rgba(77, 180, 230, 0.6);
  box-shadow: 0 6px 20px rgba(77, 180, 240, 0.15);
  transform: translateY(-1px);
}
.btn-google:active {
  background: rgba(240, 248, 255, 0.95);
  transform: translateY(0);
}
.btn-google svg {
  flex-shrink: 0;
}

.login-terms {
  font-size: 0.7rem;
  color: #8aa8c0;
  margin-top: 1.4rem;
  line-height: 1.6;
}
.login-terms a {
  color: #5a7a95;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.login-terms a:hover {
  color: #0d3060;
}

.login-footer {
  padding: 1.5rem 0 0;
  font-size: 0.68rem;
  color: #9ab8d0;
}

/* ─── RIGHT COLUMN ─── */
/* ─── RIGHT COLUMN ─── */
.login-right {
  background: linear-gradient(145deg, #041523 0%, #062840 35%, #073a45 65%, #062e3a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.login-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(0,180,200,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 80% 85%, rgba(0,140,180,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 60% 40%, rgba(20,180,220,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* ── RIGHT TOP NAV ── */
.right-nav {
  position: absolute;
  top: 2rem;
  left: 3rem;
  right: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}
.right-nav-links {
  display: flex;
  gap: 1.8rem;
}
.right-nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(168, 220, 240, 0.6);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s ease;
}
.right-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(77,201,246,0.8), rgba(72,201,176,0.6));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.right-nav-link:hover {
  color: #ffffff;
}
.right-nav-link:hover::after {
  transform: scaleX(1);
}

.btn-contactar {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(168,220,240,0.75);
  text-decoration: none;
  border: 1px solid rgba(77,201,246,0.28);
  border-radius: 8px;
  padding: 0.45rem 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.22s;
  backdrop-filter: blur(4px);
  background: rgba(77,201,246,0.04);
}
.btn-contactar:hover {
  background: rgba(77,201,246,0.12);
  border-color: rgba(77,201,246,0.55);
  color: rgba(200,240,255,1);
  box-shadow: 0 0 16px rgba(77,201,246,0.15);
}

/* PREVIEW WINDOW */
.preview-window {
  width: 100%;
  max-width: 420px;
  background: rgba(12,22,36,0.9);
  border: 1px solid rgba(77,201,246,0.1);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  background: rgba(7,16,25,0.8);
  border-bottom: 1px solid rgba(77,201,246,0.06);
}
.preview-dots {
  display: flex;
  gap: 5px;
}
.preview-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(120,200,255,0.12);
}
.preview-dots span:first-child { background: rgba(239,68,68,0.35); }
.preview-dots span:nth-child(2) { background: rgba(250,200,50,0.35); }
.preview-dots span:last-child { background: rgba(50,200,100,0.35); }
.preview-url {
  font-size: 0.65rem;
  color: rgba(120,200,255,0.3);
  background: rgba(0,0,0,0.2);
  padding: 0.2rem 0.8rem;
  border-radius: 5px;
  flex: 1;
  text-align: center;
}

.preview-body {
  padding: 1.5rem;
}

.preview-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.72rem;
  color: rgba(123,224,255,0.6);
  letter-spacing: 0.1em;
  font-weight: 600;
}
.preview-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(77,201,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  color: rgba(123,224,255,0.7);
  background: rgba(77,201,246,0.06);
}
.preview-pill {
  margin-left: auto;
  font-size: 0.58rem;
  color: rgba(77,201,246,0.4);
  background: rgba(77,201,246,0.05);
  border: 1px solid rgba(77,201,246,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.preview-hero {
  margin-bottom: 1.4rem;
}
.preview-hero small {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: rgba(90,122,154,0.6);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}
.preview-hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(216,232,248,0.85);
  line-height: 1.3;
}

/* AGENT CARDS */
.preview-agents {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.preview-agent {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  border-radius: 9px;
  border: 1px solid rgba(77,201,246,0.06);
  background: rgba(10,30,60,0.5);
}
.pa-icon {
  font-size: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  flex-shrink: 0;
}
.pa-health .pa-icon { background: rgba(77,201,246,0.08); }
.pa-legal .pa-icon { background: rgba(168,200,232,0.08); }
.pa-genomic .pa-icon { background: rgba(139,156,247,0.08); }
.preview-agent strong {
  font-size: 0.75rem;
  color: rgba(216,232,248,0.8);
  display: block;
  font-weight: 600;
}
.preview-agent small {
  font-size: 0.62rem;
  color: rgba(90,122,154,0.6);
}

/* STATS */
.preview-stats {
  display: flex;
  gap: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(77,201,246,0.06);
}
.preview-stats div {
  display: flex;
  flex-direction: column;
}
.preview-stats strong {
  font-size: 0.82rem;
  color: rgba(77,201,246,0.7);
  font-weight: 700;
}
.preview-stats small {
  font-size: 0.55rem;
  color: rgba(90,122,154,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
}

/* FEATURES */
.right-features {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 420px;
  width: 100%;
  position: relative;
}
.phase-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(77, 201, 246, 0.7);
  margin-bottom: 0.3rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(77, 201, 246, 0.5);
  line-height: 1.2;
}
/* FEATURE STATUS TERMINAL */
.feature-status {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.2rem;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(77, 201, 246, 0.08);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  transition: all 0.25s ease;
}
.status-item:hover {
  background: rgba(77, 201, 246, 0.04);
  border-color: rgba(77, 201, 246, 0.2);
  transform: translateX(3px);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  opacity: 0.4;
}
.status-dot.online {
  background-color: #00f2fe;
  box-shadow: 0 0 8px #00f2fe;
}
.status-dot.online::after {
  border: 1px solid #00f2fe;
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.status-dot.shield {
  background-color: #b16ef6;
  box-shadow: 0 0 8px #b16ef6;
}
.status-dot.shield::after {
  border: 1px solid #b16ef6;
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0.8; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}

.status-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.status-meta {
  margin-left: auto;
  font-size: 0.62rem;
  font-family: 'Courier New', monospace;
  color: rgba(168, 200, 232, 0.4);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-right {
    display: none;
  }
  .login-left {
    padding: 2rem 2rem;
  }
  .login-content {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .login-left {
    padding: 1.5rem;
  }
  h1 {
    font-size: 2rem;
  }
}

/* ─── MODAL PLANES ─── */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 21, 35, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.login-modal-content {
  background: rgba(12, 28, 45, 0.95);
  border: 1px solid rgba(77, 201, 246, 0.18);
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  z-index: 1010;
  color: #e4f0f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modal-zoom-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modal-zoom-in {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.login-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: rgba(168, 220, 240, 0.6);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.2s;
}
.login-modal-close:hover {
  color: #ffffff;
}
.login-modal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #ffffff;
  text-align: center;
}
.modal-subtitle {
  font-size: 0.85rem;
  color: rgba(168, 220, 240, 0.6);
  margin-bottom: 2rem;
  text-align: center;
}
.plans-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}
.plan-card {
  background: rgba(6, 15, 30, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 201, 246, 0.3);
}
.plan-card.premium {
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.06);
}
.plan-card.premium:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.12);
}
.plan-card.enterprise {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.06);
}
.plan-card.enterprise:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.12);
}
.plan-badge {
  align-self: flex-start;
  margin-bottom: 0.8rem;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(168, 220, 240, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.plan-badge.premium {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}
.plan-badge.enterprise {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}
.plan-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.plan-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.1rem;
}
.plan-price-span {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(168, 220, 240, 0.6);
  font-weight: 400;
}
.plan-normal-price {
  font-size: 0.65rem;
  color: rgba(168, 220, 240, 0.45);
  margin-bottom: 1.2rem;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  flex: 1;
}
.plan-features li {
  font-size: 0.75rem;
  color: rgba(168, 220, 240, 0.7);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.plan-features li strong {
  color: #ffffff;
}
.plan-action-btn {
  width: 100%;
  padding: 0.7rem;
  border-radius: 9px;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  display: block;
}
.plan-action-btn:not(.secondary) {
  background: linear-gradient(135deg, #2e86c1, #48c9b0);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(46, 134, 193, 0.2);
}
.plan-action-btn:not(.secondary):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(46, 134, 193, 0.4);
}
.plan-action-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(168, 220, 240, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.plan-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Responsive para modal */
@media (max-width: 768px) {
  .plans-container {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
  }
  .login-modal-content {
    padding: 2rem 1.2rem;
    max-width: 480px;
  }
}
