@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Roboto:wght@700&display=swap');

body {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

header {
    background-color: #f8f9fa;
    color: #161c3c;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

header img {
    margin-left: 20px;
}

.search-form {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    width: 650px;
    margin: 0 auto;
}
.producto h3 a {
    text-decoration: none; /* Elimina el subrayado */
    color: #333; /* Cambia el color a un tono neutro */
    font-weight: bold;
}

.producto h3 a:hover {
    color: #00b7ff; /* Color diferente al pasar el mouse */
}

.search-form input[type="text"] {
    padding: 5px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    flex: 1;
}

.search-form button {
    padding: 5px 10px;
    font-size: 12px;
    border: 1px solid #ddd;
    background-color: #00b7ff;
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.search-form button:hover {
    background-color: #6464ac;
}

.container {
    text-align: center;
}

.pagination-container {
    clear: both;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.header-content {
    flex-grow: 1;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

nav {
    background: linear-gradient(90deg, #00cfff 0%, #7b6fff 100%);
    overflow: hidden;
    display: flex;
    justify-content: center;
}

nav button {
    background-color: transparent;
    color: white;
    border: none;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    border-radius: 4px;
}


nav button:hover {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
}

.producto-detalle {
    max-width: 1000px;
    margin: 20px auto;
    display: flex;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.producto-imagen {
    flex: 1;
    margin-right: 20px;
}

.producto-imagen img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.producto-info {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.producto-info h2 {
    color: #161c3c;
    font-size: 24px;
    margin-bottom: 10px;
}

.producto-info p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.producto-info .precio {
    font-size: 22px;
    font-weight: bold;
    color: #00b7ff;
    margin-top: 15px;
}

.producto-info .stock {
    font-size: 16px;
    color: #555;
    margin-top: 5px;
}

form {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

form label {
    font-size: 14px;
    color: #444;
}

form input[type="number"] {
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 60px;
    text-align: center;
}

form button {
    padding: 10px 20px;
    background: linear-gradient(90deg, #00cfff 0%, #7b6fff 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background: linear-gradient(90deg, #7b6fff 0%, #00cfff 100%);
    color: #fff;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    text-align: center;
    background: linear-gradient(90deg, #00cfff 0%, #7b6fff 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.button:hover {
    background: linear-gradient(90deg, #7b6fff 0%, #00cfff 100%);
}

/* Botón de WhatsApp en el formulario de producto */
form .wsp-button,
.button.wsp-button {
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    border-radius: 5px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
}

form .wsp-button:hover,
.button.wsp-button:hover {
    background: #1ebe57;
    color: #fff;
}

form .wsp-button img,
.button.wsp-button img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.carrusel-container {
    text-align: center;
    margin: 20px auto;
    padding: 15px;
    max-width: 1000px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: visible; /* Asegúrate de que no tenga overflow: auto ni height fijo */
}

.carrusel {
    overflow-x: hidden;
    overflow-y: visible !important;
    white-space: nowrap;
    position: relative;
    height: auto !important;
    max-height: none !important;
}

.carrusel-container {
    margin-top: 30px;
}

.carrusel .producto-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    vertical-align: top;
    margin: 0 8px;
}

.carrusel .producto {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,183,255,0.10), 0 1.5px 6px rgba(100,100,172,0.08);
    padding: 15px 10px;
    width: 220px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 320px; /* Mantén tarjetas iguales, pero controla el contenido */
    box-sizing: border-box;
    overflow: hidden; /* Evita que el contenido se salga */
}

.carrusel .producto img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.carrusel .producto h3 {
    font-size: 1.1em;
    margin: 8px 0 4px 0;
    font-weight: bold;
    min-height: 40px;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.carrusel .desc-carrusel {
    font-size: 0.95em;
    color: #444;
    margin: 0 0 6px 0;
    min-height: 38px;
    max-height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;      /* Soporte Webkit */
    line-clamp: 2;              /* Propiedad estándar */
    -webkit-box-orient: vertical;
    box-orient: vertical;       /* Propiedad estándar */
    text-overflow: ellipsis;
    white-space: normal;
    width: 100%;
}

.carrusel .producto .precio {
    color: #00b7ff;
    font-weight: bold;
    margin-top: 6px;
    margin-bottom: 0;
    width: 100%;
}

.carrusel .producto:hover {
    box-shadow: 0 4px 16px rgba(0,183,255,0.18), 0 2px 8px rgba(100,100,172,0.12);
    transform: translateY(-4px) scale(1.03);
}

@media (max-width: 480px) {
    /* Header más compacto */
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .header-content {
        width: 100%;
        text-align: center;
    }

    header img {
        max-width: 120px;
    }

    /* Optimización del buscador */
    .search-form {
        display: flex;
        width: 100%;
        padding: 5px;
    }

    .search-form input[type="text"] {
        flex: 1;
        font-size: 14px;
        padding: 6px;
        border-radius: 5px;
    }

    .search-form button {
        padding: 6px;
        font-size: 14px;
        border-radius: 5px;
    }

    /* Navegación con scroll más suave */
    nav {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px;
        scrollbar-width: none;
        justify-content: flex-start;
    }

    nav button {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 5px;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    /* Productos con mejor alineación */
    .producto-detalle {
        flex-direction: column;
        text-align: center;
    }

    .producto-imagen {
        width: 100%;
        margin-bottom: 15px;
    }

    .producto-info {
        text-align: center;
        padding: 10px;
    }

    .carrusel .producto {
        flex: 0 0 180px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        text-align: center;
        height: 280px; /* Ajusta según necesites */
    }
    
    .carrusel .producto h3 {
        font-size: 16px;
        color: #333;
        min-height: 40px; /* Fijar altura mínima */
    }
    
    .carrusel .producto p {
        font-size: 14px;
        color: #666;
        min-height: 50px; /* Fijar altura mínima */
    }
    
    .carrusel .producto img {
        width: 100%;
        height: 120px; /* Tamaño estándar */
        object-fit: contain; /* Ajusta imagen sin deformarla */
        border-radius: 8px;
    }
    
    
}
@media (max-width: 480px) {
    .header-content h1 {
        display: none;
    }
}
