/**
 * Ricky Sport - Custom Styles
 * Landing Page - Tienda Deportiva
 *
 * Cambios:
 * 2025-12-18 16:00 - Creación inicial de estilos personalizados
 * 2025-12-18 16:40 - Agregado estilos para logo de empresa
 * 2025-12-18 16:55 - Agregado estilo para logo en sección About
 * 2025-12-18 18:00 - Agregado estilos para slider de promociones
 *
 * @author Alejandro J. Elías -- Director -- DeveloperTeam Software Solutions
 */

/* ============================================
   Variables CSS
============================================ */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ============================================
   Base Styles
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ============================================
   Custom Button Styles
============================================ */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-dark);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 10px 26px;
    font-weight: 600;
    border-radius: 8px;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 8px;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-access {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-access-client {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.btn-access-client:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-access-supplier {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.btn-access-supplier:hover {
    background: var(--accent-color);
    color: var(--dark-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* ============================================
   Navbar Styles
============================================ */
#mainNav {
    padding: 15px 0;
    transition: all 0.4s ease;
    background: transparent;
}

#mainNav.scrolled {
    background: var(--gradient-dark);
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
}

#mainNav .navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

#mainNav .nav-link {
    font-weight: 500;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#mainNav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

.access-buttons {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Logo Styles */
.navbar-logo {
    height: 45px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    transition: all 0.3s ease;
}

#mainNav.scrolled .navbar-logo {
    height: 38px;
}

.navbar-brand .brand-text {
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.footer-logo {
    height: 60px;
    width: auto;
    border-radius: 10px;
    object-fit: contain;
}

.login-logo-img {
    height: 80px;
    width: auto;
    border-radius: 12px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* ============================================
   Hero Section
============================================ */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%),
                url('https://images.unsplash.com/photo-1517649763962-0c623066013b?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.3) 0%, transparent 60%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-shape svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================
   About Section
============================================ */
.about-image-container {
    position: relative;
    padding: 40px;
}

.about-image-box {
    width: 100%;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-image-box::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.about-image-box i {
    font-size: 8rem;
    color: white;
    opacity: 0.9;
}

.about-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    border-radius: 10px;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 20px;
    right: 0;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 60px;
    left: 0;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-box {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ============================================
   Categories Section
============================================ */
.category-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

/* ============================================
   Brands Section
============================================ */
.brands-carousel {
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.brands-track {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
}

.brands-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-item {
    flex-shrink: 0;
    padding: 20px 40px;
    background: var(--light-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.brand-item:hover {
    background: var(--primary-color);
}

.brand-item:hover .brand-text {
    color: white;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

/* ============================================
   Stores Section
============================================ */
.store-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}

.store-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.store-card:hover::before {
    transform: scaleX(1);
}

.store-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.store-card.featured {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.store-card.featured::before {
    transform: scaleX(1);
}

.store-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.store-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.store-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
}

/* ============================================
   Contact Section
============================================ */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.form-control, .form-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* ============================================
   Footer
============================================ */
.footer {
    background: var(--gradient-dark);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-links li i {
    color: var(--primary-light);
}

/* ============================================
   Back to Top Button
============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: white;
}

/* ============================================
   Login Page Styles
============================================ */
.login-section {
    min-height: 100vh;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.login-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
}

.login-container {
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo .login-logo-img {
    height: 80px;
    width: auto;
    border-radius: 12px;
    object-fit: contain;
}

.login-logo h2 {
    color: white;
    font-size: 1.75rem;
    margin-top: 15px;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
}

.login-title h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.login-title p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.login-form .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 14px 18px;
}

.login-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-form .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    color: white;
}

.login-form .form-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.login-form .form-check-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.login-form .btn-login {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    margin-top: 10px;
}

.login-links {
    text-align: center;
    margin-top: 25px;
}

.login-links a {
    color: var(--primary-light);
    font-size: 0.9rem;
}

.login-links a:hover {
    color: white;
    text-decoration: underline;
}

.login-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.login-divider span {
    background: transparent;
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.login-type-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.login-type-badge.client {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.login-type-badge.supplier {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ============================================
   Responsive Styles
============================================ */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        padding-top: 120px;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .access-buttons {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 15px;
        justify-content: center;
    }

    .about-image-container {
        padding: 20px;
        margin-bottom: 40px;
    }

    .floating-card.card-1 {
        top: 0;
        right: 10px;
    }

    .floating-card.card-2 {
        bottom: 40px;
        left: 10px;
    }
}

@media (max-width: 767px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .category-card {
        padding: 30px 20px;
    }

    .store-card {
        padding: 30px 20px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .login-card {
        padding: 40px 25px;
    }

    .access-buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .btn-access {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Utility Classes
============================================ */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.bg-primary-subtle {
    background: rgba(37, 99, 235, 0.1) !important;
}

/* ============================================
   Animation Classes
============================================ */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   Promo Slider Section
   2025-12-18 18:00 - Estilos para slider de promociones
============================================ */
.promo-slider-section {
    padding: 0;
    background: var(--light-color);
}

.promo-slider-container {
    max-width: 1400px;
    margin: 0 auto;
}

#promoCarousel {
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#promoCarousel .carousel-inner {
    border-radius: 0;
}

#promoCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

#promoCarousel .slider-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

#promoCarousel .carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 20px 30px;
    text-align: center;
}

#promoCarousel .carousel-caption h5 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#promoCarousel .carousel-caption p {
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.9;
}

#promoCarousel .carousel-control-prev,
#promoCarousel .carousel-control-next {
    width: 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#promoCarousel:hover .carousel-control-prev,
#promoCarousel:hover .carousel-control-next {
    opacity: 1;
}

#promoCarousel .carousel-control-prev-icon,
#promoCarousel .carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    background-size: 50%;
}

#promoCarousel .carousel-indicators {
    margin-bottom: 15px;
}

#promoCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

#promoCarousel .carousel-indicators button.active {
    background-color: var(--primary-color);
    border-color: white;
    transform: scale(1.2);
}

/* Responsive slider */
@media (max-width: 991px) {
    #promoCarousel .slider-image {
        height: 300px;
    }

    #promoCarousel .carousel-caption h5 {
        font-size: 1.25rem;
    }

    #promoCarousel .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    #promoCarousel .slider-image {
        height: 220px;
    }

    #promoCarousel .carousel-caption {
        padding: 25px 15px 20px;
    }

    #promoCarousel .carousel-caption h5 {
        font-size: 1rem;
    }

    #promoCarousel .carousel-caption p {
        font-size: 0.8rem;
    }

    #promoCarousel .carousel-control-prev-icon,
    #promoCarousel .carousel-control-next-icon {
        width: 35px;
        height: 35px;
    }
}
