/* ARTICA FERRETERÍA - Tema Industrial y Construcción */
:root {
    /* Colores principales de ferretería */
    --primary-orange: #FF6B35;
    --primary-orange-dark: #E85D2C;
    --secondary-orange: #F77F00;
    --accent-yellow: #FCA311;
    --accent-yellow-dark: #E39200;
    
    /* Colores base */
    --primary-black: #1A1A1A;
    --construction-dark: #14213D;
    --steel-gray: #2B2D42;
    --concrete-gray: #495057;
    --cement-gray: #6C757D;
    --light-gray: #8D99AE;
    --off-white: #EDF2F4;
    --primary-white: #FFFFFF;
    
    /* Colores de acento */
    --safety-yellow: #FFD60A;
    --warning-red: #D62828;
    --success-green: #52B788;
    
    /* Sombras industriales */
    --shadow-light: 0 2px 8px rgba(26, 26, 26, 0.1);
    --shadow-medium: 0 4px 16px rgba(26, 26, 26, 0.15);
    --shadow-heavy: 0 8px 32px rgba(26, 26, 26, 0.25);
}

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

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--construction-dark);
    background-color: var(--off-white);
    margin: 0;
    padding: 0;
    padding-top: 76px;
}

body.dashboard-page {
    padding-top: 0;
}

/* ============================================
   NAVBAR - Estilo Industrial
   ============================================ */
.navbar-artica {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--construction-dark) 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 1rem 0;
    height: 76px;
    z-index: 1050;
    border-bottom: 3px solid var(--primary-orange);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--primary-white) !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.navbar-brand::before {
    content: "🔨 ";
    margin-right: 8px;
}

.navbar-nav .nav-link {
    color: var(--off-white) !important;
    font-weight: 600;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
    background-color: var(--primary-orange);
    color: var(--primary-white) !important;
    transform: translateY(-2px);
}

@media (min-width: 992px) {
    .navbar-nav .nav-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    }
}

/* Botón hamburguesa */
.navbar-toggler {
    border: 2px solid var(--primary-orange) !important;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.4) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FF6B35' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Botones de autenticación */
.navbar-nav .btn-outline-light {
    color: var(--primary-white) !important;
    border-color: var(--primary-orange) !important;
    background-color: transparent !important;
    font-weight: 700;
    padding: 0.5rem 1.5rem !important;
    border-radius: 8px;
    border-width: 2px;
    transition: all 0.3s ease;
}

.navbar-nav .btn-outline-light:hover {
    color: var(--primary-black) !important;
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

/* Menú móvil */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(20, 33, 61, 0.98) 100%);
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: 12px;
        border: 2px solid var(--primary-orange);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }
    
    .navbar-nav .nav-link {
        margin: 0.4rem 0;
        text-align: center;
        border: 1px solid rgba(255, 107, 53, 0.3);
        background: rgba(255, 107, 53, 0.05);
    }
    
    .navbar-nav .nav-link:hover {
        background-color: var(--primary-orange);
        border-color: var(--primary-orange);
    }
}

/* Dropdown menus */
.navbar-nav .dropdown-menu {
    background-color: var(--primary-white);
    border: 2px solid var(--primary-orange);
    box-shadow: var(--shadow-heavy);
    border-radius: 10px;
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
    color: var(--construction-dark);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--primary-orange);
    color: var(--primary-white);
    border-left-color: var(--accent-yellow);
    transform: translateX(5px);
}

/* Search form */
.search-form {
    max-width: 400px;
}

.search-input {
    border: 2px solid var(--primary-orange);
    border-radius: 8px;
    padding: 0.75rem 3.5rem 0.75rem 1.5rem;
    background-color: rgba(255,255,255,0.15);
    color: var(--primary-white);
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.8);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.4);
    background-color: rgba(255,255,255,0.25);
    border-color: var(--accent-yellow);
}

.btn-search {
    background: var(--primary-orange);
    color: var(--primary-white);
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
}

.btn-search:hover {
    background-color: var(--secondary-orange);
    transform: translateY(-50%) scale(1.1);
}

/* ============================================
   HERO SECTION - Tema Construcción
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, 
        var(--construction-dark) 0%, 
        var(--steel-gray) 50%, 
        var(--primary-orange) 100%);
    padding: 6rem 0;
    margin: -76px 0 0 0;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    border-bottom: 5px solid var(--accent-yellow);
}

/* Patrón de construcción */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.03) 35px, rgba(255,255,255,0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(0,0,0,0.03) 35px, rgba(0,0,0,0.03) 70px),
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(252, 163, 17, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.05) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,107,53,0.1) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    z-index: 2;
    animation: toolPattern 60s linear infinite;
}

@keyframes toolPattern {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 50px 50px, 30px 30px; }
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--primary-white);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    padding-top: 2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--primary-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.9);
    letter-spacing: 2px;
}

.hero-title .gradient-text {
    color: var(--accent-yellow);
    text-shadow: 3px 3px 8px rgba(0,0,0,0.9), 0 0 20px rgba(252, 163, 17, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--off-white);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 550px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    font-weight: 500;
}

.hero-buttons .btn {
    font-weight: 700;
    padding: 0.85rem 2.5rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.btn-hero-primary {
    background: var(--primary-orange);
    color: var(--primary-white);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    border-color: var(--primary-orange);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.7);
    background: var(--secondary-orange);
    border-color: var(--accent-yellow);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    border-width: 3px;
}

.btn-hero-secondary:hover {
    background: var(--accent-yellow);
    color: var(--primary-black);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(252, 163, 17, 0.5);
}

/* Hero visual - Herramientas */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.hero-circle {
    position: relative;
    width: 420px;
    height: 420px;
    background: linear-gradient(135deg, 
        var(--primary-orange) 0%, 
        var(--secondary-orange) 50%, 
        var(--accent-yellow) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 60px rgba(255, 107, 53, 0.4),
        inset 0 2px 20px rgba(255,255,255,0.3);
    border: 5px solid rgba(255,255,255,0.3);
    animation: pulse 3s ease-in-out infinite;
}

.hero-main-icon {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--off-white) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Elementos flotantes de herramientas */
.tech-element {
    position: absolute;
    animation: float 4s ease-in-out infinite;
}

.tech-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--off-white) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-orange);
    box-shadow: var(--shadow-heavy);
    border: 3px solid var(--accent-yellow);
    transition: all 0.3s ease;
}

.tech-icon:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
}

.tech-element-1 { top: 10%; left: 20%; animation-delay: 0s; }
.tech-element-2 { top: 25%; right: 15%; animation-delay: 0.5s; }
.tech-element-3 { bottom: 30%; left: 10%; animation-delay: 1s; }
.tech-element-4 { bottom: 15%; right: 25%; animation-delay: 1.5s; }
.tech-element-5 { top: 45%; left: 5%; animation-delay: 2s; }
.tech-element-6 { top: 35%; right: 5%; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(3deg); }
    50% { transform: translateY(-18px) rotate(0deg); }
    75% { transform: translateY(-8px) rotate(-3deg); }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 20px 60px rgba(255, 107, 53, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 25px 70px rgba(255, 107, 53, 0.6);
    }
}

/* ============================================
   CATEGORÍAS - Estilo Industrial
   ============================================ */
#categorias {
    background: var(--off-white);
    padding-top: 4rem;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    border-radius: 2rem 2rem 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
}

.category-card-compact {
    background: var(--primary-white);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid var(--light-gray);
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: var(--shadow-light);
}

.category-card-compact:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px) scale(1.02);
    color: inherit;
    box-shadow: var(--shadow-heavy);
    background: linear-gradient(135deg, var(--primary-white) 0%, rgba(255, 107, 53, 0.05) 100%);
}

.category-icon-compact {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.category-card-compact h6 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--construction-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-card-compact .badge {
    background-color: var(--primary-orange);
    color: var(--primary-white);
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    font-weight: 700;
}

/* ============================================
   PRODUCTOS - Cards de Ferretería
   ============================================ */
.card-product {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    border: 3px solid transparent;
}

.card-product:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-orange);
}

.card-product img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-orange);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* ============================================
   BOTONES - Estilo Industrial
   ============================================ */
.btn-primary-artica {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    color: var(--primary-white) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary-artica:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, var(--secondary-orange) 0%, var(--primary-orange) 100%);
}

.btn-outline-dark {
    color: var(--primary-black) !important;
    border: 3px solid var(--primary-black) !important;
    background-color: transparent !important;
    font-weight: 700 !important;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.btn-outline-dark:hover {
    color: var(--primary-white) !important;
    background-color: var(--primary-black) !important;
    border-color: var(--primary-black) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.4);
}

.btn-success {
    background-color: var(--success-green) !important;
    border-color: var(--success-green) !important;
    color: var(--primary-white) !important;
    font-weight: 700 !important;
}

.btn-success:hover {
    background-color: #3d9970 !important;
    border-color: #3d9970 !important;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--warning-red) !important;
    border-color: var(--warning-red) !important;
    color: var(--primary-white) !important;
    font-weight: 700 !important;
}

.btn-danger:hover {
    background-color: #b81e1e !important;
    border-color: #b81e1e !important;
    transform: translateY(-2px);
}

/* ============================================
   FOOTER - Estilo Industrial
   ============================================ */
.footer-artica {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--construction-dark) 100%);
    color: var(--off-white);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
    border-top: 5px solid var(--primary-orange);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 5rem 0 3rem 0;
        min-height: 75vh;
    }
    
    .hero-title {
        font-size: 3.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-circle {
        width: 320px;
        height: 320px;
        margin-top: 2rem;
    }
    
    .hero-main-icon {
        width: 100px;
        height: 100px;
        font-size: 3.5rem;
    }
    
    .tech-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 6rem 0 3rem 0;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-circle {
        width: 280px;
        height: 280px;
    }
    
    .hero-main-icon {
        width: 85px;
        height: 85px;
        font-size: 2.8rem;
    }
    
    .tech-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-circle {
        width: 240px;
        height: 240px;
    }
    
    .hero-main-icon {
        width: 75px;
        height: 75px;
        font-size: 2.3rem;
    }
    
    .tech-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* Scroll offset */
html {
    scroll-padding-top: 90px;
    scroll-behavior: smooth;
}

/* Utility classes */
body {
    padding-top: 76px;
}

.hero-section {
    margin-top: -76px;
}

/* Badge industrial */
.badge {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--construction-dark) 100%) !important;
    color: var(--primary-white) !important;
}

/* Enlaces */
a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-orange);
}

/* Alertas con tema industrial */
.alert-success {
    background-color: var(--success-green);
    border-color: #3d9970;
    color: var(--primary-white);
    font-weight: 600;
}

.alert-danger {
    background-color: var(--warning-red);
    border-color: #b81e1e;
    color: var(--primary-white);
    font-weight: 600;
}

.alert-warning {
    background-color: var(--safety-yellow);
    border-color: var(--accent-yellow-dark);
    color: var(--primary-black);
    font-weight: 600;
}
