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

body {
    font-family: 'Muli', 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #666;
}

/* Header y Navegación */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .header-container {
        justify-content: flex-start;
        gap: 1rem;
    }

    nav {
        width: 100%;
        position: static;
    }
}

.logo img {
    height: 60px;
    width: auto;
}

nav {
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

nav a:hover {
    color: #0066cc;
}

.dropdown {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #ffffff;
    padding: 0.25rem 0;
    border-radius: 10px;
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.dropdown li {
    padding: 0;
}

.dropdown a {
    display: block;
    padding: 0.25rem 1rem;
    font-size: 1rem;
    line-height: 1.2;
    color: #444;
    white-space: nowrap;
}

.dropdown a:hover {
    background: #f2f6fb;
    color: #0066cc;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    background: #ffffff url('../images/banner-bg.jpg') center center / cover no-repeat;
    background-color: #ffffff;
    color: #666;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center center;
    z-index: 1;
    margin-bottom: -50px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #222;
    font-weight: 700;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
    font-weight: 400;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: #cc0000;
}

/* Productos Section */
.productos {
    padding: 4rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    margin-top: -50px;
    z-index: 10;
}

.productos h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #0066cc;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.producto-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
    z-index: 2;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.producto-card img {
    width: 100%;
    height: auto;
    min-height: 250px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 10px;
    transition: transform 0.4s ease, scale 0.4s ease;
    transform-origin: center center;
}

.producto-card:hover img {
    transform: scale(1.05) translateY(-3px);
}

.producto-card-content {
    padding: 1.5rem;
}

.producto-card h3 {
    color: #0066cc;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.producto-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.producto-card .socios {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* Estadísticas */
.estadisticas {
    background: rgba(176, 224, 230, 0.5);
    padding: 4rem 1rem;
    border-bottom: 3px solid rgba(176, 224, 230, 0.8);
}

.estadisticas-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.estadistica-item {
    padding: 1rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.estadistica-item .numero {
    font-size: 4rem;
    font-weight: 900;
    color: #ff0000;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.estadistica-item .label {
    font-size: 1.2rem;
    color: #222;
    margin-top: 0.5rem;
    font-weight: 500;
}

.estadisticas-texto {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    color: #222;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Footer */
footer {
    background: #B0E0E6;
    color: #222;
    padding: 3rem 1rem 1rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #222;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.footer-icon {
    color: #ff0000;
    font-size: 0.9rem;
    display: inline-block;
    margin-right: 0.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.footer-section a:hover {
    color: #0066cc;
}

.footer-section p {
    color: #222;
    line-height: 1.8;
    font-size: 1.1rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    margin-top: 2rem;
    color: #222;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        gap: 0.75rem;
        align-items: flex-start;
    }

    nav ul.active {
        display: flex;
    }

    .dropdown {
        position: static;
        min-width: 100%;
        box-shadow: none;
        padding: 0.35rem 0 0.35rem 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    nav ul.active .dropdown {
        display: block;
    }

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

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

    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .estadisticas-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .estadistica-item .numero {
        font-size: 3rem;
    }

    .estadistica-item .numero {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    .logo img {
        height: 48px;
    }

    .footer-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .estadisticas-container {
        grid-template-columns: 1fr;
    }
    
    .estadistica-item .numero {
        font-size: 2.5rem;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .header-container {
        padding: 1rem;
    }
}
