/* =========================================
   PALETA DE COLORES (Logo RGB)
   ========================================= */
:root {
    --primary: #00B0F0;  /* Cyan/Azul Claro */
    --accent: #E6007E;   /* Magenta/Fucsia */
    --dark: #1A2530;     /* Azul muy oscuro */
    --light: #F8F9FA;
    --dark-text: #333333;
    --white: #FFFFFF;
}

/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }
.text-center { text-align: center; }
.bg-light { background: var(--light); }
.text-white { color: var(--white); }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary);
    font-weight: 800;
}
.text-white.section-title { color: var(--white); }

/* HEADER Y NAVEGACIÓN (CON COLOR AZUL OSCURO FIJO) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--dark); /* Cambiado al color oscuro de tu paleta */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    padding: 15px 0; 
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo-img-nav {
    max-height: 60px; 
    width: auto;
    /* Resplandor blanco sutil para que el texto negro del logo no se pierda en el fondo oscuro */
    filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.9));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--white); /* Textos del menú en blanco para resaltar sobre el azul oscuro */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--primary); }

.menu-toggle {
    display: none;
    color: var(--white); /* Icono móvil en blanco */
    font-size: 1.8rem;
    cursor: pointer;
}

/* HERO SLIDER */
.hero {
    margin-top: 90px; 
    height: calc(100vh - 90px); 
    position: relative;
    overflow: hidden;
}

.slider, .slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    /* Alinea el contenido a la derecha de la pantalla */
    justify-content: flex-end; 
    padding-right: 8%; 
}

.slide.active { opacity: 1; z-index: 1; }

.slide-content {
    color: var(--white);
    max-width: 700px;
    padding: 20px;
    /* Alinea el texto a la derecha */
    text-align: right; 
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* SECCIÓN EXPERIENCIA (QUIÉNES SOMOS) */
.historia-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
}

.historia-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
}

/* BOTONES GLOBALES */
.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 0, 126, 0.4); 
}

.btn-primary:hover {
    background: var(--primary); 
    box-shadow: 0 4px 15px rgba(0, 176, 240, 0.4);
    transform: translateY(-3px);
}

/* CATÁLOGO TABS */
.catalog-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }

.grid-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.catalog-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.catalog-item:hover { transform: translateY(-10px); }
.catalog-item img { width: 100%; height: 250px; object-fit: cover; display: block; }
.catalog-info { padding: 20px; text-align: center; }
.catalog-info h4 { color: var(--primary); font-size: 1.3rem; margin-bottom: 5px; }

/* PRODUCTOS MÁS VENDIDOS (DESTACADOS) */
.grid-destacados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 25px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.p-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.p-info { padding: 15px; }
.p-info h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 5px; }
.p-info p { font-size: 0.9rem; color: #555; margin-bottom: 15px; }

.btn-buy {
    background: #25D366; /* Verde WhatsApp */
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}

.btn-buy:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* CARRUSEL CLIENTES */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    background: var(--white);
    padding: 30px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-text);
    margin: 0 50px;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* CONTACTO Y FORMULARIO */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; align-items: center; }

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    color: var(--dark-text);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
}

.social-links { display: flex; gap: 20px; margin: 20px 0; }
.social-links a {
    color: var(--white);
    background: var(--accent);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: 0.3s;
    text-decoration: none;
}
.social-links a:hover { background: var(--primary); transform: scale(1.1); }

.footer {
    background: #0d131a;
    color: #aaa;
    text-align: center;
    padding: 25px;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; }
    .slide-content h2 { font-size: 2.5rem; }
    .historia-text { text-align: center; }
}

@media (max-width: 768px) {
    .section { padding: 50px 0; }
    .section-title { font-size: 2rem; }
    
    .slide {
        justify-content: center;
        padding-right: 0;
    }
    .slide-content {
        text-align: center;
    }
    .slide-content h2 { font-size: 2rem; }
    .slide-content p { font-size: 1.1rem; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 80px; 
        left: 0;
        width: 100%;
        background: var(--dark); /* El menú móvil ahora también tiene fondo oscuro */
        flex-direction: column;
        padding: 10px 0;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    }
    .nav-links.active { display: flex; }
    .nav-links a { 
        color: var(--white); 
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .menu-toggle { display: block; }
}