:root {
    /* LTH Corporate Palette */
    --primary-color: #ffcc00;    /* LTH Yellow/Gold */
    --primary-dark: #e6b800;
    --secondary-color: #1a1a1a;  /* Deep Black */
    --accent-color: #d10000;     /* Alert Red for promos */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f4f4;
    --bg-white: #ffffff;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Containers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Nav */
header {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid var(--primary-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a:not(.btn-primary) {
    padding: 8px 15px;
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(255, 204, 0, 0.1);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: url('/img/home_banner.png') center/contain no-repeat;
    color: var(--text-light);
    text-align: center;
    padding: 20px 0;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Products Grid */
.section-title {
    text-align: center;
    margin: 3rem 0;
    font-size: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    background: #eee;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-body h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.card-body p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.specs {
    font-size: 0.85rem;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

/* Promotions */
.promo-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    position: absolute;
    top: 10px;
    right: 10px;
}

.promo-card {
    border: 2px solid var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 40px 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-about h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Main Content Grid Layout */
.main-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .main-content-grid {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }

    #productos {
        grid-column: 1;
    }

    section:has(h2:contains("Promociones Actuales")) {
        grid-column: 2;
        margin-bottom: 0;
    }
}

/* Adjusting spacing for the grid sections */
#productos, section {
    margin: 0;
}

/* Ensure section titles look good in grid */
.main-content-grid .section-title {
    margin-top: 1rem;
}

