/* ============================================
   CLICK N' BEER - SISTEMA DE DISEÑO AVANZADO
   ============================================ */

/* === VARIABLES DE COLOR === */
:root {
    /* Paleta principal */
    --color-primary: #d97706;
    --color-primary-dark: #b45309;
    --color-primary-light: #fbbf24;

    /* Gradientes */
    --gradient-hero: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    --gradient-overlay: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(217, 119, 6, 0.3);

    /* Animaciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === ANIMACIONES KEYFRAMES === */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(217, 119, 6, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(217, 119, 6, 0.6);
    }
}

/* === CLASES DE ANIMACIÓN === */

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Delays para animaciones en secuencia */
.delay-100 {
    animation-delay: 0.1s;
}
.delay-200 {
    animation-delay: 0.2s;
}
.delay-300 {
    animation-delay: 0.3s;
}
.delay-400 {
    animation-delay: 0.4s;
}
.delay-500 {
    animation-delay: 0.5s;
}

/* Estado inicial para elementos animados */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === EFECTOS GLASSMORPHISM === */

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-effect-dark {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === EFECTOS DE TARJETAS === */

.card-hover {
    transition: all var(--transition-normal);
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-hover:hover .card-image {
    transform: scale(1.05);
}

.card-image {
    transition: transform var(--transition-slow);
}

/* === BOTONES MEJORADOS === */

.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:active {
    transform: scale(0.95);
}

/* === EFECTOS DE PARALLAX === */

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
}

/* === NAVBAR MEJORADO === */

.navbar-sticky {
    transition: all var(--transition-normal);
}

.navbar-sticky.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

/* === EFECTOS DE HOVER EN IMÁGENES === */

.img-zoom-container {
    overflow: hidden;
    border-radius: 0.5rem;
}

.img-zoom {
    transition: transform var(--transition-slow);
}

.img-zoom-container:hover .img-zoom {
    transform: scale(1.1);
}

/* === GRADIENTES DE TEXTO === */

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === EFECTOS DE LÍNEA ANIMADA === */

.underline-animated {
    position: relative;
    display: inline-block;
}

.underline-animated::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-normal);
}

.underline-animated:hover::after {
    width: 100%;
}

/* === SKELETON LOADING === */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* === BADGE Y ETIQUETAS === */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    animation: pulse-glow 2s ease-in-out infinite;
}

.badge-offer {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* === SCROLL SMOOTH === */

html {
    scroll-behavior: smooth;
}

/* === MEJORAS DE FORMULARIOS === */

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
    transition: all var(--transition-fast);
}

/* === EFECTOS DE HOVER EN LINKS === */

a {
    transition: all var(--transition-fast);
}

/* === RESPONSIVE UTILITIES === */

@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* === CUSTOM SCROLLBAR === */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* === EFECTOS ADICIONALES === */

.shadow-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.blur-sm {
    filter: blur(4px);
    transition: filter var(--transition-normal);
}

.blur-sm:hover {
    filter: blur(0);
}
