:root {
    --primary-red: #e50914;
    --primary-red-dark: #b2070f;
    --error-red: #e74c3c;
    --success-green: #2ecc71;
    --text-light: #ffffff;
    --text-gray: #b3b3b3;
    --text-dark: #333333;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

/* Estilos base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

.btn-full {
    width: 100%;
    height: 50px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-full:hover {
    background: #c0392b;
}

/* Loading */
.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10000;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(231, 76, 60, 0.2);
    border-radius: 50%;
    border-top-color: #e74c3c;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notifications */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    border-radius: var(--border-radius);
    padding: 20px 25px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(150%);
    transition: var(--transition);
    max-width: 450px;
    border: 2px solid;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: rgba(46, 204, 113, 0.9);
    border-color: var(--success-green);
    color: white;
}

.notification-error {
    background: rgba(231, 76, 60, 0.9);
    border-color: var(--error-red);
    color: white;
}

/* Error messages */
.error-message {
    color: var(--error-red);
    font-size: 0.85rem;
    margin-top: 8px;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

/* Page transitions */
.page {
    display: none;
    width: 100%;
}

.page.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

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