/* =============================================================
   Stock Bridge Investment — CSS Principal
   Paleta: Azul marino (#0B1F3A), Dorado (#C9A84C), Blanco (#FFFFFF)
   ============================================================= */

/* ---- Variables -------------------------------------------- */
:root {
    --navy:       #0B1F3A;
    --navy-mid:   #122848;
    --navy-light: #1A3A5C;
    --gold:       #C9A84C;
    --gold-light: #E2C47A;
    --white:      #FFFFFF;
    --off-white:  #F7F8FA;
    --gray-100:   #EEF0F3;
    --gray-300:   #C8CDD6;
    --gray-500:   #8792A2;
    --gray-700:   #4A5568;
    --text-dark:  #1A202C;
    --text-body:  #4A5568;
    --success:    #2F855A;
    --danger:     #C53030;

    --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius:     8px;
    --radius-lg:  16px;
    --shadow:     0 2px 12px rgba(11,31,58,.10);
    --shadow-lg:  0 8px 32px rgba(11,31,58,.18);
    --transition: 0.2s ease;
    --max-width:  1200px;
}

/* ---- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text-body); background: var(--white); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Utilidades ------------------------------------------ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--alt  { background: var(--off-white); }
.section__header { text-align: center; margin-bottom: 56px; }
.section__tag  { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.section__title { font-size: clamp(26px, 4vw, 40px); font-weight: 700; color: var(--navy); line-height: 1.2; }
.section--dark .section__title { color: var(--white); }
.section__subtitle { font-size: 18px; color: var(--gray-500); margin-top: 12px; max-width: 580px; margin-left: auto; margin-right: auto; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- Botones --------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius);
    font-family: var(--font); font-size: 15px; font-weight: 600;
    cursor: pointer; border: 2px solid transparent;
    transition: all var(--transition); white-space: nowrap;
}
.btn--primary  { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn--outline  { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--white    { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--white:hover  { background: var(--off-white); }
.btn--ghost    { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover  { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--lg { padding: 16px 36px; font-size: 17px; }

/* ---- Navbar ---------------------------------------------- */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: var(--navy);
    box-shadow: 0 2px 20px rgba(0,0,0,.25);
    transition: box-shadow var(--transition);
}
.navbar__inner {
    display: flex; align-items: center; gap: 24px;
    height: 72px;
}
.navbar__logo img { height: 44px; width: auto; }
.navbar__menu {
    display: flex; align-items: center; gap: 4px;
    flex: 1; justify-content: center;
}
.navbar__menu > li { position: relative; }
.navbar__menu a {
    display: block; padding: 8px 14px;
    color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500;
    border-radius: var(--radius); transition: all var(--transition);
}
.navbar__menu a:hover,
.navbar__menu a.active { color: var(--gold); background: rgba(201,168,76,.12); }
.chevron { font-size: 11px; opacity: .6; }

/* Dropdown */
.dropdown {
    position: absolute; top: calc(100% + 8px); left: 0;
    background: var(--navy-mid); border-radius: var(--radius);
    min-width: 240px; padding: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all var(--transition);
}
.has-dropdown:hover .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { color: rgba(255,255,255,.8); font-size: 14px; padding: 10px 14px; border-radius: 6px; }
.dropdown a:hover { color: var(--gold); background: rgba(201,168,76,.1); }

.navbar__actions { display: flex; align-items: center; gap: 12px; }

/* Selector de idioma */
.lang-switcher { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.5); font-size: 13px; }
.lang-btn { color: rgba(255,255,255,.6); font-size: 13px; font-weight: 600; padding: 2px 4px; }
.lang-btn:hover, .lang-btn.active { color: var(--gold); }

/* Hamburger (mobile) */
.navbar__hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.navbar__hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--white); border-radius: 2px;
    transition: all var(--transition);
}

/* ---- HERO ------------------------------------------------- */
.hero {
    background: var(--navy);
    min-height: calc(100vh - 72px);
    display: flex; align-items: center;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(201,168,76,.08) 0%, transparent 65%);
}
.hero__inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
    align-items: center; padding: 80px 0;
    position: relative; z-index: 1;
}
.hero__tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(201,168,76,.15); color: var(--gold);
    padding: 6px 16px; border-radius: 20px;
    font-size: 13px; font-weight: 600;
    border: 1px solid rgba(201,168,76,.3);
    margin-bottom: 20px;
}
.hero__title {
    font-size: clamp(30px, 4.5vw, 52px); font-weight: 700;
    color: var(--white); line-height: 1.15; margin-bottom: 20px;
}
.hero__title span { color: var(--gold); }
.hero__subtitle {
    font-size: 18px; color: rgba(255,255,255,.7);
    line-height: 1.7; margin-bottom: 36px; max-width: 500px;
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats {
    display: flex; gap: 32px; margin-top: 48px;
    padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1);
}
.hero__stat-num {
    font-size: 28px; font-weight: 700; color: var(--gold);
}
.hero__stat-label {
    font-size: 13px; color: rgba(255,255,255,.55); margin-top: 2px;
}

/* Hero right: placeholder para widget de TradingView o avatar */
.hero__visual {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    height: 440px; display: flex; align-items: center;
    justify-content: center; overflow: hidden;
}

/* ---- CARDS ----------------------------------------------- */
.card {
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100); padding: 32px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card__icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    background: rgba(201,168,76,.12); display: flex;
    align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 20px;
}
.card__title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card__text  { font-size: 15px; color: var(--gray-700); line-height: 1.7; }
.card--dark  { background: var(--navy-mid); border-color: rgba(255,255,255,.1); }
.card--dark .card__title { color: var(--white); }
.card--dark .card__text  { color: rgba(255,255,255,.65); }

/* ---- PASOS (How it works) -------------------------------- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
    display: grid; grid-template-columns: 56px 1fr; gap: 24px;
    padding: 24px 0; border-bottom: 1px solid var(--gray-100);
    align-items: flex-start;
}
.step:last-child { border-bottom: none; }
.step__num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gold); color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.step__title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step__text  { font-size: 15px; color: var(--gray-700); }

/* ---- Valores (badges) ------------------------------------ */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
    padding: 24px; border-radius: var(--radius-lg);
    border-left: 4px solid var(--gold);
    background: var(--white); box-shadow: var(--shadow);
}
.value-card__name { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.value-card__text { font-size: 14px; color: var(--gray-700); line-height: 1.6; }

/* ---- Infografía pasos (vehículos) ------------------------ */
.infographic { display: flex; flex-direction: column; gap: 0; max-width: 520px; }
.infostep {
    display: grid; grid-template-columns: 64px 1fr; gap: 20px;
    padding: 16px 0; position: relative;
}
.infostep:not(:last-child)::after {
    content: ''; position: absolute; left: 31px; top: 64px;
    width: 2px; height: calc(100% - 48px);
    background: var(--gray-300);
}
.infostep__icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--navy); border: 3px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: var(--gold);
    flex-shrink: 0; z-index: 1; position: relative;
}
.infostep:last-child .infostep__icon { background: var(--gold); color: var(--navy); }
.infostep__title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.infostep__value { font-size: 20px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.infostep__desc  { font-size: 14px; color: var(--gray-700); }

/* ---- Formularios ----------------------------------------- */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 14px; font-weight: 600;
    color: var(--navy); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--gray-300); border-radius: var(--radius);
    font-family: var(--font); font-size: 15px; color: var(--text-dark);
    background: var(--white); transition: border-color var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.form-group .error { font-size: 13px; color: var(--danger); margin-top: 4px; }

/* Wizard de apertura de cuenta */
.wizard-steps {
    display: flex; gap: 0; margin-bottom: 48px; overflow-x: auto;
}
.wizard-step {
    flex: 1; text-align: center; padding: 12px 8px;
    font-size: 13px; font-weight: 600; color: var(--gray-500);
    border-bottom: 3px solid var(--gray-300);
    transition: all var(--transition);
    white-space: nowrap;
}
.wizard-step.active { color: var(--navy); border-color: var(--gold); }
.wizard-step.done   { color: var(--success); border-color: var(--success); }

/* ---- Footer ---------------------------------------------- */
.footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 64px 0 0; }
.footer__grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
    padding-bottom: 48px;
}
.footer__brand p  { font-size: 13px; margin-top: 12px; }
.footer__disclaimer { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 8px !important; line-height: 1.6; }
.footer__links h4,
.footer__contact h4 { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer__links li + li { margin-top: 8px; }
.footer__links a { font-size: 14px; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer__links a:hover { color: var(--gold); }
.footer__contact p { font-size: 14px; margin-bottom: 8px; }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.1); display: flex; align-items: center;
    justify-content: center; font-size: 14px; font-weight: 700;
    color: rgba(255,255,255,.7); transition: all var(--transition);
}
.footer__social a:hover { background: var(--gold); color: var(--navy); }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 24px; text-align: center;
    font-size: 13px; color: rgba(255,255,255,.35);
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Login button always visible in navbar */
.navbar__actions .btn--outline {
    display: inline-flex;
    color: rgba(255,255,255,.85);
    border-color: rgba(255,255,255,.35);
}
.navbar__actions .btn--outline:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.7);
    color: var(--white);
}

@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .hero__visual { display: none; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .value-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }

    .navbar__menu { display: none; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--navy); padding: 24px; gap: 4px; overflow-y: auto; }
    .navbar__menu.open { display: flex; }
    .navbar__menu > li { width: 100%; }
    .navbar__menu a { font-size: 16px; padding: 14px; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.05); margin-top: 4px; }
    .navbar__hamburger { display: flex; }
    .navbar__actions .btn--primary { display: none; }
    .navbar__actions .lang-switcher { display: flex; }
}
