/* =========================================================
   BGSC DESIGN SYSTEM
   Archivo: bgsc.css
   Autor: Grupo BGSC – Ecosistema Global
   ========================================================= */

/* === VARIABLES DE COLOR === */
:root {
  --bgsc-primary: #b600ff;
  --bgsc-primary-dark: #8300b8;
  --bgsc-bg: #0b0b0f;
  --bgsc-text: #f5f5f7;
  --bgsc-card: #18181c;
  --bgsc-accent: #8c3fff;
  --bgsc-gray: #a1a1aa;
  --transition: 0.25s ease;

  --bg:#0b0b0f;
  --panel:#11131a;
  --card:#151827;
  --text:#e6e8ef;
  --muted:#a7aec4;
  --brand:#b600ff;
  --brand-2:#6a00ff;
  --white:#ffffff;
  --ok:#22c55e;
  --border:rgba(255,255,255,.08);
  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

/* === RESETEO GENERAL === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #f5f5f7;
  background-color: #0b0b0f;
  line-height: 1.6;
  overflow-x: hidden;
}

img{max-width:100%;display:block}

/* === CONTENEDORES === */
.container {
  width: min(1120px, 92%);
  margin-inline: auto;
  padding-block: 2rem;
}

/* igual al index */
.container{
  width:min(1120px, 92%);
  margin-inline:auto;
}

/* === SECCIONES === */
.section {
  padding-block: 4rem;
}

.section--alt {
  background-color: #18181c;
}

/* === TIPOGRAFÍA === */
h1, h2, h3 {
  font-weight: 700;
  color: #f5f5f7;
}

h1.hero__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

p {
  color: #a1a1aa;
  margin-bottom: 1rem;
}

/* === BOTONES === */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn--primary {
  background-color: #b600ff;
  color: #fff;
}

.btn--primary:hover {
  background-color: #8300b8;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border: 1px solid #b600ff;
  color: #b600ff;
}

.btn--ghost:hover {
  background: var(--bgsc-primary);
  color: #fff;
}

.btn--sm{padding:8px 12px;font-size:.92rem}
.btn--white{background:#ffffff;color:#151515}

/* === ENCABEZADO / NAV === */
.header {
  background: rgba(15, 15, 20, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.brand img,
.brand__logo {
  height: 35px;
  border-radius: 8px;
}

.brand__name{font-weight:800;letter-spacing:.12em;color:#ffffff}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav a {
  color: #a1a1aa;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding:8px 10px;
  border-radius:10px;
}

.nav a:hover,
.nav a.active,
.nav__link:hover,
.nav__link.is-active {
  color: #fff;
  background:rgba(255,255,255,.06);
}

.nav__link{
  color:#a7aec4;
  text-decoration:none;
  font-weight:500;
}

/* Botón Menú: oculto en desktop, visible en móvil */
[data-nav-toggle],
.nav-toggle,
.nav__toggle {
  display: none;
}

@media (max-width: 880px) {
  [data-nav-toggle],
  .nav-toggle,
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex-direction:column;
    background:none;
    border:0;
    cursor:pointer;
  }

  .nav__toggle span{width:24px;height:2px;background:#ffffff;display:block}

  .nav,
  [data-nav] {
    display:none;
    position:absolute;
    right:4%;
    top:60px;
    background:var(--panel);
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    padding:10px;
    flex-direction:column;
    gap:8px;
    box-shadow:0 10px 30px rgba(0,0,0,.35)
  }

  .nav.open,
  .nav[data-open]{
    display:flex;
  }
}

/* === GRID / LAYOUT === */
.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* igual al index para cards en 3 columnas */
.grid{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(1, minmax(0,1fr));
}
@media (min-width:640px){ .grid{grid-template-columns:repeat(2,1fr)} }
@media (min-width:1000px){ .grid{grid-template-columns:repeat(3,1fr)} }

/* === TARJETAS === */
.card {
  background-color: #18181c;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  border:1px solid rgba(255,255,255,.08);
  display:flex;
  flex-direction:column;
  gap:10px;
}

.card:hover {
  transform: translateY(-4px);
}

.card__title {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.card__text {
  color: #a1a1aa;
}

/* === LISTAS === */
ul.helper {
  list-style: none;
  margin-top: 1rem;
}

ul.helper li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

ul.helper li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #b600ff;
}

/* === FORMULARIOS === */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input, .textarea, .select {
  width: 100%;
  background-color: #18181c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 1rem;
}

.input:focus, .textarea:focus, .select:focus {
  border-color: #b600ff;
  outline: none;
}

/* === HERO Y ELEMENTOS DESTACADOS (para internas si se usan) === */
.hero__title span {
  color: #b600ff;
}

.hero__subtitle {
  color: #a1a1aa;
  font-weight: 400;
}

/* === ANIMACIONES === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section, .card, .btn {
  animation: fadeInUp 0.6s ease forwards;
}

/* Sombra del header al hacer scroll (opcional si usas .scrolled en JS) */
.header.scrolled {
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: box-shadow .25s ease;
}

/* ===== BGSC FINANCE LAB – TAGS Y AJUSTES ===== */

.helper-tag {
  display: inline-flex;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--bgsc-gray);
  margin-bottom: 0.5rem;
}

.helper-tag--invest {
  border-color: rgba(182,0,255,0.6);
  color: #f5f5ff;
}
img{max-width:100%;display:block}

.container{
  width:min(1120px, 92%);
  margin-inline:auto;
}

/* Base del footer */
.footer{
  background:#121217;
  padding:40px 0;
  margin-top:40px;
  border-top:1px solid rgba(255,255,255,.08);
  color:#e6e8ef;
}

/* Contenedor interno del footer: AQUÍ está el truco para varias columnas */
.footer__grid{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  justify-content:space-between;
}

/* Cada columna del footer */
.footer__grid > div{
  flex:1 1 220px;   /* mínimo 220px, se acomodan en varias columnas */
}

/* Marca en el footer */
.brand--footer{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.brand--footer .brand__logo{
  width:36px;
  height:36px;
  object-fit:contain;
}

.brand__name{
  font-weight:800;
  letter-spacing:.12em;
}

/* Texto descriptivo */
.footer__txt{
  color:#a7aec4;
  max-width:46ch;
  font-size:0.95rem;
}

/* Títulos de columnas */
.footer__title{
  margin:0 0 12px;
  font-size:1rem;
  font-weight:600;
  color:#ffffff;
  border-bottom:2px solid #b600ff;
  display:inline-block;
  padding-bottom:6px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

/* Lista de enlaces */
.footer__list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px;
}

.footer__list li a{
  font-size:0.95rem;
  text-decoration:none;
  color:#a7aec4;
  transition:all 0.2s ease;
}

.footer__list li a:hover{
  color:#b600ff;
  padding-left:4px;
}

/* Redes sociales: círculos con íconos */
.footer__socials{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.footer__socials li{
  margin:0;
}

.footer__socials a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.15);
  color:#a7aec4;
  text-decoration:none;
  font-size:0.9rem;
  transition:all 0.25s ease;
}

.footer__socials a:hover{
  border-color:#b600ff;
  color:#ffffff;
  transform:translateY(-1px);
}

/* Parte de abajo del footer */
.footer__bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding:14px 0;
  color:#a7aec4;
  font-size:.9rem;
  text-align:center;
  margin-top:15px;
}

/* Responsive: columnas en una sola en pantallas pequeñas */
/* ===== Ajustes para móvil (responsive) ===== */
@media (max-width:768px){

  /* Reducimos aire general del footer */
  .footer{
    padding:0px 0 8px;
    margin-top:16px;
  }

  /* Las columnas se apilan y con poco espacio entre ellas */
  .footer__grid{
    flex-direction:column;
    gap:8px;
  }

  /* 👉 AQUÍ EL FIX: que cada columna mida solo lo que necesita */
  .footer__grid > div{
    flex:0 0 auto;   /* ya no 220px */
    margin:0;
  }

  .brand--footer{
    gap:6px;
  }

  .footer__txt{
    font-size:0.9rem;
    max-width:100%;
    margin-bottom:6px;
  }

  .footer__title{
    margin:0 0 6px;
    font-size:0.95rem;
    padding-bottom:4px;
  }

  .footer__list{
    gap:4px;
  }

  .footer__list li a{
    font-size:0.9rem;
  }

  .footer__socials{
    margin-top:4px;
    margin-bottom:4px;
    gap:6px;
  }

  .footer__socials a{
    width:32px;
    height:32px;
    font-size:0.8rem;
  }

  .footer__bottom{
    margin-top:6px;
    padding:8px 0;
    font-size:0.85rem;
  }
}
