* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; -webkit-tap-highlight-color: transparent; }

:root {
    --bg-dark: #020617;
    --panel-bg: rgba(15, 23, 42, 0.6);
    --panel-border: rgba(255, 255, 255, 0.08);
    --accent: #00aeef;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

/* Background Animation */
.ambient-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}
.orb-1 {
    width: 300px; height: 300px;
    background: #00aeef;
    top: -100px; left: -100px;
}
.orb-2 {
    width: 400px; height: 400px;
    background: #3b82f6;
    bottom: -150px; right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* App Container */
#app-container {
    width: 100%;
    height: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    background: rgba(2, 6, 23, 0.4);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

/* Views */
.view {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 10;
}
.view.active-view {
    visibility: visible;
    opacity: 1;
    z-index: 20;
}

/* Typography & Logo */
.real-logo { text-align: center; line-height: 0.85; font-weight: 900; }
.real-logo .top { font-size: 32px; color: white; display: block; letter-spacing: -1px; }
.real-logo .bot { font-size: 32px; color: var(--accent); display: block; letter-spacing: -1px; }

/* Login */
.login-wrapper {
    margin: auto;
    width: 85%;
    padding: 40px 30px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}
.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.input-group input, .input-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}
.input-group input:focus, .input-group textarea:focus {
    border-color: var(--accent);
}
.input-group input[type="password"] {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 8px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00aeef, #0ea5e9);
    border: none;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 174, 239, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--panel-border);
    z-index: 30;
}
.header-action {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    cursor: pointer;
}
.header-title h2 { font-size: 1.2rem; margin: 0; }

/* Scrollable Content */
.content-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    padding-bottom: 100px;
}

/* Locale Grid */
.locale-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.locale-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.2s;
}
.locale-card:active { background: rgba(255,255,255,0.08); }
.locale-icon {
    width: 50px; height: 50px;
    background: rgba(0, 174, 239, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.locale-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.locale-info p { font-size: 0.8rem; color: var(--text-muted); }

/* Audit Flow */
.progress-bar-container {
    height: 4px; background: rgba(255,255,255,0.05); width: 100%;
}
.progress-bar {
    height: 100%; background: var(--accent); width: 0%;
    transition: width 0.3s ease;
}

.question-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
}
.question-number { font-size: 0.8rem; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.question-text { font-size: 1.4rem; line-height: 1.3; font-weight: 600; margin-bottom: 30px; }

.answer-options {
    display: flex; flex-direction: column; gap: 12px;
}
.ans-btn {
    display: flex; align-items: center; gap: 15px;
    width: 100%; padding: 18px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    color: white; font-weight: 700; font-size: 1.1rem;
    cursor: pointer; text-align: left;
    transition: all 0.2s;
}
.ans-btn .icon {
    width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1);
}
.ans-btn.selected { border-width: 2px; }
.ans-btn.ans-cumple.selected { background: rgba(74, 222, 128, 0.1); border-color: var(--success); color: var(--success); }
.ans-btn.ans-nocumple.selected { background: rgba(248, 113, 113, 0.1); border-color: var(--danger); color: var(--danger); }
.ans-btn.ans-proceso.selected { background: rgba(251, 191, 36, 0.1); border-color: var(--warning); color: var(--warning); }

.ans-btn.ans-cumple.selected .icon { background: var(--success); color: var(--bg-dark); }
.ans-btn.ans-nocumple.selected .icon { background: var(--danger); color: var(--bg-dark); }
.ans-btn.ans-proceso.selected .icon { background: var(--warning); color: var(--bg-dark); }

.audit-footer {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 20px 25px;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--panel-border);
    display: flex; gap: 15px;
}
.audit-footer button { flex: 1; }

/* Summary */
.summary-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 25px;
}
.crit-item {
    background: rgba(248, 113, 113, 0.05);
    border-left: 3px solid var(--danger);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up { animation: fadeInUp 0.5s ease both; }
.fade-in { animation: fadeIn 0.3s ease both; }

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

/* Toast */
.toast {
    position: fixed;
    bottom: -100px; left: 50%; transform: translateX(-50%);
    background: #1e293b; color: white;
    padding: 12px 24px; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
}
.toast.show { bottom: 30px; }

.camera-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 15px; background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.3); border-radius: 12px; color: var(--accent); cursor: pointer; font-weight: 600; transition: all 0.2s; }
.camera-btn:hover { background: rgba(255,255,255,0.1); }

/* Logo Animation */
.real-logo { animation: logoPulse 3s infinite alternate ease-in-out; }
@keyframes logoPulse { 0% { filter: drop-shadow(0 0 10px rgba(0,174,239,0.2)); transform: scale(1); } 100% { filter: drop-shadow(0 0 30px rgba(0,174,239,0.8)); transform: scale(1.05); } }
/* Dropdown */
.month-selector { width: 100%; padding: 15px; background: rgba(0,0,0,0.3); border: 1px solid var(--accent); border-radius: 12px; color: white; font-size: 1.1rem; font-family: inherit; font-weight: 700; margin-bottom: 20px; outline: none; appearance: none; text-align: center; cursor: pointer; transition: box-shadow 0.3s; }
.month-selector:focus { box-shadow: 0 0 15px rgba(0,174,239,0.5); }
.month-selector option { background: var(--bg-dark); color: white; }
