/* ===========================
   VARIABLES Y COLORES
   =========================== */
:root {
    --primary: #ff0000;
    --secondary: #ffc107;
    --accent: #00bcd4;
    --foreground: #1a1a1a;
    --background: #f5f5f5;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --muted: #757575;
    --light-bg: #f9f9f9;
}

/* ===========================
   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(--foreground);
    background-color: var(--background);
    line-height: 1.6;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    background-color: var(--card-bg) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--foreground) !important;
    gap: 12px;
}

.logo-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

.brand-subtitle {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted) !important;
    transition: color 0.3s ease;
}

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

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--foreground);
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, var(--foreground), rgba(26, 26, 26, 0.8), transparent);
    z-index: 2;
}

.hero-section > .container-fluid {
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(217, 30, 99, 0.3);
    background-color: rgba(217, 30, 99, 0.1);
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary);
    width: fit-content;
}

.hero-badge i {
    font-size: 1rem;
    fill: currentColor;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-title .text-primary {
    color: var(--primary);
}

.hero-title .text-secondary {
    color: var(--secondary);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   CATEGORÍAS SECTION
   =========================== */
.category-image-container {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--background);
}

.category-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-count-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    backdrop-filter: blur(10px);
}

.category-count-badge span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
}

#categoryTabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tab {
    border: none;
    background-color: #e0e0e0;
    color: var(--muted);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    background-color: #d0d0d0;
}

.category-tab.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(217, 30, 99, 0.3);
}

#categoryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    #categoryGrid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.category-grid-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-grid-item:hover img {
    transform: scale(1.05);
}

.category-grid-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.8), transparent);
}

.category-grid-item-label {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

.category-grid-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary);
}

/* ===========================
   FEATURED PRODUCTS
   =========================== */
.product-card {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--card-bg);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--background);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.product-overlay-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

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

.product-rating .bi {
    color: var(--secondary);
    font-size: 0.875rem;
}

.product-rating-text {
    color: var(--muted);
    font-size: 0.75rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: auto;
}

.product-current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.product-original-price {
    font-size: 0.875rem;
    color: var(--muted);
    text-decoration: line-through;
}

/* ===========================
   PROMO BANNER
   =========================== */
.promo-banner {
    background: linear-gradient(135deg, #ff0000 0%, rgba(255, 0, 0, 0.8) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.promo-banner::after {
    content: '';
    position: absolute;
    left: -50px;
    bottom: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.promo-banner > .container-fluid {
    position: relative;
    z-index: 2;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.mission-card,
.vision-card,
.value-card {
    transition: all 0.3s ease;
}

.mission-card:hover,
.vision-card:hover,
.value-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background-color: var(--card-bg);
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    background-color: rgba(217, 30, 99, 0.1);
}

.contact-info-icon i {
    font-size: 1.25rem;
    color: var(--primary);
}

.contact-info-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.contact-info-value {
    font-size: 0.875rem;
    color: var(--muted);
}

.map-container {
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-container iframe {
    display: block;
    width: 100%;
}

.contact-form-container {
    background-color: var(--card-bg);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

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

.form-control::placeholder {
    color: var(--muted);
}

#successMessage {
    animation: fadeIn 0.3s ease;
}

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

/* ===========================
   FOOTER
   =========================== */
footer {
    background-color: #1a2332;
    color: #ffffff;
}

footer,
footer * {
    color: #ffffff !important;
}

footer p,
footer h5,
footer h6,
footer small,
footer span,
footer li,
footer div {
    color: #ffffff !important;
}

footer a {
    transition: color 0.3s ease;
    color: #ffffff !important;
}

footer a:hover {
    color: var(--primary) !important;
}

footer .text-muted {
    color: #ffffff !important;
}

.brand-logo-footer {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
}

/* ===========================
   BOTONES
   =========================== */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #c2185b;
    border-color: #c2185b;
    color: white;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-outline-light {
    border-color: white;
    color: white;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: white;
    border-color: white;
    color: var(--primary);
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.btn-link:hover {
    color: #c2185b;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .display-6 {
        font-size: 1.5rem;
    }

    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-lg-6 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* ===========================
   UTILIDADES
   =========================== */
.object-fit-cover {
    object-fit: cover;
}

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

.text-balance {
    text-wrap: balance;
}

.py-lg-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (max-width: 991px) {
    .py-lg-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}
