/* System Design - Guía Bancamiga Premium */
:root {
  /* Colors */
  --bg-dark: #060b13;
  --bg-deep: #0b132b;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: #00e5ff;
  
  --primary: #00e676; /* Bancamiga Green */
  --primary-glow: rgba(0, 230, 118, 0.15);
  --accent: #00e5ff;  /* Cyan */
  --accent-glow: rgba(0, 229, 255, 0.15);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-white: #ffffff;
  
  /* Fonts */
  --font-sans: 'DM Sans', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  
  /* Shadows & Radius */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(0, 229, 255, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #0c1b33 0%, #060b13 70%);
}

.shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-white);
}

p {
  color: var(--text-muted);
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--primary);
  color: #000;
  padding: 10px 20px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 20px;
}

/* Topbar */
.topbar {
  background: rgba(11, 19, 43, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 10px 0;
  color: var(--text-muted);
  position: relative;
  z-index: 10;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 14px var(--primary); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Header */
.site-header {
  height: 80px;
  background: rgba(6, 11, 19, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 99;
  transition: var(--transition);
}

.site-header.scrolled {
  height: 70px;
  background: rgba(6, 11, 19, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-white);
  letter-spacing: -0.04em;
}

.logo-symbol {
  width: 32px;
  height: 32px;
  border-radius: 8px 8px 8px 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #060b13;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 16px;
}

.logo-accent {
  color: var(--accent);
}

.desktop-nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link:hover::after {
  width: 100%;
}

.cta-btn {
  background: linear-gradient(135deg, var(--primary), #00b0ff);
  color: #060b13;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.25);
  transition: var(--transition);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}

.glow-1 {
  background: var(--primary);
  top: -10%;
  left: 10%;
}

.glow-2 {
  background: var(--accent);
  bottom: 10%;
  right: 5%;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-kicker::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 40px;
}

/* Search Box Simulator */
.search-box-sim {
  background: rgba(11, 19, 43, 0.45);
  border: 1px solid var(--border-light);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  max-width: 520px;
  backdrop-filter: blur(8px);
}

.search-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lock-icon {
  font-size: 20px;
  color: var(--primary);
  background: rgba(0, 230, 118, 0.08);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 230, 118, 0.15);
}

.search-url {
  display: flex;
  flex-direction: column;
}

.search-url b {
  font-size: 15px;
  color: var(--text-white);
  letter-spacing: 0.01em;
}

.search-url span {
  font-size: 11px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 600;
}

.search-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-hover);
  border: 1px solid var(--border-light);
  color: var(--text-white);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 18px;
  transition: var(--transition);
}

.search-box-sim:hover {
  border-color: rgba(0, 230, 118, 0.3);
}

.search-box-sim:hover .search-btn {
  background: var(--primary);
  color: #060b13;
  border-color: var(--primary);
  transform: scale(1.05);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-primary {
  background: var(--primary);
  color: #060b13;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.25);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 230, 118, 0.45);
  background: #00ff80;
}

.btn-secondary {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  padding: 10px 0;
}

.btn-secondary:hover {
  color: var(--accent);
}

/* Hero Art - Orbital */
.hero-art-container {
  position: relative;
  height: 480px;
  width: 100%;
  display: grid;
  place-items: center;
}

.orb-shield {
  position: relative;
  z-index: 2;
  width: 180px;
  height: 180px;
  border-radius: 35% 65% 60% 40% / 40% 45% 55% 60%;
  background: linear-gradient(135deg, #0f2c59, #0c132b);
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: var(--shadow-glow), inset 0 0 20px rgba(0, 229, 255, 0.15);
  display: grid;
  place-items: center;
  animation: morph 8s ease-in-out infinite alternate;
}

@keyframes morph {
  0% { border-radius: 35% 65% 60% 40% / 40% 45% 55% 60%; }
  50% { border-radius: 50% 50% 40% 60% / 50% 60% 40% 50%; }
  100% { border-radius: 65% 35% 50% 50% / 45% 45% 55% 55%; }
}

.orb-shield svg {
  width: 72px;
  height: 72px;
  fill: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent));
}

.orbit-ring {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

.ring-1 {
  width: 320px;
  height: 320px;
}

.ring-2 {
  width: 440px;
  height: 440px;
  border-style: solid;
  border-color: rgba(0, 229, 255, 0.05);
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Floating Badges */
.float-badge {
  position: absolute;
  z-index: 3;
  background: rgba(11, 19, 43, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  animation: float 6s ease-in-out infinite;
}

.badge-a {
  top: 15%;
  right: 5%;
  animation-delay: 0s;
}

.badge-b {
  bottom: 18%;
  left: 2%;
  animation-delay: -3s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.badge-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: bold;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-text b {
  font-size: 11px;
  color: var(--text-white);
}

.badge-text span {
  font-size: 9px;
  color: var(--text-muted);
}

/* Sections Global */
.section {
  padding: 100px 0;
  border-top: 1px solid var(--border-light);
}

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}

/* Steps Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: var(--transition);
}

.step-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
}

.step-card:hover::before {
  background: var(--accent);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  position: absolute;
  top: 30px;
  right: 30px;
  font-weight: 700;
}

.step-icon-big {
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--primary);
  display: inline-block;
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 14px;
}

/* Security Scanner Section */
.scanner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.scanner-visual {
  background: #0b132b;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md), 0 0 40px rgba(0, 230, 118, 0.05);
  position: relative;
  overflow: hidden;
}

.scanner-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.scanner-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.scanner-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.scanner-input {
  flex: 1;
  background: rgba(6, 11, 19, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.scanner-input:focus {
  border-color: var(--accent);
}

.scanner-btn {
  background: var(--accent);
  color: #060b13;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.scanner-btn:hover {
  background: #00ffcc;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.scanner-results {
  background: rgba(6, 11, 19, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scan-line-progress {
  height: 2px;
  background: var(--primary);
  width: 0%;
  box-shadow: 0 0 8px var(--primary);
  margin-bottom: 16px;
  transition: width 0.1s linear;
}

.scan-status-text {
  color: var(--accent);
  margin-bottom: 12px;
}

.scan-output-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scan-output-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.scan-output-list li.success {
  color: var(--text-white);
}

.scan-output-list li.success span {
  color: var(--primary);
}

.scanner-content h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.scanner-content p {
  margin-bottom: 30px;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.1);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-item-text b {
  display: block;
  font-size: 15px;
  color: var(--text-white);
  margin-bottom: 2px;
}

.check-item-text p {
  font-size: 13px;
}

/* FAQ Accordion Section */
.faq-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
}

.faq-info h2 {
  font-size: 38px;
  margin-bottom: 20px;
}

.faq-info p {
  margin-bottom: 30px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-header {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h3 {
  font-size: 16px;
  font-family: var(--font-sans);
  font-weight: 700;
  transition: var(--transition);
}

.faq-icon-toggle {
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.3s ease;
  font-weight: 300;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-body-content {
  padding: 0 24px 24px;
  font-size: 14px;
  color: var(--text-muted);
  border-top: 1px solid transparent;
}

.faq-item.active {
  border-color: rgba(0, 229, 255, 0.25);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-item.active .faq-header h3 {
  color: var(--accent);
}

.faq-item.active .faq-icon-toggle {
  transform: rotate(45deg);
}

.faq-item.active .faq-body-content {
  border-top-color: var(--border-light);
}

/* SEO Link Hub Directory Section */
.seo-directory {
  background: #070c17;
  border-top: 1px solid var(--border-light);
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.seo-col h3 {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.seo-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seo-links a {
  text-decoration: none;
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
  display: inline-block;
  padding: 2px 0;
}

.seo-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* Warnings and Security Notice Banner */
.warning-banner {
  background: linear-gradient(135deg, rgba(230, 0, 0, 0.05), rgba(255, 118, 89, 0.05));
  border: 1px solid rgba(255, 118, 89, 0.25);
  padding: 30px;
  border-radius: var(--radius-md);
  margin-bottom: 80px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.warning-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 118, 89, 0.1);
  color: #ff7659;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  flex-shrink: 0;
}

.warning-text h4 {
  font-size: 18px;
  color: #ff7659;
  margin-bottom: 6px;
}

.warning-text p {
  font-size: 14px;
}

/* Footer styling */
.site-footer {
  background: #03070d;
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-disclaimer {
  max-width: 450px;
}

.footer-disclaimer b {
  color: var(--text-white);
  display: block;
  margin-bottom: 4px;
}

.footer-logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--text-white);
}

.footer-logo span {
  color: var(--accent);
}

/* Responsive breakpoint styling */
@media (max-width: 968px) {
  .hero-layout, .scanner-grid, .faq-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .hero {
    padding: 60px 0 80px;
  }
  
  .hero-art-container {
    height: 380px;
    order: -1;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .site-header {
    height: 70px;
  }
  
  .site-header.scrolled {
    height: 60px;
  }
  
  /* Mobile Navigation Drawer */
  .mobile-drawer {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-dark);
    border-top: 1px solid var(--border-light);
    padding: 40px 24px;
    z-index: 98;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mobile-drawer.active {
    transform: translateX(0);
  }
  
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .mobile-nav-links a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .warning-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
}

@media (max-width: 580px) {
  .footer-layout {
    flex-direction: column;
    text-align: center;
  }
  .search-box-sim {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-btn {
    align-self: flex-end;
  }
}
