/* Variables de Color */
:root {
    --primary: #067AD4;
    --light-blue: #BCE0EF;
    --white: #ffffff;
    --text-dark: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Contenedor limitado a 1280px */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

/* 1. Barra Superior */
.top-bar {
    height: 30px;
    background-color: #1F509F;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* 2. Header */
.main-header {
    background-color: #10518D;
}
.main-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center; /* Centra el menú horizontalmente */
    align-items: center;
    gap: 40px; /* Espacio entre los botones del menú */
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

/* Animación de la línea inferior (Hover) */
.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary); /* El azul #067AD4 */
    transition: width 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary);
}

.main-nav ul li a:hover::after {
    width: 100%;
}
/* --- Estilos para PC --- */
#menu-toggle, .hamburger {
    display: none; /* Oculto en PC */
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

/* --- Estilos para Celular (Media Query) --- */


.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 150px;
}
.logo {
    height: 150px;
    width: auto;
    
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.whatsapp {
  /*position: absolute;*/
  right: 0px;
  width: 100%;
  border: 3px solid green;
  padding: 5px;
  text-align: center;
  
  height: 150px;


  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

/* 3. Slider */
.slider {
    width: 100%;
    
    /* Definimos la altura fija que pediste para que la imagen tenga de donde agarrarse */
    /*height: 900px; */
    margin: 0 auto;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Esto asegura que nada se salga de los 600px */
}
.slider-content{
    width: 100%;
}
.slider img {
   width: 100%;
    
    object-fit: cover; 
    display: block;
    animation: aparecer 1.5s ease-in-out;
}

/* 4. Grids de 4 columnas */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: var(--white);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 15px;
}
.card img{width: 250px;}

.img-placeholder {
    background: var(--white);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #01B1F3;
    border-radius: 15px;
}
/* 5. División 2 campos (400px / Texto) */
.split-2 {
    display: flex;
    gap: 20px;
}
.fixed-box {
    width: 400px;
    background: var(--light-blue);
    padding: 50px;
    border-radius: 15px;
}
.search-box input {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 20px 0 0 20px; /* Redondeo solo a la izquierda */
    outline: none;
    width: 250px;
}

.search-box button {
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    border-radius: 0 20px 20px 0; /* Redondeo solo a la derecha */
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background-color: #055ba3; /* Un azul un poco más oscuro al pasar el mouse */
}
.text-box {
    flex: 1;
    background: var(--white);
    padding: 20px;
}

/* 6. Barra Ventas */
.sales-bar {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 20px;
    padding-bottom: 5px;
}
.sales-nav a {
    margin-left: 15px;
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
}

/* 7. Newsletter */
.newsletter {
    background: #f4f4f4;
    text-align: center;
    padding: 40px 0;
    background-color: #10518D;
}
.boletin {
  /*position: absolute;*/
  right: 0px;
  width: 100%;
  max-width: 1280px;
  height: 150px;
  border: 3px solid Blue;
  padding: 5px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}
/*----------------------*/
.boletin input {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px; /* Redondeo completo */
    margin-right: 10px;
    width: 300px;
    outline: none;
}

.boletin button {
    padding: 12px 25px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 25px; /* Redondeo completo */
    cursor: pointer;
    font-weight: bold;
}

/* 8. Footer */
.main-footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 30px 0;
}
.grid-product {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
/* Contenedor de la tarjeta de producto */
.product-card {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 12px; /* Bordes redondeados que pediste */
    display: flex; /* Alinea imagen e info en fila */
    align-items: center;
    padding: 10px;
    gap: 15px; /* Espacio entre imagen y texto */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

/* Efecto al pasar el mouse (Animación simple) */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Contenedor de la imagen */
.product-img {
    flex: 0 0 100px; /* No crece, no se encoge, mide 100px fijo */
}

.product-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

/* Contenedor de textos */
.product-info {
    display: flex;
    flex-direction: column; /* Apila Nombre, Detalle y Precio */
    justify-content: center;
}

.product-name {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.product-detail {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

/* 1x3*/
.product-showcase {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* --- Caja Grande (400px) --- */
.main-product {
    width: 400px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center; /* Centra el título */
}

.main-product .img-container {
    width: 300px;
    height: 300px;
    margin: 0 auto 15px; /* Centra la imagen horizontalmente */
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin: 10px 0;
}

/* --- Contenedor de 3 cuadros pequeños --- */
.side-products {
    flex: 1; /* Ocupa el resto del espacio */
    display: flex;
    flex-direction: column; /* Los pone uno debajo del otro */
    gap: 10px;
}

.small-card {
    background: #ffffff;
    display: flex; /* Imagen a la izquierda, texto a la derecha */
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.small-card img {
    width: 80px; /* Tamaño pequeño para la imagen */
    height: 80px;
    object-fit: contain;
    margin-right: 15px;
}

.small-info {
    display: flex;
    flex-direction: column;
}

.small-info .name {
    font-weight: bold;
    font-size: 1rem;
}

.small-info .price {
    color: #2ecc71; /* Un verde suave para el precio */
    font-weight: bold;
}

.main-footer {
    background-color: var(--primary); /* El azul #067AD4 */
    color: var(--white);
    padding: 60px 0 0 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--light-blue);
    display: inline-block;
    padding-bottom: 5px;
}
.footer-col p {
    color: #ffffff;          /* Color blanco */
    text-align: left;        /* Alineado a la izquierda */
    line-height: 1.6;        /* Un poco de espacio entre líneas para que se lea mejor */
    margin-bottom: 15px;     /* Espacio abajo para que no se pegue al siguiente elemento */
    font-size: 0.95rem;      /* Tamaño de letra equilibrado */
}
.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    text-align: left;        /* Alineado a la izquierda */
}

.footer-col a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s, padding-left 0.3s;
}

/* Animación simple al pasar el mouse por los links */
.footer-col a:hover {
    opacity: 0.7;
    padding-left: 5px;
}

.social-links {
    margin-top: 20px;
    font-weight: bold;
}

.social-links a {
    margin: 0 5px;
}

/* Barra inferior de Copyright */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2); /* Un tono más oscuro que el fondo */
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--light-blue);
    text-decoration: none;
}

.contact-section {
    padding: 50px 20px;
    background-color: #ffffff;
    border-radius: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 40px;
    align-items: center;
}

/* Título */
.form-side h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 2rem;
}

/* Estilos de los inputs */
.form-side form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    width: 90%;
    display: flex;
    gap: 15px;
}

.form-side input, 
.form-side textarea {
    width: 90%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px; /* Redondeado sutil */
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-side input:focus, 
.form-side textarea:focus {
    border-color: var(--primary);
}

/* Botón Enviar */
.btn-send {
    width: 90%;
    background-color: var(--primary);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    
}

.btn-send:hover {
    background-color: #0566b3;
}

/* Columna Imagen */
.image-side {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-side img {/*imagen formulario contactenos*/
    width: 80%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* ################################################################ */
/* Layout Principal */
.store-layout {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Sidebar (Izquierda) */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    height: fit-content;
}

.category-block {
    margin-bottom: 20px;
}

.category-block h4 {
    color: var(--primary);
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.category-block ul {
    list-style: none;
}

.category-block ul li a {
    text-decoration: none;
    color: #555;
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
}

.category-block ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Rejilla de Productos (Derecha) */
.products-display {
    flex: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en PC */
    gap: 25px;
}

.product-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.product-img img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.p-name {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.p-price {
    font-weight: bold;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Botón Carrito Verde */
.btn-cart {
    background-color: #27ae60; /* Color Verde */
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
}

.btn-cart:hover {
    background-color: #219150;
}

/* --- RESPONSIVIDAD --- */

/* Tablets (992px o menos) */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    }
}

/* Celulares (768px o menos) */
@media (max-width: 768px) {
    .store-layout {
        flex-direction: column; /* El menú se pone arriba de los productos */
    }
    
    .sidebar {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: 1fr; /* 1 columna */
    }
}

/* --- RESPONSIVIDAD (Media Queries) --- */

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); } /* Tablets: 2 columnas */
    .slider { height: 400px; }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en Tablets */
    }
    
        
    
}

@media (max-width: 480px) {
    .header-flex { flex-direction: column; height: auto; padding: 20px; }
    .split-2 { flex-direction: column; }
    .fixed-box { width: 100%; padding: 10px;}
    .search-box input {width: 200px;}
    /*.grid-4 { grid-template-columns: 1fr;} /* Celulares: 1 columna */
    .grid-product { grid-template-columns: 1fr;} /* Celulares: 1 columna */
    .grid-4 { grid-template-columns: repeat(2, 1fr); } /* Tablets: 2 columnas */
    .card img{width: 150px;}
    .img-placeholder{width: 150px;}
    .slider { width: 100%; }
    
    .product-showcase {        flex-direction: column; /* En celular, la caja grande arriba y los pequeños abajo */    }
    .main-product {        width: 100%; /* Deja de ser de 400px para ocupar todo el ancho del celular */    }
    
    .footer-grid {
        grid-template-columns: 1fr; /* 1 columna en Celulares */
        text-align: center;
    }
    
    .footer-col h4 {
        display: block;
    }
    
    .contact-grid {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
    }
    
    .input-group {
        flex-direction: column; /* Nombre y Email uno abajo de otro en móvil */
    }

    .image-side {
        order: -1; /* Opcional: pone la imagen arriba del formulario en móviles */
        margin-bottom: 20px;
        
        
    }
    
    .nav-container {
        justify-content: space-between; /* Logo/Espacio a un lado, hamburguesa al otro */
        padding: 10px 20px;
        position: relative;
    }

    .hamburger {
        display: flex; /* Ahora sí aparece el icono */
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: var(--primary);
    }

    /* ESTO ES LO IMPORTANTE: Ocultamos el menú con altura 0 y opacidad */
    .nav-links {
        display: flex; /* Cambiamos de none a flex */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Se despliega justo debajo de la barra */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        
        max-height: 0; /* Altura cero = oculto */
        overflow: hidden; /* No deja ver lo que hay dentro */
        opacity: 0;
        transition: all 0.4s ease; /* Para que abra suavemente */
        
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    /* Cuando el checkbox esté marcado, el menú se expande */
    #menu-toggle:checked ~ .nav-links {
        max-height: 500px; /* Un valor lo suficientemente alto */
        opacity: 1;
        padding: 20px 0;
    }

    /* Centramos los links en el menú móvil */
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    .main-nav-h{display: none; /* Oculta la barra en cel */}
    
}