:root {
    --primary-color: #E31E24;
    --secondary-color: #333333;
    --bg-color: #fdfdfd;
    --text-color: #2D3436;
    --light-text: #636E72;
    --white: #ffffff;
    --accent-gray: #f2f2f2;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

section {
    padding: 100px 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

nav.scrolled {
    padding: 10px 0;
}

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

.navbar-logo img {
    height: 45px;
    width: auto;
    display: block;
    transition: var(--transition);
}

nav.scrolled .navbar-logo img {
    height: 38px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #ffffff 0%, #f0f0f0 100%);
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: url('../assets/pattern.svg');
    /* Decorative background */
    opacity: 0.05;
    pointer-events: none;
}

.hero-content {
    z-index: 1;
}

.hero-logo {
    max-width: 500px;
    width: 90%;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0;
    transform: scale(0.9);
    animation: heroIn 1s ease-out forwards;
}

@keyframes heroIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(227, 30, 36, 0.2);
}

/* Empresa */
#empresa {
    padding: 140px 0;
    /* Aumento de separación arriba y abajo */
}

.empresa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.empresa-image {
    width: 60%;
    /* Reducido un 40% del ancho original */
    margin-left: auto;
    /* Centrado dentro de su columna de grid */
    margin-right: auto;
    aspect-ratio: 4 / 5;
    /* Proporción vertical para optimizar la fachada */
    background: #f8f8f8;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.store-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Prioriza mostrar el cartel y la parte superior del local */
    display: block;
    /* Optimización de nitidez y filtros solicitados */
    image-rendering: -webkit-optimize-contrast;
    filter: brightness(1.1) contrast(1.15) saturate(0.85) grayscale(0.2);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

.empresa-image:hover .store-image {
    filter: brightness(1.1) contrast(1.1) saturate(1) grayscale(0);
    transform: scale(1.05);
}

.empresa-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

/* Productos */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(227, 30, 36, 0.1);
    border-color: rgba(227, 30, 36, 0.2);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    background: rgba(227, 30, 36, 0.05);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 20px;
    display: inline-block;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.category-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.category-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Contacto */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.info-box {
    background: var(--accent-gray);
    padding: 40px;
    border-radius: 20px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.info-item h4 {
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--light-text);
}

.info-item p {
    font-weight: 600;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    background: #e5e3df;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 80px 0 50px 0;
    text-align: center;
    border-top: 5px solid var(--primary-color);
    margin-top: 50px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Base Responsive */
@media (max-width: 768px) {

    .empresa-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
    }

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

    .nav-links {
        display: none;
    }
}