:root {
    --blue-main: #2c72d4;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #fdfdfd;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    background-color: var(--blue-main);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
}

.logo img { height: 60px; margin-right: 10px; }

/* --- Header  --- */
nav ul { 
    list-style: none; 
    display: flex; 
    gap: 15px; 
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: rgba(255, 255, 255, 0.85); 
    text-decoration: none;
    font-weight: 500; 
    font-size: 13px;
    letter-spacing: 1.2px;
    padding: 10px 15px;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

/* Underline animado para menus*/
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Estado Hover */
nav ul li a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1); 
    border-radius: 4px;
}

nav ul li a:hover::after {
    width: 60%; 
}

/* Estado Activo */
nav ul li a.active {
    color: #ffffff;
    font-weight: 700;
}

nav ul li a.active::after {
    width: 60%;
    background-color: #fff;
}

/* Home Section */
.home {
    position: relative;
    height: 100vh; 
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    
    /* Imagen de fondo adaptable */
    background-image: url('images/portada.jpg');
    background-size: cover; /* Cubre toda la pantalla sin deformar */
    background-position: center center; /* Centra la imagen en celulares */
    background-repeat: no-repeat;
}



.home::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Esto mantiene el filtro oscuro */
    z-index: 2;
}

.home-content-wrapper { position: relative; z-index: 3; width: 100%; }

.home-text h1 {
    font-size: 3.8rem;
    color: white;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.home-text p { color: white; font-size: 1.3rem; max-width: 600px; margin-bottom: 30px; }

/* --- PORTADA  CELULARES--- */
@media (max-width: 768px) {

    .home {
       height: auto; 
        min-height: auto; 
        padding-top: 130px; 
        padding-bottom: 40px; 
        background-position: left center;
    }
    
    .home-text h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    
    .home-text p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /*  botones uno debajo del otro */
    .home-text .btn-main {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
        box-sizing: border-box; 
    }
}


.btn-main {
    display: inline-block;
    background-color: var(--blue-main);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

/*Scroll Indicator Animado  */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 10px;
    letter-spacing: 2px;
}

.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid white;
    border-radius: 20px;
    margin-top: 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll-anim 1.5s infinite;
}

@keyframes scroll-anim {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}
/*  SECCIÓN QUIENES SOMOS  */
.nosotros {
    padding: 100px 0 20px 0;
    background-color: white;
    text-align: center;
}

.nosotros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    margin-top: 40px;
}

.nosotros-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}

.circle-step {
    width: 60px;
    height: 60px;
    background-color: var(--blue-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(44, 114, 212, 0.3);
}

.nosotros-item p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.nosotros-cta {
    margin-top: 20px;
}

.shadow-btn {
    box-shadow: 0 10px 20px rgba(44, 114, 212, 0.4);
    padding: 18px 50px;
    text-transform: none; 
}

/* Ajuste Responsivo para esta sección */
@media (max-width: 992px) {
    .nosotros-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .nosotros-grid {
        grid-template-columns: 1fr;
    }
}
/* SECCIÓN PRODUCTOS */
.productos {padding: 20px 0 100px 0;
     background-color: var(--bg-light); }

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 40px;
}

.products-container { display: flex; flex-direction: column; gap: 80px; }

.product-row {
    display: flex;
    align-items: center;
    gap: 60px;
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}
.product-row:hover {

    box-shadow: 0 20px 50px rgba(44, 114, 212, 0.15);
    border: 3px solid rgba(44, 114, 212, 0.2);
    transform: translateY(-5px);
}


.product-row:nth-child(even) { flex-direction: row-reverse; }

.product-image { flex: 1; text-align: center; }

.product-image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.product-row:hover .product-image img { transform: scale(1.08); }

.product-text { flex: 1.2; }

.category {
    color: var(--blue-main);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 10px;
}

.product-text h3 { font-size: 2.4rem; margin: 0 0 20px; color: var(--text-dark); }

.features { list-style: none; padding: 0; margin-bottom: 30px; }

.features li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
    font-weight: 500;
}

.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue-main);
}



.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--blue-main);
    color: var(--blue-main);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-outline:hover { background: var(--blue-main); color: white; }


/* WhatsApp icono flotante */
.whatsapp-float {
    position: fixed;
    bottom: 0px; 
    right: 10px;  
    width: 120px;
    height: 120px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float img {
    width: 100%; 
    height: auto;
    display: block;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2)); 
}
.whatsapp-float:hover {
    transform: scale(1.1); 
}

/* Responsive */
@media (max-width: 992px) {
    .product-row, .product-row:nth-child(even) { flex-direction: column; text-align: center; padding: 30px; }
    .hero-text h1 { font-size: 2.5rem; }
}

/* --- SECCIÓN Mapa y horarios --- */
.mapa {
    padding: 100px 0;
    background-color: white;
}

.mapa-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.map-container {
    flex: 2;
    border-radius: 15px;
    overflow: hidden;
    line-height: 0; 
}

.mapa-info {
    flex: 1;
    text-align: left;
}

.mapa-info h3 {
    font-size: 2rem;
    color: var(--blue-main);
    margin-bottom: 20px;
}

.mapa-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Ajuste Responsivo para el Mapa */
@media (max-width: 992px) {
    .mapa-wrapper {
        flex-direction: column;
        padding: 20px;
    }
    
    .map-container, .mapa-info {
        width: 100%;
    }

    .mapa-info {
        text-align: center;
    }
}
/*  SECCIÓN FORMULARIO  */
.email-section {
    padding: 60px 0 100px;
    background-color: white;
}

.form-card {
    background: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
    border: 1px solid rgba(44, 114, 212, 0.1);
    text-align: center;
}

.form-text h3 {
    font-size: 2.2rem;
    color: var(--blue-main);
    margin-bottom: 10px;
}

.form-text p {
    margin-bottom: 40px;
    color: var(--text-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
    box-sizing: border-box; 
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue-main);
    box-shadow: 0 0 8px rgba(44, 114, 212, 0.2);
}

.contact-form button {
    cursor: pointer;
    border: none;
    width: 100%;
    font-size: 1.1rem;
}

/* Responsivo para el formulario */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-card {
        padding: 30px 20px;
    }
}
/* Ajustes para el Header en móviles */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column; 
        gap: 15px;
    }

    nav ul {
        gap: 10px; 
        padding: 0;
        flex-wrap: wrap; 
        justify-content: center;
    }

    nav ul li a {
        font-size: 12px; 
        padding: 5px 10px;
    }

    .logo img {
        height: 50px; 
    }
}

.nosotros-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 40px;
}

.distribuidores-promo {
    background: rgba(44, 114, 212, 0.05); 
    padding: 20px 30px;
    border-radius: 15px;
    border: 1px dashed var(--blue-main); 
    max-width: 500px;
    transition: transform 0.3s ease;
}

.distribuidores-promo:hover {
    transform: scale(1.02);
    background: rgba(44, 114, 212, 0.08);
}

.distribuidores-promo p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.promo-link {
    display: block;
    color: var(--blue-main);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s;
}

.promo-link:hover {
    color: #1a4a8e; 
    text-decoration: underline;
}

/* Ajuste para Celulares */
@media (max-width: 768px) {
    .distribuidores-promo {
        margin: 0 15px;
        padding: 15px;
    }
    
    .promo-link {
        font-size: 1.1rem; 
    }
}

/* --- Estilos para el Dropdown de productos --- */
.dropdown {
    position: relative;
    display: inline-block;
}

/* El submenú oculto por defecto */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--blue-main);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    list-style: none;
    top: 100%; 
    left: 0;
}

/* Estilos de los links dentro del submenú */
.dropdown-content li a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 12px;
    text-align: left;
    transition: background 0.3s;
    box-sizing: border-box;
}

.dropdown-content li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    width: 100%; 
}

/* Mostrar el menú al pasar el mouse*/
.dropdown:hover .dropdown-content {
    display: block;
}

/* Pequeña flecha indicadora */
.arrow {
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* --- Ajustes para Dispositivos Móviles (Media Query) --- */
@media (max-width: 768px) {
    /* Permitir que el submenú se vea bien en la lista apilada */
    .dropdown-content {
        position: static; /* Se despliega hacia abajo empujando el resto */
        width: 100%;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1); 
        border-radius: 0;
    }


    .dropdown:active .dropdown-content,
    .dropdown:hover .dropdown-content {
        display: block;
    }
    
    nav ul {
        flex-direction: column; 
        align-items: center;
    }
    
    .nav-wrapper {
        padding: 10px 0;
    }
}


/*Formulario de contacto*/
/* Agrega esto a tu archivo CSS para que el selector se vea igual a los inputs */
.contact-form select {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: var(--text-gray);
    background-color: white;
    appearance: none; /* Elimina el estilo por defecto del sistema */
}

.contact-form select:focus {
    outline: none;
    border-color: var(--blue-main);
    box-shadow: 0 0 8px rgba(44, 114, 212, 0.2);
}