:root {
    --primary: #00f2ea;
    --primary-dark: #00d1ca;
    --bg-dark: #0a0f12;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #00f2ea 0%, #007adf 100%);
    --danger: #ff4d4d;
    --success: #00ff88;
}

* {
    box-sizing: border-box;
    transition: all 0.25s ease;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at top right, #1a2a2a, #0a0f12);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.app-shell {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    animation: fadeIn 0.8s ease-out;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.main-header {
    margin-bottom: 32px;
    text-align: left;
}

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

.brand-icon {
    width: 45px;
    height: 45px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(0, 242, 234, 0.3);
}

.brand-name {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary);
}

.card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Inputs */
.input-field { margin-bottom: 16px; }

label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    margin-left: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.prefix {
    position: absolute;
    left: 16px;
    color: var(--primary);
    font-weight: 600;
}

input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 16px;
    padding-left: 32px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.1);
}

.dual-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dual-inputs input { padding-left: 16px; }

/* Dashboard & Stats */
.mini-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.stat-box {
    background: rgba(0, 242, 234, 0.05);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 242, 234, 0.1);
}

.stat-label { font-size: 0.65rem; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.stat-value { display: block; font-size: 1.1rem; font-weight: 700; margin-top: 4px; }

/* Status */
.status-badge {
    margin-top: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    text-align: center;
    font-size: 0.85rem;
}

.status-value {
    color: var(--primary);
    font-weight: 800;
    margin-left: 5px;
}

/* Result Card */
.results-card {
    background: var(--accent-gradient);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    color: #000;
    box-shadow: 0 15px 30px rgba(0, 242, 234, 0.2);
    margin-bottom: 30px;
}

.result-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; opacity: 0.8; }
.result-amount { display: block; font-size: 2.5rem; font-weight: 800; margin: 10px 0; }

.breakdown {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.breakdown-item span { display: block; font-size: 0.75rem; font-weight: 600; }
.breakdown-item span:last-child { font-size: 0.95rem; font-weight: 800; }

/* Buttons */
.actions-bar {
    display: flex;
    gap: 15px;
}

.btn-primary {
    flex: 1;
    background: var(--text-main);
    color: var(--bg-dark);
    border: none;
    padding: 18px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    width: 60px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 18px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsividad */
@media (max-width: 400px) {
    .app-shell { padding: 16px; }
    .result-amount { font-size: 2rem; }
}

.error-msg {
    color: var(--danger);
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 5px;
    margin-left: 4px;
    display: block;
    min-height: 1em; /* Evita saltos bruscos de diseño */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-msg.active {
    opacity: 1;
}

/* Efecto visual en el input cuando hay error */
input.input-error {
    border-color: var(--danger) !important;
    background: rgba(255, 77, 77, 0.05) !important;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.1) !important;
}

/* ... (mantiene las variables :root y estilos generales) ... */

.brand-icon {
    /* Cambia estos valores para ajustar el tamaño */
    width: 90px;  /* Antes estaba en 45px */
    height: 90px; /* Antes estaba en 45px */
    
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px; /* Puedes aumentar esto si quieres bordes más redondeados */
}

.bank-logo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Usar 'contain' ayuda a que el logo no se corte si es muy grande */
}

.brand {
    display: flex;
    align-items: center; /* Esto mantiene el logo y el texto centrados verticalmente */
    gap: 30px;           /* Aumenta el espacio entre el logo y el texto */
}