/* ============================================
   VARIABLES Y COLORES
   ============================================ */

:root {
    --primary-color: #E85D04;
    --secondary-color: #1a1a1a;
    --light-bg: #f5f5f5;
    --border-color: #e5e5e5;
    --text-muted: #666666;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* ============================================
   ESTILOS GLOBALES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--secondary-color);
    background-color: var(--white);
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */

header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: var(--secondary-color);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, rgba(232, 93, 4, 0.05) 0%, rgba(26, 26, 26, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 93, 4, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

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

.min-vh-75 {
    min-height: 75vh;
}

/* Hero Tag */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(232, 93, 4, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.hero-tag i {
    font-size: 0.875rem;
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.hero-highlight {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 2rem;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #d45304;
    border-color: #d45304;
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(232, 93, 4, 0.3);
}

.btn-outline-dark {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    transition: var(--transition);
}

.btn-outline-dark:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Hero Stats */
.hero-stats {
    margin-top: 3rem;
    padding-top: 2rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Image */
.hero-image-container {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.hero-frame {
    position: relative;
    height: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--primary-color);
    background: rgba(232, 93, 4, 0.1);
}

.hero-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hero-frame:hover img {
    transform: scale(1.05);
}

.hero-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hero-badge i {
    width: 40px;
    height: 40px;
    background: rgba(232, 93, 4, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.hero-badge small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.hero-badge strong {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Hero Controls */
.hero-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;
}

.hero-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-btn:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.slide-indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.slide-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slide-indicator.active {
    width: 32px;
    border-radius: 4px;
    background-color: var(--primary-color);
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */

section {
    padding: 3rem 0;
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

/* ============================================
   CATEGORÍAS
   ============================================ */

.category-card {
    display: block;
    text-decoration: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-8px);
}

.category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(232, 93, 4, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.timer-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timer-value {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
}

/* ============================================
   TARJETAS DE PRODUCTOS
   ============================================ */

.product-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--light-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
}

.product-badge.special {
    background-color: #28a745;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-brand {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.star {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.star.empty {
    color: #ddd;
}

.rating-count {
    color: var(--text-muted);
}

.product-button {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.product-button:hover {
    background-color: #d45304;
    transform: scale(1.02);
}

/* ============================================
   CATEGORÍA PILLS
   ============================================ */

.category-pill {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.5rem;
}

.category-pill:hover,
.category-pill.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ============================================
   ENVÍO ESPECIAL
   ============================================ */

.special-shipping-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
}

.special-shipping-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.special-shipping-image {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background-color: var(--light-bg);
}

.special-shipping-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.special-shipping-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.special-shipping-info {
    padding: 1.5rem 1rem;
}

.special-shipping-name {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.special-shipping-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   CONTACTO
   ============================================ */

.contact-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 1rem;
    transition: var(--transition);
}

.contact-card:hover {
    background-color: rgba(232, 93, 4, 0.1);
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.contact-card strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.contact-form-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(232, 93, 4, 0.25);
}

/* ============================================
   FOOTER
   ============================================ */

.footer-custom {
    background-color: #2d3436;
    color: #e8e8e8;
    border-top: 1px solid #404854;
}

.footer-custom h5 {
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.footer-text {
    color: #b8bcc4;
    line-height: 1.6;
}

.footer-link {
    color: #b8bcc4;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-social {
    color: #b8bcc4;
    font-size: 1.25rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-social:hover {
    color: var(--primary-color);
    transform: scale(1.15);
}

.footer-bottom {
    background-color: #262c31;
    border-color: #404854 !important;
}

.badge-payment {
    background-color: #ffffff !important;
    color: #2d3436 !important;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

.payment-methods {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-controls {
        bottom: 1rem;
        gap: 1rem;
    }

    .hero-btn {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .countdown-timer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline-dark {
        width: 100%;
    }

    .category-pill {
        margin: 0.25rem;
    }

    .contact-form-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title,
    .hero-highlight {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero-controls {
        bottom: 0.5rem;
    }

    .slide-indicator {
        width: 6px;
        height: 6px;
    }

    .slide-indicator.active {
        width: 24px;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */

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

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* Transiciones suaves */
* {
    transition: background-color 0.2s ease, color 0.2s ease;
}
