/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1F2937;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --bera-red: #DC2626;
    --bera-red-dark: #B91C1C;
    --bera-black: #1F2937;
    --bera-gray: #6B7280;
    --bera-orange: #EA580C;
    --bera-yellow: #F59E0B;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.logo-main {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--bera-red);
}

.logo-sub {
    font-size: 12px;
    color: var(--bera-gray);
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-desktop {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--bera-black);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--bera-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bera-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--bera-gray);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.icon-btn:hover {
    color: var(--bera-red);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--bera-red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--bera-gray);
    cursor: pointer;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    background: white;
    border-top: 1px solid #E5E7EB;
    padding: 20px 0;
}

.nav-link-mobile {
    text-decoration: none;
    color: var(--bera-black);
    padding: 12px 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link-mobile:hover {
    color: var(--bera-red);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(220, 38, 38, 0.6) 50%, rgba(234, 88, 12, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-brand {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(60px, 8vw, 120px);
    font-weight: 700;
    color: var(--bera-red);
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 600;
    display: block;
    margin-top: -10px;
}

.hero-description {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 32px;
    color: #E5E7EB;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-locations {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.location-tag {
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.location-merida {
    background: var(--bera-red);
}

.location-vigia {
    background: var(--bera-orange);
}

.location-tachira {
    background: var(--bera-yellow);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
}

.btn-primary {
    background: var(--bera-red);
    color: white;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    background: var(--bera-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--bera-red);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 600px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.stat-label {
    color: #D1D5DB;
    font-size: 14px;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid white;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 12px;
    background: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--bera-black);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--bera-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.product-categories {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 24px;
    border: 2px solid var(--bera-red);
    background: white;
    color: var(--bera-red);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
    background: var(--bera-red);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--bera-gray);
}

.product-info {
    padding: 24px;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--bera-black);
    margin-bottom: 8px;
}

.product-specs {
    color: var(--bera-orange);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
    background: var(--gray-100);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid var(--bera-orange);
}

.product-description {
    color: var(--bera-gray);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--bera-red);
    margin-bottom: 16px;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: var(--bera-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart:hover {
    background: var(--bera-red-dark);
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.service-card {
    text-align: center;
    padding: 48px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: var(--gray-50);
    transform: translateY(-4px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--bera-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: white;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--bera-black);
    margin-bottom: 16px;
}

.service-description {
    color: var(--bera-gray);
    line-height: 1.6;
}

/* Team Bera Section */
.team-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bera-black) 0%, var(--bera-red) 100%);
    color: white;
}

.team-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    margin-top: 64px;
}

.team-feature {
    text-align: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.team-feature:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
}

.team-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.team-feature h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.team-feature p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.contact-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.contact-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--bera-red);
    margin-bottom: 24px;
    text-align: center;
    border-bottom: 2px solid var(--bera-red);
    padding-bottom: 12px;
}

.contact-info p {
    margin-bottom: 12px;
    color: var(--bera-gray);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.contact-info i {
    color: var(--bera-red);
    width: 20px;
    text-align: center;
}

.additional-locations {
    margin-top: 64px;
    text-align: center;
}

.locations-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--bera-black);
    margin-bottom: 48px;
}

.services-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-location {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--bera-orange);
    transition: all 0.3s ease;
}

.service-location:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-left-color: var(--bera-red);
}

.service-location h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--bera-red);
    margin-bottom: 16px;
}

.service-location p {
    color: var(--bera-gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-location i {
    color: var(--bera-orange);
    width: 16px;
}

/* Footer */
.footer {
    background: var(--bera-black);
    color: white;
    padding: 64px 0 24px;
}

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

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(1.2);
}

.footer-description {
    color: #9CA3AF;
    margin-bottom: 24px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bera-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--bera-red-dark);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--bera-red);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.badge {
    background: var(--bera-red);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
    color: #9CA3AF;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--bera-black);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--bera-gray);
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid #E5E7EB;
}

.cart-total {
    text-align: center;
    margin-bottom: 16px;
    font-size: 18px;
}

.empty-cart {
    text-align: center;
    color: var(--bera-gray);
    padding: 48px 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-15px);
    }
    70% {
        transform: translateY(-7px);
    }
    90% {
        transform: translateY(-3px);
    }
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(16px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop,
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-mobile.active {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .products-grid,
    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
