:root {
    --primary-color: #017347;
    --secondary-color: #ffbc0d;
    --tertiary-color: #3da5dd;
    --text-dark: #333333;
    --text-light: #ffffff;
    --font-primary: 'Inter', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Top Bar (Row 1) */
.top-bar {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 8px 0;
}

.top-bar a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 10px;
}

/* Main Header (Row 2) */
.main-header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.navbar-brand img {
    max-height: 60px; /* Adjust based on actual logo */
}

.nav-link {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
}

/* Category Menu (Row 3) */
.category-nav {
    background-color: var(--tertiary-color);
    padding: 10px 0;
}

.category-nav .nav-link {
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.category-nav .nav-link:hover {
    color: var(--secondary-color);
    background-color: rgba(0,0,0,0.1);
    border-radius: 4px;
}

/* Footer */
.footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Feature Cards */
.feature-box {
    text-align: center;
    padding: 30px;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Sticky Header */
.sticky-top {
    z-index: 1020;
}

/* Hero Banner Slider */
.hero-banner {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.hero-banner .carousel,
.hero-banner .carousel-inner,
.hero-banner .carousel-item {
    min-height: 500px;
}

.hero-banner .carousel-item {
    position: relative;
}

.hero-banner .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.hero-banner .hero-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1rem;
}

.hero-banner .carousel-control-prev-icon,
.hero-banner .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 1.5rem;
}

/* Animaciones del primer slide (inicio ocultos) */
.hero-banner .hero-title,
.hero-banner .hero-subtitle,
.hero-banner .hero-cta,
.hero-banner .hero-store-title {
    opacity: 0;
}

.hero-banner .carousel-item.active .hero-title {
    animation: heroFadeInUp 0.8s ease-out forwards;
}

.hero-banner .carousel-item.active .hero-subtitle {
    opacity: 0;
    animation: heroFadeInUp 0.6s ease-out 0.3s forwards;
}

.hero-banner .carousel-item.active .hero-cta {
    opacity: 0;
    animation: heroFadeInUp 0.6s ease-out 0.5s forwards;
}

.hero-banner .carousel-item.active .hero-store-title {
    animation: heroFadeInUp 0.8s ease-out forwards;
}

.hero-banner .carousel-item:not(.active) .hero-title,
.hero-banner .carousel-item:not(.active) .hero-subtitle,
.hero-banner .carousel-item:not(.active) .hero-cta,
.hero-banner .carousel-item:not(.active) .hero-store-title {
    opacity: 0;
}

/* Sombra en títulos del banner para mejor legibilidad */
.hero-banner .hero-title,
.hero-banner .hero-store-title {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
