/* Contenedor general en escritorio */
.producto_grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: stretch; /* hace que ambos lados tengan misma altura */
    flex-wrap: nowrap; /* evita que salte a segunda línea */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}


/* Mejora de nombre del producto: más grande y elegante */
.nombre_producto {
    font-weight: 600;
    font-size: 1.75rem;
    color: #444;
    margin-bottom: 8px;
}

/* Código de producto más estilizado con link azul */
.codigo_producto {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}
.codigo_producto a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}
.codigo_producto a:hover {
    text-decoration: underline;
}

/* Contenedor de características más ordenado visualmente */
.caracteristicas {
    margin-top: 15px;
    margin-bottom: 20px;
}
.caracteristicas p {
    font-size: 0.95rem;
    margin: 4px 0;
    line-height: 1.5;
}

/* Botones PDF / VIDEO / MANUAL con apariencia clara */
.botones_vinculos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.botones_vinculos a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 0.95rem;
    color: #000;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: background 0.3s;
}
.botones_vinculos a:hover {
    background-color: #f2f2f2;
}
.botones_vinculos img {
    width: 20px;
    height: 20px;
}
/* Colores relacionados debajo de la imagen */
.colores_relacionados {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.color_item {
    text-align: center;
    width: 70px;
}

.color_item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.color_item p {
    font-size: 0.75rem;
    margin-top: 5px;
    color: #333;
}
/* Tarjetas visuales con separación */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    box-sizing: border-box;
}


.producto_info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    flex: 1 1 50%;
    max-width: 600px;
}


/* Imagen del producto */
.producto_img {
    flex: 1 1 40%;
    max-width: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.producto_img.card {
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}
.producto_img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



/* Información del producto */
.producto_img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nombre_producto {
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.codigo_producto {
    font-size: 1rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
}
.caracteristica {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

/* Vínculos (Ficha, Video, etc.) */
.vinculos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: flex-start;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.vinculo-box {
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.vinculo-box .vinculo {
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: #000;
}

.vinculo-box .vinculo img {
    height: 20px;
    margin-right: 8px;
}

/* Ruta tipo Linux */
.ruta_directorio {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.ruta_directorio .lista {
    color: #222;
    text-decoration: none;
}
.ruta_directorio .lista:hover {
    text-decoration: underline;
}

/* Productos relacionados */
.productos_relacionados h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
}
.relacionados_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 15px;
}
.relacionado_item {
    text-align: center;
}
.relacionado_item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.relacionado_item p {
    font-size: 0.75rem;
    margin-top: 5px;
    color: #333;
}


/* Modal para imagen */
.modal_imagen {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}
.modal_contenido {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    display: block;
    margin: auto;
}
.cerrar {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
    .producto_grid {
        flex-direction: column;
        align-items: center;
    }
    .producto_img,
    .producto_info {
        width: 100%;
        max-width: 90%;
    }
    .colores_relacionados {
        justify-content: center;
    }
    .vinculos {
        justify-content: center;
    }
    .relacionados_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ruta_directorio {
        justify-content: center;
    }
    .botones_vinculos {
        justify-content: center;
    }
}