/* Ubicación: assets/css/global.css */

:root {
    --primary: #2a5298;
    --secondary: #1e3c72;
    --accent: #00d2ff;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --danger: #ff4b5c;
    --success: #28a745;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-size: 1.5rem; color: var(--primary); font-weight: bold; }

.search-bar {
    display: flex;
    background: #f1f1f1;
    border-radius: 20px;
    padding: 5px 15px;
    width: 40%;
}
.search-bar input { border: none; background: transparent; outline: none; width: 100%; }
.search-bar button { border: none; background: transparent; cursor: pointer; color: var(--text-light); }

.btn-nav {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--white);
    background: var(--primary);
    font-size: 0.9rem;
    margin-left: 10px;
    transition: 0.3s;
}

.btn-nav.outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-nav:hover { opacity: 0.9; transform: translateY(-2px); }

/* HERO SLIDER */
.hero-slider {
    height: 400px;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide-content h1 { font-size: 3rem; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.btn-hero {
    padding: 12px 30px;
    background: var(--accent);
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    margin-top: 20px;
    display: inline-block;
}

/* SECCIONES Y GRID */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; color: var(--secondary); }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.category-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.category-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.cat-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; }

/* PRODUCT CARDS */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}
.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    position: relative;
}
.product-card:hover { transform: translateY(-5px); }

.prod-img { height: 150px; background: #ddd; position: relative; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.stock-badge {
    position: absolute; top: 10px; right: 10px;
    background: var(--success); color: white;
    padding: 4px 10px; border-radius: 10px; font-size: 0.8rem;
}

.prod-info { padding: 20px; }
.provider-tag { font-size: 0.8rem; color: var(--text-light); display: block; margin-bottom: 5px; }
.product-card h4 { margin: 0 0 10px 0; font-size: 1.1rem; }
.prices { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.price-main { font-size: 1.2rem; font-weight: bold; color: var(--primary); }
.price-sec { font-size: 0.9rem; color: var(--text-light); }
.desc-short { font-size: 0.85rem; color: #777; margin-bottom: 15px; }

.btn-buy {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--secondary);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}
.btn-buy:hover { background: var(--primary); }

.main-footer { text-align: center; padding: 20px; background: var(--secondary); color: white; margin-top: 50px; }