:root {
    --bg-body: #FFF7EE;
    --bg-card: #FFFFFF;
    --bg-card-alt: #FFF0DB;

    --accent: #FF7A00;
    --accent-soft: #FFE0BF;
    --accent-strong: #E45F00;

    --danger: #C62828;
    --danger-soft: #FFEBEE;

    --ok: #2E7D32;
    --ok-soft: #E8F5E9;

    --text-main: #231F20;
    --text-muted: #6B5F57;

    --border-subtle: #E4D6C8;

    --shadow-soft: 0 12px 32px rgba(0,0,0,0.10);
    --radius-lg: 20px;
}

/* Global reset & base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
    background: radial-gradient(circle at top left, #FFE8CC 0, #FFF7EE 40%, #FFE2C4 100%);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

/* Background decorative layer (optional) */
.background-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.8), transparent 60%),
        radial-gradient(circle at 90% 80%, rgba(255,210,160,0.8), transparent 55%);
    opacity: 0.7;
    z-index: -1;
}

/* Header / nav */
.main-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px clamp(18px, 3vw, 32px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 0, #FFB15A, #FF7A00);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 600;
    font-size: 1.02rem;
}

.brand-tagline {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
    background: var(--accent-soft);
    color: var(--accent-strong);
    border-color: var(--accent-soft);
}

.nav-link-cta {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}

.nav-link-cta:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #FFFFFF;
}

.nav-user {
    color: var(--text-muted);
}

/* Layout */
.page-content {
    padding: 24px clamp(18px, 3vw, 32px) 32px;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

/* Hero section */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin: 0 0 10px;
}

.hero-text p {
    margin: 0 0 18px;
    color: var(--text-muted);
    max-width: 32rem;
}

.hero-highlights {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: 0.95rem;
}

.hero-highlights li::before {
    content: "•";
    margin-right: 6px;
    color: var(--accent-strong);
}

.hero-visual {
    position: relative;
    min-height: 240px;
}

.hero-image-placeholder {
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-image-placeholder img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px dashed var(--border-subtle);
}

.hero-card {
    position: absolute;
    right: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-card-label {
    color: var(--text-muted);
}

.hero-card-value {
    font-weight: 600;
    color: var(--text-main);
}

.hero-card-stats {
    top: -10px;
}

.hero-card-status {
    bottom: 8px;
}

.hero-card-pill {
    align-self: flex-start;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.72rem;
}

.pill-ok {
    background: var(--ok-soft);
    color: var(--ok);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.btn-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* Flash messages */
.flash-container {
    margin: 0 0 18px;
    display: grid;
    gap: 8px;
}

.flash-message {
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
}

.flash-success {
    background: var(--ok-soft);
    border-color: #A5D6A7;
    color: var(--ok);
}

.flash-error {
    background: var(--danger-soft);
    border-color: #EF9A9A;
    color: var(--danger);
}

.flash-info {
    background: #E3F2FD;
    border-color: #90CAF9;
    color: #1565C0;
}

/* Auth & forms */
.centered-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 16px;
}

.auth-card,
.account-card,
.error-card {
    width: 100%;
    max-width: 460px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 22px 20px 20px;
}

.auth-header h2,
.account-header h2 {
    margin: 0 0 6px;
    font-size: 1.3rem;
}

.auth-header p,
.account-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-form {
    margin-top: 16px;
    display: grid;
    gap: 14px;
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-field input {
    padding: 8px 11px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: #FFFBF7;
    color: var(--text-main);
    outline: none;
    font-size: 0.95rem;
}

.form-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
    background: #FFFFFF;
}

.auth-note {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-card-alt);
    border: 1px dashed var(--border-subtle);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Account page */
.account-section {
    padding-top: 10px;
}

.account-main {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 16px;
}

.account-balance {
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FFFFFF, #FFE8CC);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.account-amount {
    font-size: 1.6rem;
    font-weight: 600;
}

.account-number {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.account-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.account-avatar-placeholder {
    border-radius: 14px;
    border: 1px dashed var(--border-subtle);
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #FFFBF7;
}

.account-avatar-placeholder img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
}

.account-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    display: grid;
    gap: 4px;
}

.account-list .label {
    color: var(--text-muted);
}

/* Flag card */
.flag-card {
    margin-top: 18px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px dashed var(--border-subtle);
    background: #FFFBF7;
    font-size: 0.9rem;
}

.flag-code {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 8px;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.85rem;
}

/* Error card */
.error-card h2 {
    margin-top: 0;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 10px clamp(18px, 3vw, 32px) 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.96);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.footer-sub {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-visual {
        order: -1;
    }

    .account-main {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .page-content {
        padding-inline: 16px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Actualización de legibilidad y accesibilidad 2026 */
:focus-visible{outline:3px solid #59b5ff;outline-offset:3px}button,input{font-family:inherit} .auth-card{box-shadow:0 20px 70px rgba(16,33,64,.16)}

/* IVCTF 2026: art direction — warm editorial banking, no placeholder images. */
.bank-eyebrow{display:block;font-size:11px;letter-spacing:.18em;font-weight:900;color:#d76726;margin-bottom:16px}.hero-text h1{letter-spacing:-.055em;line-height:1.08}.hero-text h1 span{color:#e97729}.bank-hero-art{position:relative;min-height:410px;flex:1;background:radial-gradient(circle at 68% 20%,#ffbf6d,#b84e21 57%,#74300d);border-radius:23px;overflow:hidden;display:grid;place-items:center}.money-arc{width:590px;height:590px;position:absolute;border:80px solid #ffcf8280;border-radius:50%;transform:rotate(-20deg);right:-160px;top:-160px}.fake-card{position:relative;width:320px;height:205px;border-radius:16px;padding:23px 24px;background:linear-gradient(126deg,#19243b,#3c5477);box-shadow:0 26px 45px #46230c88;transform:rotate(-12deg);color:#fff;display:flex;flex-direction:column;justify-content:space-between}.fake-card>div:first-child{font-weight:900;letter-spacing:.19em}.fake-card>div:first-child span{float:right;color:#ffd39e}.fake-chip{font-size:31px;color:#ebc799}.fake-number{letter-spacing:.18em}.fake-bottom{font-size:10px;display:flex;justify-content:space-between;opacity:.8}.bank-hero-caption{position:absolute;bottom:20px;left:22px;color:#ffe0c9;font-size:9px;letter-spacing:.17em}@media(max-width:760px){.bank-hero-art{min-height:300px}.fake-card{transform:rotate(-8deg) scale(.85)}}
