/* ============================= */
/* ====== BASE GENERAL ====== */
/* ============================= */

body {
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ============================= */
/* ===== CONTENEDOR ===== */
/* ============================= */

.product-container {
    display: flex;
    justify-content: center;
    padding: 50px 20px;
}

/* ============================= */
/* ===== TARJETA PRODUCTO ===== */
/* ============================= */

.product-card {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 1100px;
    width: 100%;
}

/* ============================= */
/* ===== IMAGEN ===== */
/* ============================= */

.product-image {
    flex: 1 1 45%;
    min-width: 320px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border-radius: 16px 0 0 16px;
}

.product-image img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

/* ============================= */
/* ===== INFO PRODUCTO ===== */
/* ============================= */

.product-info {
    flex: 1 1 55%;
    padding: 40px;
}

.product-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    word-break: break-word; /* 🔥 Evita que títulos largos rompan layout */
}

.product-meta {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
}

.product-meta span {
    font-weight: 600;
}

/* ============================= */
/* ===== PRECIO ===== */
/* ============================= */

.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #28a745;
    margin: 18px 0;
}

/* ============================= */
/* ===== ESPECIFICACIONES ===== */
/* ============================= */

.product-specs {
    list-style: none;
    padding: 0;
    margin: 15px 0 25px 0;
}

.product-specs li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

/* ============================= */
/* ===== BOTÓN WHATSAPP ===== */
/* ============================= */

.btn-wsp {
    background: linear-gradient(135deg, #25D366, #1ebe5d);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 22px;
    border: none;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.35);
    transition: all 0.25s ease;
}

.btn-wsp:hover {
    transform: translateY(-2px);
}

/* ============================= */
/* ===== BOTÓN CARRITO ===== */
/* ============================= */

.carrito-btn {
    width: 100%;
    background: linear-gradient(135deg, #0d6efd, #084298);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.25s ease;
}

.carrito-btn:hover {
    transform: translateY(-2px);
}

.carrito-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ============================= */
/* ===== IMAGEN ICONOS ===== */
/* ============================= */

.img-logo {
    height: 22px;
}

/* ============================= */
/* ===== FRANJA SUPERIOR ===== */
/* ============================= */

.franja-verde {
    background-color: #25D366;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 15px 0;
    font-size: 26px;
}

/* ============================= */
/* ===== RESPONSIVE ===== */
/* ============================= */

@media (max-width: 992px) {

    .product-card {
        flex-direction: column;
    }

    .product-image {
        border-radius: 16px 16px 0 0;
    }

    .product-info {
        padding: 30px 20px;
    }

    .product-info h2 {
        font-size: 22px;
    }
}