/*
  style.css
  LATAM STORE Custom Stylesheet
*/

:root {
    --color-primary: #2DD4BF;
    --color-secondary: #4ADE80;
    --color-text-dark: #1a202c;
    --color-text-light: #4a5568;
    --color-bg-light: #f7fafc;
    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-light);
    background-color: #fff;
    padding-top: 80px; /* Offset for fixed navbar */
}

a {
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-text-dark);
    font-weight: 700;
}

/* --- Sticky Header & Navigation --- */
.navbar {
    transition: background-color 0.4s ease-out, padding 0.4s ease-out;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-brand img {
    height: 40px;
    transition: all 0.3s ease;
}

.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

.nav-link {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.navbar-nav {
    align-items: center;
}

.contact-btn {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: white !important;
    border-radius: 8px;
    padding: 0.6rem 1.5rem !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 600;
}
.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 212, 191, 0.4);
}
.navbar-brand-mobile {
    display: none;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.navbar-brand-mobile img { height: 35px; }


/* --- Breadcrumb Styles --- */
.breadcrumb-nav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: var(--color-bg-light);
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--color-primary);
    font-weight: 600;
}

.breadcrumb-item.active {
    color: var(--color-text-light);
}


/* --- Hero Section (Index) --- */
.hero-section .hero-grid {
    height: 600px;
    display: flex;
    gap: 1.5rem;
}

.hero-main { flex: 2; }
.hero-side { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
}

.hero-side .hero-card {
    flex-grow: 1; /* Fix for cards to expand */
}

.hero-card {
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
    transition: transform 0.4s ease;
}
.hero-card:hover { transform: scale(1.03); }

.hero-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

.hero-card .content { position: relative; z-index: 2; }
.hero-card h2 { color: white; font-size: 2.5rem; }
.hero-card.side-card h2 { font-size: 1.5rem; }
.hero-card a { color: white; font-weight: 600; }
.hero-card a:hover { opacity: 0.9; }

/* --- Shared Sections --- */
.section-padding { padding: 5rem 0; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.2rem; max-width: 700px; margin: 0 auto 3rem auto; }

/* --- Footer --- */
.main-footer {
    background-color: var(--color-text-dark);
    color: #a0aec0;
    padding: 4rem 0 2rem 0;
}
.main-footer .footer-logo { height: 45px; margin-bottom: 1.5rem; }
.main-footer h5 { color: white; }
.main-footer .list-unstyled li { margin-bottom: 0.5rem; }
.main-footer .list-unstyled li a { color: #a0aec0; transition: color 0.3s; }
.main-footer .list-unstyled li a:hover { color: var(--color-primary); }
.footer-bottom { border-top: 1px solid #4a5568; padding-top: 2rem; margin-top: 2rem; }

/* --- Contact Page --- */
.contact-info-box {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: 12px;
    height: 100%;
}
.contact-info-box a {
    color: var(--color-text-dark);
    transition: color 0.3s;
}
.contact-info-box a:hover {
    color: var(--color-primary);
}
.contact-info-box i {
    color: var(--color-primary);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* --- Category & Generic Pages --- */
.page-header {
    height: 40vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.page-header-content { position: relative; z-index: 2; }
.page-header-content h1 { color: white; font-size: 3.5rem; font-weight: 800; }

.product-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.product-card-img-top {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.product-card .card-body {
    flex-grow: 1;
}

/* --- WhatsApp Button --- */
.whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.whatsapp-flotante:hover {
    transform: scale(1.1);
}
.whatsapp-flotante img {
    width: 35px;
    height: 35px;
}


/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    body { padding-top: 72px; }
    .navbar-collapse {
        background-color: #fff;
        padding: 1.5rem;
        margin-top: 1rem;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }
    .navbar-nav .contact-btn {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    .navbar-brand-mobile { display: block; }

    .hero-section .hero-grid {
        height: auto;
        flex-direction: column;
    }
    .hero-main, .hero-side {
      flex: none;
      width: 100%;
    }
    .hero-main .hero-card {
        height: 400px;
    }
    .hero-side .hero-card {
        height: 200px;
    }
}
@media (max-width: 768px) {
    .page-header-content h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; }
}