/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding-top: 100px;
}

/* Contenedor de búsqueda */
.search-container {
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 9999;
    background: white;
    display: flex;
    align-items: center;
    height: 80px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
}

/* Logo */
.logo-container {
    flex: 0 0 auto;
}

.logo {
    width: 200px;
    max-height: 60px;
}



/* Buscador */
.search-inner {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 600px;
    margin: 0 auto;
    height: 60px;
    border: 2px solid #ccc;
    border-radius: 0;
    background: white;
    overflow: hidden;
    margin-top: 5px;
    gap: 10px; /* Opcional: para separar los elementos */
}

.categories-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 22px;
    border-radius: 5px;
    min-width: 180px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-input {
    border: none;
    padding: 10px;
    flex: 1;
    outline: none;
    font-size: 16px;
}

.search-btn {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
}



/* Carrito */
.cart-container {
    position: relative;
    margin-left: auto;
    margin-right: 200px;
}

.cart-btn {
    position: relative;
    color: #000;
    font-size: 28px;
    text-decoration: none;
}

.cart-btn i {
    font-size: 30px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Menú lateral */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background: white;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease-in-out;
    padding-top: 20px;
    z-index: 10000;
}

.sidebar.active {
    left: 0;
}


.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #000000;
    color: white;
    font-size: 18px;
}


.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    padding: 10px 20px;
    cursor: pointer;
    color: white;
}

.sidebar ul {
    list-style: none;
    padding: 10px;
}

.sidebar ul li {
    padding: 12px;
    cursor: pointer;
    font-size: 16px;
}

.sidebar ul li a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.sidebar ul li:hover {
    background: #f1f1f1;
}

/* Contenido */
.content {
    margin-top: 120px;
}

/* WhatsApp */
.btn-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-whatsapp img {
    display: block;
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
}

.btn-whatsapp img:hover {
    transform: scale(1.1);
}



/* Botón hamburguesa visible solo en móviles */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #000;
    color: #fff;
    border: none;
    font-size: 28px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10001;
    display: none; /* Oculto por defecto */
}




.formulario-cotizacion {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.formulario-cotizacion form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.formulario-cotizacion label {
    font-weight: bold;
    color: #333;
}

.formulario-cotizacion input,
.formulario-cotizacion textarea {
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    resize: vertical;
}

.formulario-cotizacion button {
    background-color: #d8102b;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.formulario-cotizacion button:hover {
    background-color: #a60000;
}

.mensaje-exito {
    color: green;
    text-align: center;
    margin-top: 10px;
}
h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;

}

@media (max-width: 768px) {

    /* Ajuste general del body y contenido para navbar más alto */
    body {
        padding-top: 160px;
    }

    .content {
        margin-top: 140px;
        padding: 10px;
    }

    /* Contenedor general de búsqueda */
    .search-container {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 10px 15px;
    }

    /* Contenedor interno del buscador: fila para input + lupa */
    .search-inner {
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 8px;
        margin: 10px 0 0 0;
        height: auto;
    }

    /* Botón categorías: oculto en móvil */
    .categories-btn {
        display: none;
    }

    /* Input que ocupa todo el espacio disponible */
    .search-input {
        flex: 1;
        font-size: 16px;
        padding: 10px;
        border: none;
        outline: none;
    }
    .search-input::placeholder {
        padding-left: 40px; /* mueve el placeholder un poco a la derecha */
         }

    /* Botón lupa con tamaño y centrado */
    .search-btn {
        font-size: 20px;
        padding: 10px;
        cursor: pointer;
        background: none;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Carrito */
  .cart-container {
    position: absolute;
    top: 30px;  /* antes estaba top: 10px; */
    right: 30px;
    margin: 0;
}


    .cart-btn i {
        font-size: 24px;
    }

    .cart-count {
        font-size: 10px;
        padding: 1px 5px;
    }

    /* Sidebar más ancho en móvil */
    .sidebar {
        width: 80%;
    }

    /* Botón menú hamburguesa visible */
.menu-toggle {
    display: block;
    position: fixed;
    top: 80px; /* ajustado */
    left: 15px;
    background-color: #000;
    color: #fff;
    border: none;
    font-size: 28px; /* más pequeño */
    padding: 5px 8px; /* menos relleno */
    border-radius: 4px;
    cursor: pointer;
    z-index: 10001;
    width: auto; /* para que se ajuste al contenido */
    height: auto;
}


    /* Botón WhatsApp más pequeño */
    .btn-whatsapp img {
        width: 60px;
        height: 60px;
    }

    /* Formulario búsqueda móvil */
    #mobile-search-form {
        max-height: 70px;
        overflow-y: auto;
    }
}
