/* ===== PALETA ===== */
:root {
    --verde: #2e7d6b;
    --verde-hover: #256d5d;
    --plomo: #6b7280;
    --plomo-claro: #e5e7eb;
    --blanco: #ffffff;
}

/* ===== LAYOUT BASE ===== */
.layout-base {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contenido-flex {
    flex: 1;
}

/* ===== CONTENEDOR ===== */
.marca-container {
    max-width: 1200px;
}

/* ===== CABECERA ===== */
.marca-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--plomo-claro);
    padding-bottom: 12px;
    margin-bottom: 25px;
}

.marca-titulo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
}

.marca-titulo span {
    color: var(--verde);
}

.marca-volver {
    font-size: 0.9rem;
    color: var(--plomo);
    text-decoration: none;
}

.marca-volver:hover {
    color: var(--verde);
}

/* ================================================= */
/* ================= CARD PRODUCTO ================= */
/* ================================================= */

.producto-card {
    background: var(--blanco);
    border: 1px solid var(--plomo-claro);
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* ===== IMAGEN ===== */
.producto-img-box {
    background: #f9fafb;
    padding: 20px;
    text-align: center;
}

.producto-img-box img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
}

/* ===== INFORMACIÓN ===== */
.producto-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* ===== NOMBRE COMPLETO (SIN CORTE) ===== */
.producto-nombre {
    font-size: 0.95rem;
    font-weight: 500;
    color: #111;
    line-height: 1.4;
    word-break: break-word;   /* evita que rompa el layout */
}

/* ===== PRECIO ===== */
.producto-precio {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--verde);
}

/* ===== BOTÓN ===== */
.producto-btn {
    margin-top: auto;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--verde);
    color: var(--blanco);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.producto-btn:hover {
    background: var(--verde-hover);
    transform: translateY(-2px);
}

/* ================================================= */
/* ================= SIN PRODUCTOS ================= */
/* ================================================= */

.sin-productos {
    text-align: center;
    padding: 80px 20px;
    color: var(--plomo);
}

.sin-productos h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
}

.sin-productos p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.sin-productos-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 20px;
    background: var(--verde);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.sin-productos-btn:hover {
    background: var(--verde-hover);
}

/* ================================================= */
/* ================= RESPONSIVE ================= */
/* ================================================= */

@media (max-width: 768px) {

    .marca-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .producto-img-box img {
        height: 160px;
    }

    .producto-nombre {
        font-size: 0.9rem;
    }

    .producto-precio {
        font-size: 1rem;
    }
}