﻿/* ============================================
   DoSmartAi - Estilos Premium con Animaciones
   ============================================ */

/* Variables */
:root {
    --primary: #E85D22;
    --primary-hover: #f26429;
    --bg-dark: #060D17;
    --text-white: #FFFFFF;
    --text-gray: #B0B3B8;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    cursor: default;
}

/* Custom Cursor */
.custom-cursor {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* Glass Card */
.glass-card {
    background-color: rgba(12, 35, 64, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(232, 93, 34, 0.4);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

/* Animaciones de Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll[data-animation="fade-left"] {
    transform: translateX(-50px);
}

.animate-on-scroll[data-animation="fade-right"] {
    transform: translateX(50px);
}

.animate-on-scroll[data-animation="zoom-in"] {
    transform: scale(0.8);
}

.animate-on-scroll.visible[data-animation="fade-left"],
.animate-on-scroll.visible[data-animation="fade-right"] {
    transform: translateX(0);
}

.animate-on-scroll.visible[data-animation="zoom-in"] {
    transform: scale(1);
}

/* Botones con efectos */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 60%
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.btn-border-glow {
    position: relative;
    overflow: hidden;
}

.btn-border-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary), transparent, var(--primary));
    z-index: -1;
    border-radius: 10px;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% {
        filter: blur(5px);
        opacity: 0;
    }
    50% {
        filter: blur(10px);
        opacity: 0.5;
    }
    100% {
        filter: blur(5px);
        opacity: 0;
    }
}

/* Cards con efecto Tilt */
.card-tilt {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* Chips con hover */
.chip-hover {
    transition: all 0.3s ease;
}

.chip-hover:hover {
    background-color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(232, 93, 34, 0.3);
}

/* Texto con gradiente animado */
.text-gradient-animate {
    background: linear-gradient(270deg, #E85D22, #ff8c00, #ff4500, #E85D22);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(232, 93, 34, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Modal Animation */
.modal-animate {
    animation: modalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Navigation Link Hover */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-cursor,
    .cursor-dot {
        display: none;
    }
    
    .animate-on-scroll {
        transform: translateY(30px);
    }
}

/* ============================================
   Acordeones (NUEVO)
   ============================================ */
.accordion-content-active {
    animation: accordionSlideDown 0.3s ease;
}

@keyframes accordionSlideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* ============================================
   Product Detail Overlay (NUEVO)
   ============================================ */
#product-detail {
    backdrop-filter: blur(10px);
}

#product-detail-content h3 {
    color: var(--text-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

#product-detail-content ul li {
    color: var(--text-gray);
    line-height: 1.6;
}

#product-detail-content strong {
    color: var(--text-white);
}