/* EPA Credit - Estilos consolidados (prototipo con frame iPhone 16) */
        :root {
  --epa-yellow: #ffde00;
  --epa-blue: #005cb9;
  --epa-cyan: #00a9e0;
  --register-cyan: #48bdb3;
            --light-gray: #f8f9fa;
            --medium-gray: #e9ecef;
            --dark-gray: #6c757d;
            --text-dark: #212529;
            --danger-red: #dc3545;

  /* iPhone 16 Pro Max metrics (approx for prototype) */
  --device-width: 444px;
  --device-height: 964px;
  --device-radius: 68px;
  --bezel-color: #000000;
  --frame-color: #0b0b0b;
        }

        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden !important;
        }
        body {
  background: #e9ecef;
            font-family: 'Poppins', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
        }

/* ============== iPhone 16 Frame (aproximado) ============== */
        .iphone-x {
            position: relative;
            margin: 0 auto;
  width: var(--device-width);
  height: var(--device-height);
  background: #000; /* black bezel under glass */
  border-radius: var(--device-radius);
  /* outer metal frame */
  box-shadow:
    0 0 0 6px var(--frame-color), /* metal edge */
    0 12px 40px rgba(0,0,0,0.35),
    0 2px 6px rgba(0,0,0,0.25);
            overflow: hidden;
  border: 6px solid var(--frame-color);
            display: flex;
            flex-direction: column;
        }
        .iphone-x-inner {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
  background: #fff; /* app canvas */
  border-radius: calc(var(--device-radius) - 6px);
  overflow: hidden;
}

/* Dynamic Island (simula iPhone 16) */
.iphone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 138px;
  height: 40px;
  background: #000;
  border-radius: 24px;
  z-index: 3001;
  box-shadow: 
    0 2px 8px rgba(0,0,0,0.4) inset,
    0 1px 3px rgba(0,0,0,0.6);
}

/* Lente de cámara con sombra realista */
.iphone-notch::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #1a1a1a;
  border-radius: 50%;
  box-shadow: 
    0 0 0 1px rgba(255,255,255,0.1),
    0 1px 2px rgba(0,0,0,0.8) inset,
    0 2px 4px rgba(0,0,0,0.4);
}

/* Sensor de proximidad */
.iphone-notch::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 20px;
  width: 6px;
  height: 6px;
  background: #2a2a2a;
  border-radius: 50%;
  box-shadow: 
    0 0 0 1px rgba(255,255,255,0.05),
    0 1px 2px rgba(0,0,0,0.6) inset;
}

/* ============== Status Bar ============== */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px 4px 20px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    position: relative;
    z-index: 3000;
    padding-top: 16px;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-time {
    font-weight: 700;
}

.status-arrow {
    font-size: 12px;
    color: #007AFF;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-signal {
    font-size: 12px;
    color: #000;
}

.status-wifi {
    font-size: 12px;
    color: #000;
}

.status-battery {
    font-weight: 700;
    margin-right: 2px;
}

.status-battery-icon {
    font-size: 12px;
    color: #000;
}

/* ============== Estructura general de la app ============== */
.screen { display: none; }
.screen.active { display: flex; }

        .header-bar {
  padding: 0.75rem 1.2rem;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #eee;
            min-height: 56px;
            position: relative;
            z-index: 10;
        }
.header-bar .left-icon { font-size: 1.7rem; color: #222; cursor: pointer; }
.header-bar .title { flex: 1; text-align: center; font-weight: 700; font-size: 1.1rem; color: #222; }
.header-bar .right-icon { position: relative; font-size: 1.7rem; color: #222; cursor: pointer; transform: translateX(-6px); }
        .cart-badge {
  position: absolute; top: -6px; right: -8px; background: var(--danger-red);
  color: #fff; font-size: 0.8rem; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: bold; border: 2px solid #fff;
}

/* Bottom navigation estilo iOS */
        .bottom-nav {
  position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: #fff;
  border-top: 1px solid #eee; display: flex; justify-content: space-around; align-items: center;
  z-index: 1002; border-radius: 0 0 calc(var(--device-radius) - 6px) calc(var(--device-radius) - 6px);
        }
        .bottom-nav .nav-item {
  flex: 1; text-align: center; color: #888; font-size: 0.8rem; display: flex; flex-direction: column;
  align-items: center; justify-content: center; cursor: pointer; transition: color 0.2s;
}
.bottom-nav .nav-item.active { color: var(--epa-blue); }
.bottom-nav .nav-item i { font-size: 1.5rem; margin-bottom: 2px; }
        .bottom-nav .nav-item-qr {
  background: var(--epa-yellow); border-radius: 50%; width: 56px; height: 56px; display: flex;
  align-items: center; justify-content: center; margin-top: -28px; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            border: 4px solid #fff;
        }
.bottom-nav .nav-item-qr i { color: var(--epa-blue); font-size: 2rem; margin-bottom: 0; }

/* Side menu + overlay */
        .menu-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.18);
  z-index: 1002; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.menu-overlay.active { opacity: 1; pointer-events: auto; }
        .side-menu {
  position: absolute; top: 0; left: 0; height: 100%; width: 78%; max-width: 290px; min-width: 220px; background: #fff;
  box-shadow: 2px 0 16px rgba(0,0,0,0.10); z-index: 1003; border-top-right-radius: 2rem; border-bottom-right-radius: 2rem;
  display: flex; flex-direction: column; transform: translateX(-100%); transition: transform 0.3s cubic-bezier(.4,1.2,.4,1);
}
.side-menu.active { transform: translateX(0); }
.side-menu-header { padding: 2rem 1.5rem 1rem 1.5rem; border-bottom: 1px solid #eee; text-align: center; }
.side-menu-header .profile-pic { width: 60px; height: 60px; border-radius: 50%; background: #eee center/cover no-repeat; margin-bottom: 0.5rem; }
.side-menu-item { padding: 1rem 1.5rem; font-size: 1.1rem; color: #222; font-weight: 500; cursor: pointer; display: flex; align-items: center; border-bottom: 1px solid #f5f5f5; }
.side-menu-item i { width: 30px; font-size: 1.3rem; margin-right: 1rem; color: var(--epa-blue); }
.side-menu-footer { margin-top: auto; padding: 1.5rem; font-size: 0.8rem; color: #888; text-align: center; }

/* Scrollbar oculto */
        ::-webkit-scrollbar { width: 0 !important; height: 0 !important; }
        * { scrollbar-width: none !important; -ms-overflow-style: none !important; }

/* ============== Estilos de flujo de registro (reutilizados) ============== */
.register-header { padding: 1rem 1.5rem; background: #fff; text-align: center; position: relative; border-bottom: 1px solid var(--medium-gray); }
.register-header .close-icon { position: absolute; left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--dark-gray); cursor: pointer; }
.register-content { padding: 1rem 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.register-content h4 { font-weight: 700; }
.register-content .form-label { font-size: 0.8rem; color: var(--dark-gray); margin-bottom: 0.2rem; position: relative; top: 10px; left: 15px; background: #fff; padding: 0 5px; z-index: 1; }
.register-content .form-control, .register-content .form-select { border-radius: 0.75rem; padding: 0.75rem 1rem; border: 1px solid var(--medium-gray); height: 55px; }
.register-content .form-control:focus, .register-content .form-select:focus { border-color: var(--register-cyan); box-shadow: 0 0 0 0.25rem rgba(72,189,179,0.25); }
.btn-register { background: var(--register-cyan); color: #fff; font-weight: 600; border-radius: 12px; padding: 12px 20px; border: none; height: 55px; }
.btn-register:hover { background: #3ca89f; color: #fff; }
.btn-outline-register { border: 2px solid var(--register-cyan); color: var(--register-cyan); font-weight: 600; border-radius: 12px; padding: 12px 20px; height: 55px; }
.text-highlight { color: #f5a623; font-weight: 600; }
.code-inputs { display: flex; justify-content: space-between; }
.code-inputs input { width: 45px; height: 55px; text-align: center; font-size: 1.5rem; font-weight: 600; }
.confirmation-modal { position: absolute; bottom: 0; left: 0; right: 0; background: #fff; border-radius: 2rem 2rem 0 0; padding: 2rem; box-shadow: 0 -10px 30px rgba(0,0,0,0.1); text-align: center; transform: translateY(100%); transition: transform 0.3s ease-in-out; z-index: 1004; }
.confirmation-modal.active { transform: translateY(0); }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); z-index: 1003; display: none; }
.modal-backdrop.active { display: block; }
.data-completion-item { background: #fff; border: 1px solid var(--medium-gray); border-radius: 1rem; padding: 1rem; display: flex; align-items: center; font-weight: 600; margin-bottom: 1rem; cursor: pointer; }
.data-completion-item i { color: #f5a623; font-size: 1.5rem; margin-right: 1rem; }
.login-screen-footer { padding: 1.5rem; }
.login-screen-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.login-screen-content .logo { width: 60%; max-width: 220px; height: auto; margin-bottom: 3rem; }

/* Login hero con logo ocupando todo el fondo superior */
.login-hero {
  background:
    url('logo_epa.png') center/82% auto no-repeat,
    linear-gradient(180deg, var(--epa-yellow) 0%, var(--epa-yellow) 60%, #ffffff 100%);
}

/* ============== Tarjeta de crédito (estilo dashboard) ============== */
.account-card { color: #fff; border: none; border-radius: 1.2rem; }
.account-card {
  background: linear-gradient(135deg, #ff8a00 0%, #ff6a00 100%);
  box-shadow: 0 8px 24px rgba(255, 105, 0, 0.25);
}
/* Variante EPA: amarillo, azul y blanco con degradados */
.account-card--epa {
  /* Más azul para mayor contraste; el amarillo queda como acento suave */
  background:
    /* destello blanco pequeño */
    radial-gradient(110px 70px at 18% 12%, rgba(255,255,255,0.35), rgba(255,255,255,0) 65%),
    /* barrido amarillo sutil en una esquina */
    linear-gradient(22deg, rgba(255,222,0,0.18) 0%, rgba(255,222,0,0.10) 12%, rgba(255,222,0,0.0) 28%),
    /* base azul dominante */
    linear-gradient(135deg, #0b3d91 0%, #005cb9 55%, #1a7cff 100%);
  box-shadow: 0 10px 28px rgba(0, 92, 185, 0.35);
}

/* Asegurar legibilidad en panel interno sobre fondo azul */
.account-card--epa .virtual-panel { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); }
.account-card--epa .label { color: rgba(255,255,255,0.95); }
.account-card--epa .value { color: #ffffff; }
.account-card .account-body {
  padding: 1.1rem 1.2rem 1rem 1.2rem;
}
.account-card .top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.account-card .title-small { font-size: 0.95rem; font-weight: 600; opacity: .9; }
.account-card .virtual-panel {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
            border-radius: 1rem;
  padding: .8rem 1rem;
}
.account-card .virtual-top { display:flex; align-items:center; justify-content:space-between; color: rgba(255,255,255,0.9); font-size: .9rem; }
.account-card .value-pair { display:flex; gap: 1.2rem; margin-top: .4rem; }
.account-card .value-block { min-width: 120px; }
.account-card .label { font-size: .78rem; opacity: .85; }
.account-card .value { font-size: 1.35rem; font-weight: 700; color: #fff; }
.account-card .progress-line { height: 7px; background: rgba(255,255,255,0.25); border-radius: 6px; margin-top: .6rem; overflow: hidden; }
.account-card .progress-line span { display:block; height:100%; background: var(--epa-yellow); width: 60%; }
.account-card .bottom-info { display:flex; align-items:center; justify-content:space-between; gap: .8rem; margin-top: .6rem; font-size: .9rem; opacity: .95; }
.account-card .bottom-info i { margin-right: .35rem; }

/* ============== Pantallas de Microseguro ============== */
/* Oferta */
#microseguroScreen { display: none; position: absolute; inset: 0; background: var(--light-gray); z-index: 2000; flex-direction: column; }
#microseguroScreen .header-bar { border-bottom: none; background: var(--light-gray); }
#microseguroScreen .container-fluid { max-width: 370px; padding-top: 1.2rem; }
#microseguroScreen .price-offer { background: var(--epa-yellow); border-radius: 1.2rem; padding: 2.2rem 0 1.2rem; max-width: 260px; margin: 0 auto; }
#microseguroScreen .price-symbol { font-size: 2.8rem; font-weight: 700; color: var(--epa-blue); }
#microseguroScreen .price-value { font-size: 2.2rem; font-weight: 700; color: var(--epa-blue); }
#microseguroScreen .price-period { font-size: 1.1rem; color: var(--epa-blue); }
#microseguroScreen .section-title { font-weight: 700; font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
#microseguroScreen .section-description { color: #444; font-size: 1.05rem; margin-bottom: 1.5rem; }
#microseguroScreen .new-credit { background: #fff; border-radius: 1rem; padding: 1.1rem 1.2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: inline-block; }
#microseguroScreen .current-credit { font-size: 1.1rem; color: #888; }
#microseguroScreen .increased-credit { font-size: 2rem; font-weight: 700; color: #1ca97c; }
#microseguroScreen .credit-increase { font-size: 1rem; color: #1ca97c; }
#microseguroScreen .btn-activate { font-size: 1.15rem; border-radius: 0.9rem; width: 100%; margin-top: 1rem; }

/* Beneficiario */
#beneficiarioScreen { display: none; position: absolute; inset: 0; background: var(--light-gray); z-index: 2001; flex-direction: column; }
#beneficiarioScreen .header-bar { border-bottom: none; background: var(--light-gray); }
#beneficiarioScreen .container-fluid { max-width: 370px; padding-top: 2.2rem; }
#beneficiarioScreen .price-offer { background: var(--epa-yellow); border-radius: 1.2rem; padding: 2.2rem 0 1.2rem; max-width: 260px; margin: 0 auto; }
#beneficiarioScreen .price-symbol { font-size: 2.8rem; font-weight: 700; color: var(--epa-blue); }
#beneficiarioScreen .price-value { font-size: 2.2rem; font-weight: 700; color: var(--epa-blue); }
#beneficiarioScreen .price-period { font-size: 1.1rem; color: var(--epa-blue); }
#beneficiarioScreen .section-title { font-weight: 700; font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
#beneficiarioScreen .section-description { color: #444; font-size: 1.05rem; margin-bottom: 1.5rem; }
#beneficiarioScreen .btn-confirm { font-size: 1.15rem; border-radius: 0.9rem; width: 100%; margin-top: 1rem; }

/* Póliza */
#polizaScreen { display: none; position: absolute; inset: 0; background: var(--light-gray); z-index: 2002; flex-direction: column; }
#polizaScreen .header-bar { border-bottom: none; background: var(--light-gray); }
#polizaScreen .container-fluid { max-width: 370px; padding-top: 1.2rem; }
#polizaScreen .text-center { margin-bottom: 1rem; }
#polizaScreen .text-center img { height: 54px; margin-bottom: 1rem; }
#polizaScreen .text-center .title { font-size: 1.3rem; font-weight: 700; color: #1ca97c; }
#polizaScreen .text-center .description { font-size: 1.05rem; color: #444; }
#polizaScreen .card { border-radius: 1.1rem; }
#polizaScreen .card .card-body { font-size: 0.98rem; }
#polizaScreen .btn-back { font-size: 1.1rem; border-radius: 0.9rem; width: 100%; }

/* ============== KYC Verification Styles ============== */
.kyc-upload-card {
  background: #ffffff;
  border: 2px dashed #e6edf6;
  border-radius: 1rem;
  padding: 1.4rem 1rem;
            text-align: center;
  color: #2b2b2b;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
            cursor: pointer;
        }
.kyc-upload-card:hover { background: #f8fbff; }
.kyc-upload-icon { color: var(--epa-blue); font-size: 2rem; margin-bottom: .4rem; }
.kyc-upload-title { font-weight: 700; }
.kyc-upload-sub { color: #7b8b9e; font-size: .9rem; }

/* ============== Estilos para pantalla de depósitos ============== */
.deposit-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.deposit-option:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}


