/* ==================== VARIABLES ==================== */

:root {
    --primary-color: #F97316;
    --primary-light: #FDBA74;
    --primary-dark: #EA580C;
    --background: #FFFFFF;
    --foreground: #1F2937;
    --muted: #6B7280;
    --light-bg: #F3F4F6;
    --border-color: #E5E7EB;
    --card-bg: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

/* ==================== TIPOGRAFÍA ==================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 800;
}

.display-5 {
    font-size: 2rem;
    font-weight: 800;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
}

.text-muted {
    color: var(--muted) !important;
}

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

/* ==================== NAVBAR ==================== */

.navbar-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    padding: 1rem 0;
    background-color: var(--background) !important;
}

.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

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

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

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

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

.border-border {
    border-color: var(--border-color) !important;
}

/* ==================== BOTONES ==================== */

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--foreground);
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.rounded-pill {
    border-radius: 50px !important;
}

.rounded-2 {
    border-radius: 0.5rem !important;
}

.rounded-3 {
    border-radius: 1rem !important;
}

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

.hero-section {
    background-color: var(--background);
    padding: 3rem 0;
}

.badge-primary {
    display: inline-block;
}

.badge {
    font-weight: 600;
    font-size: 0.875rem;
}

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

.bg-opacity-10 {
    opacity: 0.1;
}

.bg-warning {
    background-color: #FBBF24 !important;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-item .feature-icon {
    font-size: 1.5rem;
}

.feature-item .feature-text h6 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.hero-image-container {
    position: relative;
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.badge-circle {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

/* ==================== PRODUCTOS SECTION ==================== */

.filter-btn {
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.card {
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-body {
    padding: 1.5rem;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--light-bg);
}

.badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* ==================== NOSOTROS SECTION ==================== */

.bg-white {
    background-color: white !important;
}

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

.card.bg-primary {
    background-color: var(--primary-color) !important;
    border: none;
    color: white;
}

.card.bg-primary .text-white {
    color: white !important;
}

.text-white {
    color: white !important;
}

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

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

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    outline: none;
}

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

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

footer {
    background-color: #1F2937 !important;
    color: white;
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.brightness-200 {
    filter: brightness(2);
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

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

/* ==================== OFFCANVAS CART ==================== */

.offcanvas {
    background-color: var(--background);
}

.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
}

.offcanvas-title {
    font-weight: 700;
    color: var(--foreground);
}

.btn-close {
    color: var(--foreground);
}

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

@media (max-width: 768px) {
    .display-4 {
        font-size: 1.75rem;
    }

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

    .hero-image-container {
        margin-top: 2rem;
    }

    .floating-card {
        bottom: -10px;
        left: -10px;
        padding: 1rem;
    }

    .feature-item {
        text-align: left;
        align-items: flex-start;
    }

    .row g-4 > .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 1.5rem;
    }

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

    .hero-section {
        padding: 2rem 0;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .row g-4 > div {
        margin-bottom: 1rem;
    }
}

/* ==================== UTILIDADES ==================== */

.text-center {
    text-align: center;
}

.text-decoration-none {
    text-decoration: none !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

.gap-5 {
    gap: 3rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

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

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.small {
    font-size: 0.875rem;
}

.opacity-50 {
    opacity: 0.5;
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.top-0 {
    top: 0;
}

.start-100 {
    left: 100%;
}

.translate-middle {
    transform: translate(-50%, -50%);
}

.flex-grow-1 {
    flex-grow: 1;
}

.overflow-y-auto {
    overflow-y: auto;
}

.d-flex {
    display: flex;
}

.d-none {
    display: none;
}

.d-lg-flex {
    display: flex;
}

.d-lg-block {
    display: block;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-items-center {
    align-items: center;
}

.align-items-start {
    align-items: flex-start;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {
    .d-lg-flex {
        display: none;
    }

    .d-lg-block {
        display: none;
    }
}
