/* ==========================================================================
   CAPITALPRO - Estilos Soluciones Financieras Corporativas & B2B
   ========================================================================== */

:root {
  --bg-dark: #0a192f;
  --bg-card: #112240;
  --bg-surface: #061122;
  
  --color-blue: #2563eb;
  --color-gold: #eab308;
  --color-silver: #cbd5e1;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-blue: #2563eb;
  
  --border-glass: rgba(37, 99, 235, 0.25);
  --border-active: rgba(37, 99, 235, 0.5);
  
  --grad-navy: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --grad-gold: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  --grad-text: linear-gradient(135deg, #f8fafc 0%, #3b82f6 100%);
  
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.7);
  --shadow-blue: 0 0 25px rgba(37, 99, 235, 0.35);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --container-width: 1240px;
  --header-height: 85px;
  --transition-normal: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; position: relative; }
.section-dark { background-color: rgba(17, 34, 64, 0.5); border-top: 1px solid var(--border-glass); border-bottom: 1px solid var(--border-glass); }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; color: var(--text-main); line-height: 1.25; }
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }

.blue-text { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3.5rem auto; }
.section-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1.1rem; border-radius: var(--radius-full); background: rgba(37, 99, 235, 0.1); border: 1px solid var(--border-active); color: #3b82f6; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.875rem 2rem; border-radius: var(--radius-md); font-weight: 700; font-size: 1rem; transition: var(--transition-normal); white-space: nowrap; }
.btn-blue { background: var(--grad-navy); color: #ffffff; box-shadow: var(--shadow-blue); }
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(37, 99, 235, 0.6); }
.btn-gold { background: var(--grad-gold); color: #0a192f; }
.btn-outline { border: 1px solid var(--color-blue); color: #3b82f6; }
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.875rem; }

.card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 1.75rem; transition: var(--transition-normal); }
.card:hover { border-color: var(--border-active); transform: translateY(-4px); box-shadow: var(--shadow-md); }

.b2b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); z-index: 1000; background: rgba(10, 25, 47, 0.95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-glass); }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--text-main); }
.logo-icon { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--grad-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; }

.nav-menu { display: flex; align-items: center; gap: 2.25rem; }
.nav-link { font-weight: 500; font-size: 0.95rem; color: var(--text-muted); }
.nav-link:hover, .nav-link.active { color: #3b82f6; }

.cart-trigger { background: rgba(37, 99, 235, 0.1); border: 1px solid var(--border-active); padding: 0.6rem 1.1rem; border-radius: var(--radius-md); color: var(--text-main); font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.cart-badge { background: var(--color-gold); color: #0a192f; font-size: 0.75rem; font-weight: 800; padding: 0.15rem 0.5rem; border-radius: var(--radius-full); }

.cart-drawer { position: fixed; top: 0; right: -100%; width: 90%; max-width: 420px; height: 100vh; background: var(--bg-card); border-left: 1px solid var(--border-active); box-shadow: var(--shadow-md); z-index: 2000; display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; transition: right 0.4s ease; }
.cart-drawer.active { right: 0; }
.cart-items-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; overflow-y: auto; flex: 1; }

.hero { padding-top: calc(var(--header-height) + 4rem); padding-bottom: 6rem; background: radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.15) 0%, rgba(10, 25, 47, 0) 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-number { font-family: var(--font-serif); font-size: 2.75rem; font-weight: 700; color: #3b82f6; }

.faq-container { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-md); }
.faq-question { width: 100%; padding: 1.35rem 1.5rem; display: flex; justify-content: space-between; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--text-main); text-align: left; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0 1.5rem; color: var(--text-muted); }
.faq-item.active .faq-answer { max-height: 250px; padding-bottom: 1.35rem; }

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.8rem 1.1rem; background: rgba(6, 17, 34, 0.7); border: 1px solid var(--border-glass); border-radius: var(--radius-md); color: var(--text-main); }

.footer { background: #040a14; border-top: 1px solid var(--border-glass); padding: 4rem 0 2rem 0; color: var(--text-muted); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; }

@media (max-width: 992px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .b2b-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .nav-menu { display: none; } .b2b-grid, .stats-grid { grid-template-columns: 1fr; } }
