/* =========================================================
   ALTUM HABITAT — VaultEdge Inspired Landing
   Reemplazar assets/css/altum.css
========================================================= */

:root {
    --altum-navy: #071827;
    --altum-blue: #102A43;
    --altum-gold: #D7A928;
    --altum-gold-2: #F0C247;
    --altum-white: #ffffff;
    --altum-soft: #F4F6FA;
    --altum-text: #111827;
    --altum-muted: #667085;
    --altum-border: rgba(16, 42, 67, .12);
    --altum-shadow: 0 24px 80px rgba(7, 24, 39, .14);
    --altum-radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--altum-text);
    background: #ffffff;
    overflow-x: hidden;
}
a { text-decoration: none; transition: all .25s ease; }
img { max-width: 100%; }

/* Header */
.vault-header {
    background: rgba(7, 24, 39, .94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.vault-header .navbar { min-height: 74px; }
.navbar-brand { min-width: 190px; }
.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--altum-gold);
    color: var(--altum-navy);
    font-weight: 900;
}
.brand-logo {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.vault-header .nav-link {
    color: rgba(255,255,255,.78);
    font-size: .88rem;
    font-weight: 750;
    padding: 10px 12px !important;
}
.vault-header .nav-link:hover { color: var(--altum-gold); }
.navbar-toggler { color: #fff; border: none; font-size: 1.6rem; }
.navbar-toggler:focus { box-shadow: none; }

/* Buttons */
.btn {
    border-radius: 999px;
    font-weight: 850;
    padding: 12px 22px;
    font-size: .92rem;
}
.btn-vault {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--altum-gold);
    color: var(--altum-navy);
    border: 1px solid var(--altum-gold);
    box-shadow: 0 14px 34px rgba(215,169,40,.30);
}
.btn-vault:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--altum-navy);
    transform: translateY(-2px);
}
.btn-vault-outline {
    color: #ffffff;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(12px);
}
.btn-vault-outline:hover {
    background: #ffffff;
    color: var(--altum-navy);
}

/* Hero */
.vault-hero {
    position: relative;
    padding: 140px 0 72px;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #071827 0%, #092238 62%, #06111d 100%);
    color: #ffffff;
    overflow: hidden;
}
.vault-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(215,169,40,.18), transparent 30%),
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: auto, 68px 68px, 68px 68px;
    pointer-events: none;
}
.vault-hero .container { position: relative; z-index: 2; }
.vault-badge {
    width: fit-content;
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 8px 16px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.78);
    font-size: .78rem;
    font-weight: 800;
}
.vault-badge span:first-child { color: var(--altum-gold); }
.vault-hero h1 {
    max-width: 820px;
    margin: 0 0 24px;
    color: #ffffff;
    font-size: clamp(3rem, 6.4vw, 6.25rem);
    line-height: .94;
    letter-spacing: -.065em;
    font-weight: 900;
}
.vault-hero h1::first-line { color: #ffffff; }
.vault-lead {
    max-width: 720px;
    color: rgba(255,255,255,.90);
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    line-height: 1.45;
    font-weight: 650;
}
.vault-copy {
    max-width: 760px;
    color: rgba(255,255,255,.68);
    line-height: 1.75;
    font-size: 1.02rem;
}
.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 46px;
}
.hero-metrics strong {
    display: block;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
}
.hero-metrics span {
    display: block;
    color: rgba(255,255,255,.58);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 850;
}
.hero-visual-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    min-height: 520px;
    box-shadow: 0 34px 100px rgba(0,0,0,.35);
}
.hero-visual-card img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    display: block;
}
.floating-rate-card,
.floating-mini-card {
    position: absolute;
    border-radius: 18px;
    background: rgba(255,255,255,.95);
    color: var(--altum-navy);
    box-shadow: 0 18px 50px rgba(0,0,0,.20);
}
.floating-rate-card { top: 24px; right: 24px; padding: 18px 20px; }
.floating-rate-card span { display: block; color: var(--altum-gold); font-weight: 900; font-size: 1.15rem; }
.floating-rate-card strong { display: block; font-size: .8rem; }
.floating-mini-card {
    left: 24px;
    bottom: 24px;
    padding: 14px 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 800;
}
.floating-mini-card i { color: var(--altum-gold); }

/* Ticker */
.vault-ticker {
    background: var(--altum-gold);
    color: var(--altum-navy);
    overflow: hidden;
}
.ticker-track {
    display: flex;
    gap: 34px;
    justify-content: center;
    padding: 13px 18px;
    white-space: nowrap;
    font-size: .82rem;
    font-weight: 850;
}
.ticker-track i { margin-right: 6px; }

/* Sections */
.section-soft,
.section-white { padding: 96px 0; }
.section-soft {
    background: #F4F6FA;
}
.section-white {
    background: #ffffff;
}
.section-heading {
    max-width: 820px;
}
.section-heading span {
    display: inline-block;
    color: var(--altum-gold);
    font-weight: 900;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: 14px;
}
.section-heading h2 {
    color: var(--altum-navy);
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1;
    letter-spacing: -.05em;
    font-weight: 900;
    margin: 0 0 18px;
}
.section-heading p {
    color: var(--altum-muted);
    line-height: 1.75;
    font-size: 1.02rem;
}
.section-heading.left { max-width: 760px; }

/* Services */
.vault-service-card,
.benefit-card,
.insight-card {
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--altum-border);
    box-shadow: 0 16px 44px rgba(7,24,39,.07);
    transition: transform .28s ease, box-shadow .28s ease;
}
.vault-service-card:hover,
.benefit-card:hover,
.insight-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--altum-shadow);
}
.vault-service-card { padding: 30px; }
.service-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: var(--altum-navy);
    color: var(--altum-gold);
    font-size: 1.4rem;
    margin-bottom: 22px;
}
.vault-service-card h3,
.benefit-card h3,
.insight-card h3 {
    color: var(--altum-navy);
    font-size: 1.08rem;
    font-weight: 900;
    margin-bottom: 10px;
}
.vault-service-card p,
.benefit-card p,
.insight-card p {
    color: var(--altum-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}
.vault-service-card a {
    color: var(--altum-gold);
    font-size: .86rem;
    font-weight: 900;
}

/* About */
.about-image-card {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--altum-shadow);
}
.about-image-card img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}
.experience-chip {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 150px;
    height: 120px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    text-align: center;
    background: var(--altum-gold);
    color: var(--altum-navy);
}
.experience-chip strong { font-size: 2.6rem; line-height: 1; }
.experience-chip span { font-size: .75rem; text-transform: uppercase; font-weight: 900; }
.strategy-list { display: grid; gap: 18px; margin-top: 30px; }
.strategy-list > div { display: flex; gap: 14px; align-items: flex-start; }
.strategy-list i { color: var(--altum-gold); font-size: 1.25rem; margin-top: 2px; }
.strategy-list strong { color: var(--altum-navy); display: block; font-size: 1.02rem; }
.strategy-list p { color: var(--altum-muted); margin: 4px 0 0; line-height: 1.55; }

/* Stats */
.vault-stats {
    background: linear-gradient(135deg, #071827, #0B2842);
    color: #ffffff;
    padding: 54px 0;
}
.stat-box {
    padding: 24px 14px;
    border-right: 1px solid rgba(255,255,255,.12);
}
.stat-box:last-child { border-right: none; }
.stat-box i { color: var(--altum-gold); font-size: 1.8rem; margin-bottom: 12px; }
.stat-box strong { display: block; color: #ffffff; font-size: 1.6rem; font-weight: 900; }
.stat-box span { color: rgba(255,255,255,.58); text-transform: uppercase; font-size: .75rem; font-weight: 850; letter-spacing: .07em; }

/* Benefits */
.benefit-card { padding: 32px; height: 100%; }
.benefit-card i { color: var(--altum-gold); font-size: 1.9rem; margin-bottom: 18px; }

/* CTA */
.vault-cta {
    position: relative;
    padding: 76px 0;
    background: #071827;
    color: #ffffff;
    overflow: hidden;
}
.cta-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7,24,39,.93), rgba(7,24,39,.70)),
        url('../img/altum-city.jpg') center/cover no-repeat;
}
.cta-content {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
}
.cta-content span { color: var(--altum-gold); font-weight: 900; text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; }
.cta-content h2 { color: #ffffff; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; font-weight: 900; margin: 12px 0; }
.cta-content p { color: rgba(255,255,255,.72); line-height: 1.65; margin: 0; }

/* Insights */
.insights-section { padding-bottom: 120px; }
.insight-card { padding: 28px; min-height: 220px; }
.insight-card span { color: var(--altum-gold); text-transform: uppercase; font-size: .72rem; letter-spacing: .11em; font-weight: 900; }
.insight-card h3 { margin-top: 14px; line-height: 1.25; }

/* Contact / Newsletter */
.newsletter-strip {
    padding: 70px 0;
    background: #071827;
    color: #ffffff;
}
.newsletter-box {
    display: grid;
    grid-template-columns: .72fr 1fr;
    gap: 34px;
    align-items: start;
}
.newsletter-title {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.newsletter-title i {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(215,169,40,.14);
    color: var(--altum-gold);
    font-size: 1.5rem;
}
.newsletter-title h2 { color: #ffffff; font-size: clamp(1.7rem, 3vw, 3rem); line-height: 1; margin-bottom: 12px; font-weight: 900; }
.newsletter-title p { color: rgba(255,255,255,.64); margin: 0; }
.contact-form-vault {
    padding: 26px;
    border-radius: 24px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}
.form-control {
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.96);
    font-weight: 650;
    padding: 12px 15px;
}
.form-control:focus { border-color: var(--altum-gold); box-shadow: 0 0 0 .2rem rgba(215,169,40,.15); }
.vault-check { color: rgba(255,255,255,.78); display: flex; gap: 10px; align-items: flex-start; }
.vault-check a { color: var(--altum-gold); }
.form-response { font-weight: 800; }
.form-response.ok { color: #b7f7cc; }
.form-response.error { color: #ffb3b3; }

/* Footer */
.vault-footer {
    background: #06111d;
    color: rgba(255,255,255,.66);
    padding: 70px 0 26px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { max-height: 46px; filter: brightness(0) invert(1); }
.vault-footer h3 { color: #ffffff; font-size: .98rem; font-weight: 900; margin-bottom: 18px; }
.vault-footer a { display: block; color: rgba(255,255,255,.62); margin-bottom: 10px; font-weight: 700; }
.vault-footer a:hover { color: var(--altum-gold); }
.vault-footer p { line-height: 1.7; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 42px; padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .88rem; }
.footer-bottom div { display: flex; gap: 18px; }
.footer-bottom a { margin: 0; }

@media (max-width: 991px) {
    .vault-header { background: rgba(7,24,39,.98); }
    .navbar-collapse { padding: 18px 0 8px; }
    .vault-hero { padding: 120px 0 64px; min-height: auto; }
    .hero-visual-card { min-height: auto; }
    .hero-visual-card img { min-height: 360px; }
    .ticker-track { justify-content: flex-start; overflow-x: auto; }
    .section-soft, .section-white { padding: 74px 0; }
    .about-image-card img { height: 360px; }
    .stat-box { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
    .cta-content { display: grid; }
    .newsletter-box { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .navbar-brand { min-width: 0; }
    .brand-logo { max-height: 36px; }
    .vault-hero h1 { font-size: 2.6rem; }
    .vault-badge { display: grid; border-radius: 18px; }
    .hero-metrics { gap: 18px; }
    .btn { width: 100%; justify-content: center; }
    .hero-visual-card img { min-height: 280px; }
    .floating-rate-card, .floating-mini-card { position: relative; top: auto; right: auto; left: auto; bottom: auto; margin: 12px; }
    .section-heading h2, .cta-content h2 { font-size: 2.25rem; }
    .contact-form-vault { padding: 20px; }
    .footer-bottom { display: grid; }
    .footer-bottom div { display: grid; gap: 8px; }
}
/* Logo real desde base de datos */
.vault-header .brand-mark,
.vault-footer .brand-mark {
    display: none !important;
}

.altum-brand-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 220px !important;
    max-width: 320px !important;
    height: 60px !important;
    padding: 8px 18px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 34px rgba(0,0,0,.16) !important;
    text-decoration: none !important;
}

.altum-brand-logo .brand-logo {
    display: block !important;
    width: auto !important;
    max-width: 270px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    filter: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.vault-header .navbar-brand {
    min-width: 0 !important;
}

.footer-brand.altum-footer-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-bottom: 18px !important;
}

.footer-brand.altum-footer-logo img {
    display: block !important;
    width: auto !important;
    max-width: 260px !important;
    max-height: 64px !important;
    object-fit: contain !important;
    filter: none !important;
    background: #ffffff !important;
    padding: 8px 14px !important;
    border-radius: 14px !important;
}

@media (max-width: 575px) {
    .altum-brand-logo {
        min-width: 170px !important;
        max-width: 220px !important;
        height: 52px !important;
        padding: 7px 12px !important;
    }

    .altum-brand-logo .brand-logo {
        max-width: 190px !important;
        max-height: 42px !important;
    }
}