/* ============================
   GRUPO FÉNIX — Custom CSS
   Complements TailwindCSS
   ============================ */

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

/* ---- Selection ---- */
::selection {
    background: rgba(249, 115, 22, 0.3);
    color: #ffffff;
}

/* ---- Smooth scroll ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Body base ---- */
body {
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes rise {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(249, 115, 22, 0.6), 0 0 80px rgba(249, 115, 22, 0.2);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---- Animation Classes ---- */
.animate-rise {
    animation: rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* Scroll reveal — initial state */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   GRADIENT TEXT
   =========================== */

.gradient-text {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 40%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   GLASSMORPHISM CARDS
   =========================== */

.glass-card {
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===========================
   NAVBAR
   =========================== */

#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* ===========================
   BACKGROUND PATTERNS
   =========================== */

.bg-grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.bg-gradient-radial {
    background: radial-gradient(ellipse at center, var(--tw-gradient-from) 0%, var(--tw-gradient-via, transparent) 50%, var(--tw-gradient-to) 100%);
}

/* ===========================
   DATE INPUT — Dark theme
   =========================== */

.date-input {
    color-scheme: dark;
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(0.6) sepia(1) saturate(3) hue-rotate(330deg);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* ===========================
   TIME SLOTS
   =========================== */

.timeslot-btn {
    background: rgba(31, 41, 55, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    min-width: 72px;
    text-align: center;
}

.timeslot-btn:not(.occupied):hover {
    border-color: rgba(249, 115, 22, 0.5);
    background: rgba(249, 115, 22, 0.08);
    color: #ffffff;
}

.timeslot-btn.available {
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.05);
    color: #e5e7eb;
}

.timeslot-btn.selected {
    background: #f97316 !important;
    border-color: #f97316 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
    transform: scale(1.05);
}

.timeslot-btn.occupied {
    background: rgba(55, 65, 81, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
    color: #4b5563;
    cursor: not-allowed;
    opacity: 0.5;
}

/* ===========================
   PEDANA CARDS
   =========================== */

.pedana-card.selected {
    border-color: rgba(249, 115, 22, 0.7) !important;
    background: rgba(249, 115, 22, 0.08) !important;
}

.pedana-card.selected .pedana-bg {
    opacity: 1 !important;
}

.pedana-card.selected .pedana-selected-ring {
    opacity: 1 !important;
}

/* ===========================
   DURATION CARDS
   =========================== */

.duration-card.selected {
    border-color: rgba(249, 115, 22, 0.7) !important;
    background: rgba(249, 115, 22, 0.08) !important;
}

.duration-card.selected .duration-selected-ring {
    opacity: 1 !important;
}

/* ===========================
   CONFIRM BUTTON
   =========================== */

#confirm-btn:not(:disabled) {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.35);
}

#confirm-btn:not(:disabled):hover {
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.5);
    transform: translateY(-2px);
}

/* ===========================
   FILTER BUTTONS (Armería)
   =========================== */

.filter-btn.active {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

.filter-btn:not(.active):hover {
    border-color: rgba(249, 115, 22, 0.5);
    color: #e5e7eb;
}

/* ===========================
   PRODUCT CARD HIDDEN
   =========================== */

.product-card.hidden-filter {
    display: none;
}

/* ===========================
   STEP INDICATOR
   =========================== */

.step-indicator.done {
    background: #16a34a;
    color: #ffffff;
}

/* ===========================
   MESSAGES TOAST
   =========================== */

.message-toast {
    animation: slideInLeft 0.4s ease-out forwards;
}

/* ===========================
   NAV LINKS — underline effect
   =========================== */

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f97316;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===========================
   SECTION TRANSITIONS
   =========================== */

section {
    position: relative;
}

/* ===========================
   FORM INPUT FOCUS
   =========================== */

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ===========================
   RESPONSIVE TWEAKS
   =========================== */

@media (max-width: 640px) {
    .font-display {
        letter-spacing: 0.1em;
    }
}

/* ===========================
   PRINT
   =========================== */

@media print {
    .no-print { display: none !important; }
}
