@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0b0c10;
    --bg-card: rgba(31, 40, 51, 0.45);
    --bg-input: #1f2833;
    --text-primary: #ffffff;
    --text-muted: #c5c6c7;
    --gold: #ffc107;
    --gold-glow: rgba(255, 193, 7, 0.4);
    --gold-dark: #d4af37;
    --success: #2ec4b6;
    --danger: #e71d36;
    --border-color: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 10% 20%, rgba(212, 175, 55, 0.05) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(46, 196, 182, 0.03) 0px, transparent 50%);
}

/* Glassmorphism Cards */
.premium-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.premium-card:hover {
    border-color: rgba(255, 193, 7, 0.25);
    box-shadow: 0 12px 40px 0 rgba(255, 193, 7, 0.08);
}

/* Títulos y Subtítulos */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.gold-gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Form Controls */
.form-control, .form-select {
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.25s ease !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px var(--gold-glow) !important;
    outline: none !important;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    color: #000000;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--gold-glow);
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
    color: #000;
}

.btn-premium:active {
    transform: translateY(0);
}

.btn-premium-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-premium-outline:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 15px var(--gold-glow);
    transform: translateY(-2px);
}

/* Step Wizard Progress Bar */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-color);
    transform: translateY(-50%);
    z-index: 1;
}

.wizard-progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: var(--gold);
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.4s ease;
    width: 0%;
    box-shadow: 0 0 10px var(--gold-glow);
}

.wizard-step-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.wizard-step-node.active {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
    background: var(--bg-dark);
}

.wizard-step-node.complete {
    border-color: var(--success);
    background: var(--success);
    color: #000;
}

/* Signature Pad Canvas */
.signature-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
    margin-bottom: 12px;
}

.signature-canvas {
    width: 100%;
    height: 150px;
    display: block;
    cursor: crosshair;
    touch-action: none;
}

/* Countdown Timer */
.countdown-box {
    background: rgba(255, 193, 7, 0.05);
    border: 1px dashed var(--gold);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.countdown-timer {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 5px rgba(255,193,7,0.3);
}

/* Badges */
.badge-premium {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
}

.badge-approved {
    background-color: rgba(46, 196, 182, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

.badge-pending {
    background-color: rgba(255, 193, 7, 0.15);
    color: var(--gold);
    border: 1px solid var(--gold);
}

/* Terms Legal Scroller */
.legal-scroll-box {
    height: 200px;
    overflow-y: scroll;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.legal-scroll-box::-webkit-scrollbar {
    width: 6px;
}

.legal-scroll-box::-webkit-scrollbar-thumb {
    background: var(--bg-input);
    border-radius: 3px;
}

/* Admin Sidebar or Navbar */
.admin-navbar {
    border-bottom: 1px solid var(--border-color);
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(10px);
}

/* Custom CSS Table styles */
.table-premium {
    color: var(--text-primary);
}

.table-premium th {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 2px solid var(--border-color) !important;
    color: var(--gold) !important;
    font-weight: 600;
}

.table-premium td {
    background-color: transparent !important;
    border-bottom: 1px solid var(--border-color) !important;
    vertical-align: middle;
}

.table-premium tr:hover td {
    background-color: rgba(255, 255, 255, 0.01) !important;
}

/* Checkin Camera Scanner Box */
#scanner-preview {
    width: 100%;
    max-width: 500px;
    border: 2px solid var(--gold);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 0 25px var(--gold-glow);
}

/* Custom visual alert layouts */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 12, 16, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.alert-box {
    max-width: 500px;
    width: 90%;
    text-align: center;
}

/* Toggle Password Input Group Styling */
.input-group .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group .btn-outline-secondary {
    border: 1px solid var(--border-color) !important;
    border-left: none !important;
    background-color: var(--bg-input) !important;
    color: var(--text-muted) !important;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    transition: all 0.25s ease !important;
}

.input-group .btn-outline-secondary:hover {
    color: var(--gold) !important;
    border-color: var(--gold) !important;
}

.input-group:focus-within .form-control {
    border-color: var(--gold) !important;
}

.input-group:focus-within .btn-outline-secondary {
    border-color: var(--gold) !important;
}

/* Custom override for text-muted helper class */
.text-muted {
    --bs-text-opacity: 1;
    color: rgb(110 148 186 / 75%) !important;
}

/* Custom Selection Cards for Radio Buttons */
.selection-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    user-select: none !important;
}

.selection-card:hover {
    border-color: rgba(255, 193, 7, 0.3) !important;
    background: rgba(255, 193, 7, 0.02) !important;
}

.selection-card.active {
    border-color: var(--gold) !important;
    background: rgba(255, 193, 7, 0.06) !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.15) !important;
}

/* Media query para móviles y tablets */
@media (max-width: 768px) {
    .legal-intro-text {
        font-size: 1em !important;
    }
    .form-label {
        font-size: 1rem !important;
    }
    .selection-card-subtitle {
        font-size: 1.1em !important;
    }
}

