:root {
    --blue-dark: #071931;
    --blue-gradient: linear-gradient(180deg, #051326 0%, #0c2545 100%);
    --yellow-banco: #f2a900;
    --yellow-hover: #d49400;
    --text-light: #ffffff;
    --text-muted: #a0b2c6;
    --text-dark: #222222;
    --bg-light: #f4f6f9;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.hidden { display: none !important; }

/* Icono corporativo simulado */
.brand-logo-icon {
    width: 32px;
    height: 20px;
    background: linear-gradient(90deg, var(--yellow-banco) 30%, #000 30%, #000 60%, var(--yellow-banco) 60%);
    border-radius: 2px;
}
.brand-logo-icon.mini { width: 24px; height: 14px; }

/* ================= LOGIN STYLES (FASE 1) ================= */
.main-wrapper {
    background: var(--blue-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    color: var(--text-light);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; letter-spacing: 0.5px; }
.brand { font-weight: 700; font-size: 15px; }
.sub-brand { font-size: 10px; color: var(--text-muted); }
.language-selector { font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--text-muted); }

.content-body {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    padding: 20px 80px;
    flex-grow: 1;
    align-items: center;
}
.hero-section { color: var(--text-light); padding-right: 50px; background-image: url('https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.5.5/fonts/Simple-Line-Icons.woff'); background-repeat: no-repeat;}
.hero-section h1 { font-size: 42px; font-weight: 300; margin-bottom: 20px; line-height: 1.2; }
.hero-section .bold-text { font-weight: 700; }
.hero-section p { color: var(--text-muted); font-size: 16px; max-width: 420px; line-height: 1.6; }

.login-card-container { display: flex; justify-content: flex-end; }
.login-card { background: #ffffff; border-radius: 16px; padding: 45px; width: 100%; max-width: 440px; box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
.login-card h2 { font-size: 26px; color: var(--blue-dark); margin-bottom: 6px; font-weight: 600; }
.login-card .subtitle { color: #666; font-size: 14px; margin-bottom: 30px; }

.input-group { margin-bottom: 22px; }
.input-group label { display: block; font-size: 13px; font-weight: 600; color: #4a5568; margin-bottom: 8px; }
.input-wrapper { position: relative; }
.input-wrapper input { width: 100%; padding: 14px 40px 14px 16px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 15px; outline: none; }
.input-wrapper input:focus { border-color: var(--blue-dark); }
.input-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; cursor: pointer; }

.form-actions { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 25px; }
.checkbox-container { display: flex; align-items: center; cursor: pointer; color: #475569; }
.checkbox-container input { margin-right: 8px; }
.forgot-link, .card-footer a { color: #0284c7; text-decoration: none; font-weight: 500; }

.btn-primary { width: 100%; background: var(--yellow-banco); color: var(--blue-dark); border: none; padding: 15px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-primary:hover { background: var(--yellow-hover); }

.divider { text-align: center; margin: 20px 0; position: relative; }
.divider::before { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: #e2e8f0; z-index: 1; }
.divider span { background: #fff; padding: 0 12px; position: relative; z-index: 2; color: #94a3b8; font-size: 13px; }

.btn-secondary { width: 100%; background: transparent; color: var(--blue-dark); border: 1px solid #cbd5e1; padding: 14px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-secondary:hover { background: #f8fafc; }
.card-footer { text-align: center; margin-top: 25px; font-size: 13px; color: #64748b; }

.features-section { background: #ffffff; display: grid; grid-template-columns: repeat(3, 1fr); padding: 40px 80px; gap: 40px; border-top: 1px solid #e2e8f0; }
.feature-item { display: flex; gap: 16px; }
.feature-icon { font-size: 22px; color: var(--blue-dark); background: #f1f5f9; padding: 12px; border-radius: 50%; display: flex; width: 46px; height: 46px; align-items: center; justify-content: center; }
.feature-text h3 { font-size: 15px; color: var(--blue-dark); margin-bottom: 6px; }
.feature-text p { font-size: 13px; color: #64748b; line-height: 1.5; }

.main-footer { background: var(--blue-dark); padding: 25px 80px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.main-footer a { color: var(--text-muted); text-decoration: none; margin-right: 20px; }
.main-footer a:hover { color: #fff; }


/* ================= PANEL PRINCIPAL STYLES (FASE 2) ================= */
.dashboard-wrapper {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: var(--blue-dark);
    color: white;
}
.dash-nav { display: flex; gap: 28px; }
.dash-nav a { color: #cbd5e1; text-decoration: none; font-size: 14px; font-weight: 400; padding-bottom: 4px; }
.dash-nav a.active, .dash-nav a:hover { color: var(--yellow-banco); border-bottom: 2px solid var(--yellow-banco); }

.btn-nav-session {
    background: transparent;
    border: 1px solid #ffffff;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}
.btn-nav-session:hover { background: rgba(255,255,255,0.1); }

/* Hero Fase 2 */
.dash-hero {
    background: linear-gradient(90deg, #06152b 40%, #0f2d54 100%);
    padding: 80px 80px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.dash-hero::after {
    content: ""; position: absolute; right: 5%; top: 0; width: 40%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=800&q=80');
    background-size: cover; background-position: center; opacity: 0.25; skew-x: -10deg;
}
.dash-hero-content { max-width: 550px; z-index: 2; }
.dash-hero-content h1 { font-size: 46px; font-weight: 300; line-height: 1.1; margin-bottom: 15px; }
.user-highlight { font-weight: 700; color: #ffffff; }
.dash-hero-sub { color: #93c5fd; font-size: 16px; margin-bottom: 30px; max-width: 450px; }
.btn-gold-action { background: var(--yellow-banco); color: var(--blue-dark); border: none; padding: 12px 28px; border-radius: 4px; font-weight: 600; cursor: pointer; font-size: 14px; }

/* Pilares Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 50px 80px;
    gap: 25px;
    background: #f8fafc;
}
.pillar-card {
    background: white; border-radius: 12px; padding: 30px 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); text-align: center; border: 1px solid #f1f5f9;
}
.pillar-icon { font-size: 26px; color: #0284c7; margin-bottom: 15px; }
.pillar-card h4 { font-size: 16px; color: var(--blue-dark); margin-bottom: 10px; font-weight: 600; }
.pillar-card p { font-size: 13px; color: #64748b; line-height: 1.4; }

/* Pillar Destacado (Amarillo/Oro) */
.highlighted-pillar { border: 1px solid rgba(242, 169, 0, 0.4); background: #fffdf6; }
.highlighted-pillar .pillar-icon { color: var(--yellow-banco); }
.gold-label { color: #b45309 !important; font-weight: 600; margin-bottom: 4px; }
.gold-value { font-size: 18px !important; font-weight: 700; color: #1e293b !important; }

/* Bloques de Información (Banners horizontales) */
.banner-info-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 80px 30px 80px;
    border-radius: 10px;
    padding: 30px 40px;
}
.gold-accent-block { background: var(--blue-dark); color: white; border-left: 6px solid var(--yellow-banco); }
.white-bg-block { background: #f1f5f9; color: var(--text-dark); border: 1px solid #e2e8f0; margin-bottom: 50px;}

.banner-left { display: flex; align-items: center; gap: 25px; }
.large-badge-icon { font-size: 36px; color: var(--yellow-banco); }
.large-badge-icon.grey-icon { color: #475569; }
.banner-text-group .label { font-size: 14px; color: #93c5fd; display: block; margin-bottom: 4px; }
.banner-text-group .dark-label { color: #475569; font-weight: 500; }
.main-amount { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; }
.main-amount.blue-amount { color: #0f172a; }

.banner-right { max-width: 400px; font-size: 14px; line-height: 1.5; color: #e2e8f0; }
.white-bg-block .banner-right { color: #334155; max-width: 550px; }
.bank-flex { display: flex; align-items: center; gap: 20px; }
.bank-notice-text { flex: 1; }

.bank-logo-placeholder {
    background: white; border: 1px solid #cbd5e1; padding: 12px 15px; border-radius: 6px;
    display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 11px; letter-spacing: 0.5px; color: #1e293b;
}
.red-flag-icon {
    width: 16px; height: 12px; background: #d32f2f; clip-path: polygon(0 0, 100% 0, 75% 50%, 100% 100%, 0 100%);
}

/* Sección USA */
.usa-connection-section { text-align: center; padding: 20px 80px 50px 80px; }
.usa-connection-section h3 { font-size: 20px; color: var(--blue-dark); margin-bottom: 30px; font-weight: 600; }
.usa-features { display: flex; justify-content: center; gap: 60px; }
.usa-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #475569; font-weight: 500; }
.font-icon-usa { color: #0284c7; font-size: 18px; }

/* Barra de Contacto */
.cta-contact-bar {
    background: var(--blue-dark); color: white; margin: 0 80px 60px 80px; padding: 30px 40px;
    border-radius: 10px; display: flex; justify-content: space-between; align-items: center;
}
.cta-left h3 { font-size: 20px; margin-bottom: 5px; font-weight: 600; }
.cta-left p { color: #94a3b8; font-size: 14px; }
.btn-gold-phone { background: var(--yellow-banco); color: var(--blue-dark); border: none; padding: 14px 28px; border-radius: 6px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 14px;}

/* Footer Fase 2 */
.dash-footer {
    background: #0f172a; color: #94a3b8; padding: 30px 80px;
    display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-top: auto;
}
.mini-brand { font-size: 12px; font-weight: 600; color: #f8fafc; }
.footer-center-links { display: flex; gap: 24px; }
.footer-center-links a { color: #94a3b8; text-decoration: none; }
.footer-center-links a:hover { color: white; }
.footer-social-icons { display: flex; gap: 20px; font-size: 16px; cursor: pointer; }
.footer-social-icons i:hover { color: white; }

/* Adaptabilidad Móvil */
@media (max-width: 1024px) {
    .content-body, .pillars-grid, .dash-hero { grid-template-columns: 1fr; padding: 40px 20px; }
    .banner-info-block, .cta-contact-bar, .usa-connection-section { margin: 0 20px 20px 20px; padding: 20px; flex-direction: column; gap: 20px; text-align: center; }
    .banner-left, .bank-flex { flex-direction: column; text-align: center; }
    .usa-features { flex-direction: column; gap: 15px; }
}