/* ============================================
   INKACREDIT® - FINTECH CSS
   Poppins | Verde Esmeralda | Sólido | Cuadrado
   ============================================ */

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    --bg-color: #f0f4f8;
    --bg-gradient-start: #e8ecf1;
    --bg-gradient-end: #f5f7fa;
    --surface-color: #ffffff;
    --surface-border: #e2e8f0;
    --primary-color: #059669;
    --primary-light: #10b981;
    --primary-gradient: linear-gradient(135deg, #059669 0%, #047857 50%, #10b981 100%);
    --primary-glow: rgba(5, 150, 105, 0.3);
    --text-main: #0f172a;
    --text-heading: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --success-color: #059669;
    --success-light: #d1fae5;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --error-color: #dc2626;
    --error-light: #fee2e2;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 40px rgba(5, 150, 105, 0.15);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', sans-serif;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0f172a;
        --bg-gradient-start: #0f172a;
        --bg-gradient-end: #1e293b;
        --surface-color: #1e293b;
        --surface-border: #334155;
        --text-main: #f1f5f9;
        --text-heading: #e2e8f0;
        --text-muted: #94a3b8;
        --text-light: #64748b;
        --border-color: #334155;
        --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
        --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.2);
        --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -2px rgba(0,0,0,0.3);
        --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.6), 0 10px 10px -5px rgba(0,0,0,0.4);
    }
}

/* ============================================
   RESET & BASE
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: var(--font-body);
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ============================================
   ANIMATIONS KEYFRAMES
   ============================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); } 50% { box-shadow: 0 0 0 12px rgba(5, 150, 105, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes progress-shine { 0% { left: -100%; } 100% { left: 200%; } }
@keyframes check-bounce { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes ripple { 0% { transform: scale(0); opacity: 0.5; } 100% { transform: scale(4); opacity: 0; } }

/* ============================================
   HEADER - FIXED SÓLIDO
   ============================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 5%;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

header.scrolled {
    padding: 0.6rem 5%;
    box-shadow: var(--shadow-md);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    transition: transform var(--transition-fast);
}

.logo:hover { transform: scale(1.02); }

.logo .logo-mito {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo .trademark {
    font-size: 0.65rem;
    vertical-align: super;
    color: var(--text-light);
    font-weight: 400;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn-nav {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4); }

.btn-nav-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-nav-outline:hover { background: var(--surface-color); border-color: #059669; color: #059669; transform: translateY(-1px); }

.btn-apply {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1.25rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    letter-spacing: 0.01em;
}

.btn-apply:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4); }
.btn-apply:active { transform: translateY(0); }
.btn-apply:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-grow: 1;
    animation: fadeIn 0.6s ease;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 380px;
    position: relative;
    animation: fadeInDown 0.8s ease 0.1s both;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(40px);
    z-index: 0;
    animation: pulse-glow 3s ease-in-out infinite;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    object-position: center bottom;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

.hero-text-content {
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-text-content h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero-text-content h1 .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text-content p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SIMULATOR CARD - SÓLIDO
   ============================================ */
.simulator-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.8s ease 0.4s both;
    transition: all var(--transition-base);
}

.simulator-card:hover { box-shadow: var(--shadow-xl), var(--shadow-glow); }

.simulator-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.simulator-card h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-gradient);
    border-radius: 50%;
}

.input-group { margin-bottom: 1.5rem; }

.slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.slider-label-row span:first-child { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

#amountLabel, #amountLabel2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--text-heading);
    font-variant-numeric: tabular-nums;
    transition: all var(--transition-fast);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 37.5%, var(--border-color) 37.5%, var(--border-color) 100%);
    outline: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4); }

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
    cursor: pointer;
}

.breakdown {
    background: rgba(5, 150, 105, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(5, 150, 105, 0.08);
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px dashed var(--border-color);
}

.breakdown-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.breakdown-row span:first-child { color: var(--text-muted); }
.breakdown-row span:last-child { font-weight: 600; color: var(--text-heading); font-variant-numeric: tabular-nums; }
.breakdown-row strong + span { font-weight: 700; font-size: 1.05rem; }

.breakdown-row.highlight {
    background: var(--success-light);
    margin: 0.5rem -1.25rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    border-bottom: none;
}

.breakdown-row.highlight span { color: var(--success-color); font-weight: 700; }

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--success-color);
    text-align: center;
    margin-top: 1.25rem;
    font-weight: 600;
    padding: 0.5rem;
    background: var(--success-light);
    border-radius: var(--radius-md);
}

/* ============================================
   FORMULARIOS
   ============================================ */
.form-field { margin-bottom: 1.1rem; animation: fadeInUp 0.5s ease both; }
.form-field:nth-child(1) { animation-delay: 0.05s; }
.form-field:nth-child(2) { animation-delay: 0.1s; }
.form-field:nth-child(3) { animation-delay: 0.15s; }
.form-field:nth-child(4) { animation-delay: 0.2s; }
.form-field:nth-child(5) { animation-delay: 0.25s; }
.form-field:nth-child(6) { animation-delay: 0.3s; }

.form-field label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: var(--surface-color);
    color: var(--text-main);
    transition: all var(--transition-base);
    font-family: var(--font-body);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px var(--primary-glow);
    transform: translateY(-1px);
}

.form-field input::placeholder { color: var(--text-light); }
.form-field input[type="file"] { padding: 0.6rem; cursor: pointer; font-size: 0.85rem; }

.form-field .hint {
    font-size: 0.72rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.3rem;
}

/* ============================================
   MODAL DE AUTENTICACIÓN - SÓLIDO
   ============================================ */
.modal-auth {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-auth.active { display: flex; }

.modal-auth-content {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    width: 92%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-modal-auth {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all var(--transition-fast);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal-auth:hover { color: var(--text-main); background: var(--border-color); }

.modal-auth-content h2 {
    margin-bottom: 1.75rem;
    font-weight: 800;
    color: var(--text-heading);
    text-align: center;
    font-size: 1.4rem;
}

.password-requirements { margin-top: 0.5rem; }

.password-requirements .invalid {
    color: var(--error-color);
    font-size: 0.78rem;
    padding: 0.15rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
}

.password-requirements .valid {
    color: var(--success-color);
    font-size: 0.78rem;
    padding: 0.15rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
}

.password-requirements .valid::before { content: '✓'; font-weight: 700; }
.password-requirements .invalid::before { content: '○'; font-weight: 400; opacity: 0.5; }

/* ============================================
   PANTALLAS
   ============================================ */
.screen { display: none; animation: fadeIn 0.5s ease; }
.screen.active { display: block; }

.hero-text { text-align: center; }

.hero-text h1 {
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    color: var(--text-heading);
}

.hero-text h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

.subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 1.5rem 0 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subtitle::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.guarantee-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0.5rem 0 1.5rem;
    font-weight: 500;
    padding: 0.75rem;
    background: var(--warning-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--warning-color);
}

.legal-text {
    font-size: 0.72rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.6;
}

.legal-text a {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.legal-text a:hover { text-decoration: underline; }

/* ============================================
   FAQ - ACCORDION
   ============================================ */
.faq-section {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 0 5%;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.faq-section h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.faq-item:hover { box-shadow: var(--shadow-md); border-color: #059669; }

.faq-question {
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-heading);
    transition: all var(--transition-base);
    user-select: none;
}

.faq-question:hover { background: rgba(5, 150, 105, 0.03); }

.faq-question::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 300;
    color: #059669;
    transition: transform var(--transition-base);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 50%;
}

.faq-question.active::after {
    content: "−";
    transform: rotate(180deg);
    background: var(--primary-gradient);
    color: white;
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer.show { padding: 0 1.25rem 1.25rem; max-height: 800px; }

/* ============================================
   MODALES LEGALES - SÓLIDO
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--surface-color);
    margin: 5% auto;
    padding: 2rem;
    width: 92%;
    max-width: 700px;
    border-radius: var(--radius-xl);
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content-full {
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: 1.5rem 1.5rem 3rem;
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all var(--transition-fast);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover { color: var(--text-main); background: var(--border-color); }

.modal-content h3 { font-size: 1.3rem; font-weight: 700; color: var(--text-heading); margin-bottom: 1rem; }
.modal-content p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.8; }

/* ============================================
   AUDITORÍA
   ============================================ */
.audit-container { text-align: center; padding: 2rem 1rem; }

.audit-status {
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    min-height: 2rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.audit-status.verifying { color: #059669; font-weight: 600; }
.audit-status.done { color: var(--success-color); font-weight: 600; }

.audit-progress { max-width: 500px; margin: 2rem auto; }

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

/* ============================================
   PANTALLA DE RESPUESTA
   ============================================ */
.final-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem 1.5rem;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    animation: slideUp 0.6s ease both;
}

.final-card .title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.final-card .subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    border: none;
    padding: 0;
}

.final-card .subtitle::before { display: none; }

/* ============================================
   PANTALLA DE FICHA DE PAGO
   ============================================ */
.detalle-container { max-width: 700px; margin: 0 auto; padding: 0.5rem 0; }

.detalle-titulo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 1.5rem;
}

.detalle-resumen {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.detalle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.detalle-item:hover { padding-left: 0.5rem; }
.detalle-item:last-child { border-bottom: none; }

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

.detalle-valor {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.detalle-total .detalle-valor { font-size: 1.25rem; color: var(--success-color); }

.detalle-subtitulo {
    text-align: center;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.tiendas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.tienda-card {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.tienda-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.tienda-card:hover { border-color: #059669; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tienda-card:hover::before { transform: scaleX(1); }

.tienda-card.seleccionada {
    border-color: var(--success-color);
    background: var(--success-light);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15), var(--shadow-md);
    transform: translateY(-2px);
}

.tienda-card.seleccionada::before { transform: scaleX(1); background: var(--success-color); }

.tienda-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-bottom: 0.6rem;
    transition: transform var(--transition-base);
}

.tienda-card:hover .tienda-logo { transform: scale(1.1); }

.tienda-nombre { display: block; font-size: 0.78rem; font-weight: 700; color: var(--text-heading); }

/* ============================================
   TICKET DE IMPRESIÓN
   ============================================ */
#impresionTicket {
    display: none;
    padding: 2rem;
    background: white !important;
    border-radius: var(--radius-lg);
    border: 2px dashed #cbd5e1;
    margin-top: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media print {
    body * { visibility: hidden; }
    #impresionTicket, #impresionTicket * { visibility: visible; }
    #impresionTicket {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        padding: 2rem;
        background: white !important;
        page-break-after: avoid;
        overflow: hidden;
    }
    .no-print { display: none !important; }
}

/* ============================================
   FAQ EN DETALLE
   ============================================ */
.detalle-faq { margin-top: 2rem; border-top: 1px solid var(--border-color); padding-top: 1.5rem; }

.faq-item-detalle {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item-detalle:hover { border-color: #059669; box-shadow: var(--shadow-sm); }

.faq-pregunta {
    padding: 0.85rem 1.1rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    background: var(--surface-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all var(--transition-base);
    color: var(--text-heading);
}

.faq-pregunta:hover { background: rgba(5, 150, 105, 0.03); }

.faq-pregunta::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 300;
    color: #059669;
    transition: all var(--transition-base);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.faq-pregunta.activo::after {
    content: "−";
    background: var(--primary-gradient);
    color: white;
    transform: rotate(180deg);
}

.faq-respuesta {
    padding: 0 1.1rem;
    max-height: 0;
    overflow: hidden;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-respuesta.mostrar { padding: 0 1.1rem 1rem; max-height: 800px; }

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #94a3b8;
    font-size: 0.75rem;
    text-align: center;
    margin-top: auto;
    padding: 3rem 1rem 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

footer a { color: #60a5fa; text-decoration: none; transition: all var(--transition-fast); cursor: pointer; }
footer a:hover { color: #93c5fd; text-decoration: underline; }

/* ============================================
   MESSAGES & ALERTS
   ============================================ */
.mensaje-exito {
    background: var(--success-light);
    color: var(--success-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin: 0.5rem 0;
    font-weight: 600;
    font-size: 0.85rem;
    animation: fadeInUp 0.4s ease;
    border-left: 3px solid var(--success-color);
}

.mensaje-error {
    background: var(--error-light);
    color: var(--error-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin: 0.5rem 0;
    font-weight: 600;
    font-size: 0.85rem;
    animation: fadeInUp 0.4s ease;
    border-left: 3px solid var(--error-color);
}

/* ============================================
   RESPONSIVE - DESKTOP
   ============================================ */
@media (min-width: 768px) {
    .hero-content { flex-direction: row; align-items: center; gap: 3rem; }
    .hero-image-wrapper { flex: 0 0 45%; max-width: 450px; order: 1; }
    .hero-image { max-height: 480px; }
    .hero-text-content { flex: 1; text-align: left; order: 2; }
    .hero-text-content h1 { text-align: left; }
    .hero-text-content p { text-align: left; margin-left: 0; margin-right: 0; }
    .simulator-card { max-width: 480px; }
    header { padding: 1rem 8%; }
    .hero { padding: 3rem 8%; }
    .faq-section { padding: 0 8%; }
}

@media (min-width: 1024px) {
    .hero-content { gap: 4rem; }
    .hero-image-wrapper { flex: 0 0 40%; }
    .hero-text-content { flex: 1; }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 480px) {
    .hero-image { max-height: 260px; }
    .simulator-card { padding: 1.25rem; border-radius: var(--radius-lg); }
    .tiendas-grid { gap: 0.75rem; }
    .tienda-card { padding: 1rem 0.75rem; }
    .tienda-logo { width: 45px; height: 45px; }
    .modal-auth-content { padding: 2rem 1.25rem; border-radius: var(--radius-xl); }
    .final-card { padding: 2rem 1.25rem; }
    .detalle-resumen { padding: 1.25rem; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
::selection { background: rgba(5, 150, 105, 0.2); color: var(--text-heading); }

/* ============================================
   AUTH LINKS
   ============================================ */
.auth-link {
    text-align: center;
    font-size: 0.85rem;
    color: #059669;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 0.75rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}
.auth-link:hover { color: #047857; }

/* ============================================
   WIDGET DE CHAT 🤖
   ============================================ */
.chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }

.chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
    transition: all var(--transition-base);
    border: none;
}

.chat-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5); }

.chat-panel {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    height: 450px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}

.chat-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close { cursor: pointer; font-size: 1.4rem; line-height: 1; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-msg { max-width: 85%; padding: 0.75rem 1rem; border-radius: var(--radius-lg); font-size: 0.85rem; line-height: 1.5; }
.chat-msg.bot { background: #f1f5f9; color: var(--text-main); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--primary-gradient); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }

.chat-options { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; border-top: 1px solid var(--border-color); }

.chat-option {
    background: var(--surface-color);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-heading);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    font-family: var(--font-body);
}

.chat-option:hover { background: rgba(5, 150, 105, 0.08); border-color: #059669; }

.chat-input-area { padding: 0.75rem; border-top: 1px solid var(--border-color); }
.chat-input-area input[type="file"] { width: 100%; margin-bottom: 0.5rem; font-size: 0.8rem; }

.chat-send-btn {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-body);
}

/* ============================================
   PLAZO DE VIGENCIA
   ============================================ */
.plazo-vigencia {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border-left: 4px solid #059669;
}

.plazo-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.plazo-texto {
    font-size: 0.95rem;
    color: var(--text-heading);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .plazo-vigencia { padding: 20px 16px; }
    .plazo-texto { font-size: 0.9rem; }
    .chat-panel { width: 280px; height: 400px; }
}
footer {
    padding-bottom: 80px !important; /* Compensar barra de Chrome */
}